- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Student
250 Posted Topics
Re: you need to set up a cron job (or crontab), make sure your webserver allows you to run a cron job, if so look in your control panel for how to set it up, if it's not in there then log in via SSH and type "man cron" to get … | |
I want to share files between two mac osx computers, connected in the same network. These computers are password protected etc... so after I enable Personal File Sharing in the System Preferences I can browse to the network, find the computer I want to connect and connect to it, everything … | |
Hello all, I'm trying to create a password change form for my company's vendors. There are a couple of scenarios I could encounter doing this: 1 - User enters invalid current password 2 - New passwords do not match 3 - User's account is locked 4 - User cannot authenticate … | |
Re: you would have to covert the string to char and you would use single quotes, example: case 'x': i think this kinda blows too but what are you going to do? | |
Re: [QUOTE=php_daemon;294456][code=php] if (!preg_match("#^http://www\.[a-z0-9-_.]+\.[a-z]{2,4}$#i",$url)) { echo "wrong url"; } else { echo "ok"; } [/code][/QUOTE]that looks good, except that only letters, numbers, and hypens are allowed in a domain name (underscores are not allowed), and due to ICANN limitation domain names are limited to 64 characters. This regular expression also limits … | |
Re: [code]$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; echo $url[/code] | |
Re: well if you are always going to be using the same html code for a given page, then what you could do is, put it in a different page and then just include it wherever needed, for example... [php]<? //a lot of php code here if (something_isnt_true) { include 'html_code.html.inc'; … | |
Re: I don't understand what your question is, do you not know how to randomly select a user from the database? do you not know how to send an email from the script? If you know how to do that then that should be all you need to do here is … | |
Re: go here: [url]http://www.winguides.com/registry/display.php/1097/[/url] they show how to hack the registry to change the background. Be wary of that hack, because I believe it might actually be in: HKEY USERS\ .DEFAULT\Control Panel\Desktop just remember hacking the registry can result in very bad things happening! Now just create a simple registry hack … | |
I know it is possible to overload PHP functions as I have seen this done with many of the prebuilt functions. My question is how do you declare an overloaded function? Everytime I try doing this I always get some error about missing arguments (even if there exsist a function … | |
Re: [CODE] /** * Requires j2se 5.0 (version 1.5). This uses class Scanner, static import, * and some methods of class Arrays. */ import java.util.Arrays; import java.util.Scanner; import static java.lang.Math.*; public class Prog3c_1 { public static void main(String... args) { Scanner sc = new Scanner(System.in); int j, k, number, size; boolean … | |
Re: it could have been (but unlikely) removed, unfortanately it's a lot harder to readd it then it is to remove it. so to re-add, goto control panel if your not already in classic view, switch to it double-click on administrative tools double-click computer managment on the left hand column, under … | |
Re: you can use commands such as fopen to open files on the internet[php]$handle = fopen("http://www.example.com/", "r");[/php]then if you need more data use regular expressions to parse through whatever data you need | |
Re: how much php do you know? you could make a simple form that you "post", once it is posted just use the php mail function. If your not sure exactly what I mean then reply to this message and i could do a very simple example | |
how can I hide a user from the login screen? for instance in windows xp, you can press ctrl+alt+del twice, and it will allow you to manually type in a username/password. I administer some computers at a non profit, and I rarely touch the users computers until something goes wrong … | |
Re: generally when u pull it from mysql you would reference the item you want by column number, so.... if your query was something to this effect: [code]$result = mysql_query("SELECT login,age FROM some_table WHERE user_name='".$user.'"); $row = mysql_fetch_row($result); $login = $row[0]; $age = $row[1]; $link = "<a href=\"members.php?mid=".$login."\">".$age."</a> [/code] | |
Re: if you have a youtube script, just copy and paste the code as they gave it to you from there website, you do not need to do anything else to it to get it running. Paste it as HTML and not PHP ![]() | |
Re: [url]http://cs.saddleback.edu/rwatkins/CS4B/Section13/Section13.html[/url] there are instructions on how to set up tomcat 3 once you have this running and are familiar with this I would recommend upgrading like jwenting said | |
Re: if you just want to make sure it automatically loads the newest copy of the page, eg do a auto-refresh you don't need to use a meta tag, try using a header function instead... [php]header('Cache-Control: no-store, no-cache, must-revalidate');[/php] | |
Re: what might be easier than usign that huge ugly regular expression is if you first break up your keywords I have not tested any of this so it still might need a slight amount of tweaking but this should give you the idea you need to get going from here. … | |
Re: [quote]1. why does a multiline text data get sended as a single line one?[/quote] this is because you are sending your e-mail as a html document, you need to insert <br> to break the line, alternatively you could just send it as a plain text email to do that replace … | |
Re: I think the safe bet is to say there's always going to be someone who figures out a way around any security setting. Then the question is how often does your hosting company update it's PHP server? And honestly, do you want to be caught completely off guard. Or what … | |
Re: try adding readfile at the end [code]..... header('Content-Disposition: attachment; filename="'.$name.'.'.$ext.'"'); readfile($file); ?>[/code] | |
Re: You only need the first 2 lines of the headers below, but there's some additional headers in case you wanted to see how to add those as well. Also, make sure to "\r\n" in double quotes, not single quotes, AND they must appear at the end of every line in … | |
Re: This sounds like a homework problem to me, maybe you should to a little more studying. Why else would you include the "answer." ![]() | |
Re: Something simple and straightfowrd... [code]$grade = 0; if ($_POST['QUIZ1'] >= 0 && $_POST['QUIZ1'] <= 100) $grade = $grade + $_POST['QUIZ1'] * 0.05; if ($_POST['Mid-Term'] >= 0 && ($_POST['Mid-Term'] <= 100)) $grade = $grade + $_POST['Mid-Term'] * 0.30; //continue code like this until you've included all the scores[/code] | |
Re: You would need a SELECT statement in SQL to do this, the same way you inserted all of your friends to the database just ...[code]SELECT id,firstName,lastName FROM Profiles WHERE isVisible='1'[/code]of course you will need to change the names based on your table structure. | |
Re: check out sorceforge, while the idea won't be completly your own, it will allow you to help others and better tune your skills... [url]http://sourceforge.net/people/[/url] | |
Re: if you know the service provider you can just email it to there cell number, since that is how most sms messages are sent. for instance if your cell number was 800-555-1212 and your company is verizon, then you could just email: [email]8005551212@vtext.com[/email] as far as that whole pin thing, … | |
Is there a way to change the color of the text in a JTextArea? I want to change all the text color to one color (other than black) and I just want to know how to do this. I see a lot of methods involving color but they only effect … | |
Re: Cookies should never contain passwords. You can have a cookie contain a session id. The session id can then point to a user in a database. From the database you can easily cross reference the user's password. By doing it this way you can have the session expire in the … | |
Re: the other thing you could do with the private section is restrict downloads. Suppose you only want to let your members download certain videos from your website (or any other content) then you can keep the file stored in the private section and then just parse it out to those … | |
Re: there is this way i have used once but it was on the same machine so I dont know if it will work, and it will require usage of a fat32 partition. The reason i found this is becuase I was trying to fiddle around with the permission and I … | |
Re: you could always use phpnuke, not nearly as clean, but I'm sure you could just download a new theme/skin and change it [url]http://phpnuke.org/[/url] | |
Re: do you have access to a database? if so then i wouldn't bother with loggin in, as that would be too much work for the sole purpose of adding latest news. Create a new php page with a form use that has everything you want, and then just put a … | |
I am stuck on something that I know is so simple that I can't figure it out... I have a BST class, and a private item: [code]Node<K> *root; // root pointer //and in a seperate class I have... template <typename K> class Node { public: // constructors Node() {}; Node(const … | |
When you press the ALT button, a letter will usually appear underlined so that you can press ALT+letter that is underlined to do a certain shortcut. My question is, I remember finding a way so that this letter was always underlined in windows, but i don't know where it is … ![]() | |
Re: if you are going to use a header tag YOU CANNOT output any text/html to the user, which means you need to get rid of all the echo. when you see this error: [b]Warning: Cannot modify header information - headers already sent by[/b] it means that you've already send data … | |
I am working with a function declaration of: int func1(char *, unsigned int) to the best of my understanding, I am not allowed to modify this. Now my question is that when I actually write this program what is the name of argument 1 and 2 for example [code]int intToHexStr(char … | |
Re: depending on how big your site is, you can use Google API and put there search engine right into your homepage for free! You would be limited to 1,000 queries via this method, or you can link to google directly via a form box [html]<form method="get" action="http://www.google.com/search"> <input type="text" name="q" … | |
Re: [QUOTE=PeppySoft;293913]Normally file upload using files will be allowed 2MB in PHP (That is default setting in php.ini file). Ask your server admin about this limit. You can use FTP functions to upload can be found at [url]http://in.php.net/ftp[/url].[/QUOTE] to see your PHP upload size limit, make a file called phpinfo.php and … | |
I am using generics in java, and I want to know how I can test to see if I have a int or a float? Is there some sort of type-testing? I'm sure there is, I just need someone to help point me in the right direction. Thanks! | |
Re: use a csv extenion on any text file for example, a file named output.csv with the following data: [code]a,b,c 1,2,3 x,y,x[/code] would produce the following in excel, cell a1: a cell b1: b cell c1: c cell a2: 1 cell b2: 2 cell c3: 3 cell a3: x cell b3: … | |
what does it mean when you say z=1? Does it ignore what value you pass into the function? What is this called? | |
Re: [QUOTE=ross017;271068]i just download the sophos antivirus and it deletes all the infected files including explorer.exe. even my folder options is not accessible and active directory in administrative tools is also lost. please help to solve my problem because the infected pc is our server. thank you[/QUOTE] click start-->run-->msconfig then click … | |
Re: hmmm sounds to me like if you are reading some other site or usign a pre-made script then your traffic exchange won't really be something original but more of a "carbon copy of every other traffic exchange" Why don't you write down all the features you want in your site, … | |
Re: paypal is decent but good luck getting your money back if you get ripped off from someone who you pay via paypal 2-3% is not bad at all this is right in line with what you would expect to pay if you got a merchant account and accepted visa/mastercards directly … | |
I have a program that I want to run, but it will only run in the adminstrator account, is there a way I can create a shortcut by entering the admin password into it somehow to run? This is what I've tried and it didn't work: I created a regular … | |
I have been searching for a long time, and I cannot remember the name of this swing component that I attached in the image. It's the one that is captioned "Please input the...." I don't need help on how to implement it (beyond knowing the class name), I just forgot … | |
Re: you need to create a table, ie this would be an example: [code]CREATE TABLE email_list ( email VARCHAR(75) NOT NULL, name VARCHAR(75) NOT NULL, PRIMARY KEY(email) );[/code] then just loop through it in whatever language you are usign and email it off to: name <email> |
The End.