Forum: PHP Sep 8th, 2009 |
| Replies: 4 Views: 328 If mail is being sent from your server, it would depend on how your outgoing mail server is setup. If you want to send from another remote mail server, you'll probably have to authenticate. Does that... |
Forum: PHP Sep 8th, 2009 |
| Replies: 2 Views: 232 At first, try it in the document root directory. Later, you can set up a virtual directory for it but for testing try the root directory of apache. The directory is named htdocs. |
Forum: PHP Sep 7th, 2009 |
| Replies: 4 Views: 226 Does your OS see the device?
In the PHP code, you'll have to give an explicit path to the flash drive.
I need more details before I can help more. |
Forum: PHP Feb 11th, 2009 |
| Replies: 7 Views: 650 Well it isn't elegant but one way is to first direct the user to the ad page, then in the meta refresh section of the ad page, put in the number of seconds you want the user to stay on the ad page... |
Forum: PHP Feb 11th, 2009 |
| Replies: 8 Views: 641 You'll have to query both tables with a WHERE clause and set the indexes equal to each other:
SELECT table1.blah, table2.blahz FROM table1, table2 WHERE table1.tag = table2.tag1;
Sorry, I... |
Forum: PHP Feb 2nd, 2009 |
| Replies: 7 Views: 650 Try include_path="C:\PHP_includes";
instead of what you have in your php.ini. Remember after you change your php.ini, you have to restart the web service. |
Forum: PHP Feb 2nd, 2009 |
| Replies: 17 Views: 9,372 And there should only be one brand of gasoline, cracker, printer, car, etc.
This is an intro tutorial that is supposed to be placed in the tutorial section and not here. Sorry for the intrusion. |
Forum: PHP Feb 2nd, 2009 |
| Replies: 17 Views: 9,372 Programming in PHP is fun and easy. It is a very powerful scripting language that takes simple HTML and turns it into a fully-interactive experience for the web user. Let's get started!
Note:... |
Forum: PHP Jan 26th, 2009 |
| Replies: 14 Views: 2,216 See if changing header("Content-Disposition: attachment; filename=$name"); to
header("Content-Disposition: attachment; filename=" $name); works for you. |
Forum: PHP Jan 21st, 2009 |
| Replies: 14 Views: 671 Try:
define ("base_url", "http://mysite.com/login");
$link = base_url . 'activate.php?x=' . urlencode($e) . "&y=$a"; |
Forum: PHP Jan 21st, 2009 |
| Replies: 14 Views: 671 Never mind, I found the answer...
define("base_url", "http://foo.com");
$filepath = base_url."/foo.gif"; |
Forum: PHP Jan 21st, 2009 |
| Replies: 14 Views: 671 Try changing all instances of BASE_URL to $BASE_URL and see if that works. |
Forum: PHP Jan 21st, 2009 |
| Replies: 14 Views: 671 like BASE_URL="http://www.mysite.com/login"; |
Forum: PHP Jan 21st, 2009 |
| Replies: 14 Views: 671 I need to see the actual code line, sorry. |
Forum: PHP Jan 21st, 2009 |
| Replies: 14 Views: 671 What does BASE_URL equal? Can you put in that line of code? |
Forum: PHP Jan 21st, 2009 |
| Replies: 14 Views: 671 Your problem is BASE_URL. It isn't in a usable format. It needs to look like a variable. |
Forum: PHP Sep 5th, 2008 |
| Replies: 3 Views: 2,175 You have an open " in the img src = "
but no closed quote. |
Forum: PHP Sep 1st, 2008 |
| Replies: 2 Views: 1,058 Maybe I'm not getting it but it seems simple enough to open the code and surround the menu code with <CENTER></CENTER> tags. |
Forum: PHP Sep 1st, 2008 |
| Replies: 1 Views: 587 First, make sure that phpinfo is allowed in your php.ini file. If you make any changes to the php.ini, you have to restart the apache web server for them to be picked up.
You also may need the... |
Forum: PHP Jul 19th, 2008 |
| Replies: 1 Views: 996 Try phpclasses.org. They have some great stuff on there. Searchable too. |
Forum: PHP Jul 19th, 2008 |
| Replies: 3 Views: 405 Well, first, don't use different tables. Use one table. Insert a field named Purchase_date. It will be much easier to do what you need then. |
Forum: PHP Jul 19th, 2008 |
| Replies: 2 Views: 1,636 Use a regular variable like you would anywhere else. you can't use an expression like that in a sql statement. If it needs to be set to some starting value, do that above the sql statement then just... |
Forum: PHP Jul 19th, 2008 |
| Replies: 1 Views: 684 Try looking at phpclasses.org, they have some great searchable scripts there. |
Forum: PHP Jul 11th, 2008 |
| Replies: 1 Views: 527 Do you want to do this in a PHP script or are you just trying to download a file from a website? Can you give more detail? |
Forum: PHP Jul 11th, 2008 |
| Replies: 4 Views: 661 You can also grab some great solutions from phpclasses.org. Just search through the thousands of scripts. They almost always have a sample page or two for illustration and testing. |
Forum: PHP Jul 11th, 2008 |
| Replies: 4 Views: 359 Yes, try raising the memory limit. restart your web server after making this or any change to php.ini.
sudo apachectl restart |
Forum: PHP Jun 19th, 2008 |
| Replies: 2 Views: 805 You need to look in your php.ini file and make sure you have a writeable directory for uploads. It is a temp directory for uploads to the server. On Linux, it is usually /tmp but can be almost... |
Forum: PHP May 2nd, 2008 |
| Replies: 11 Views: 5,595 Be sure that your column names are correct, including capitalization, and that the table name is correct. You can also do a SELECT * FROM others; for testing until you figure out what the problem is. |