Jump to content

nysteve

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Contact Methods

  • AIM
    brooklynsweb

Profile Information

  • Gender
    Not Telling

nysteve's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The phpinfo() is quite the function... thanks Barand.
  2. Strange; it's using the file in the apache2 folder: //what's the diff between this? Configuration File (php.ini) Path C:\Windows //and this? Loaded Configuration File C:\wamp\Apache2\bin\php.ini
  3. So I'm continuing my trip with w3school... up to emailing error logs. The first problem i noticed was that my smtp and send_to vars were not set .. i fixed that but then i noticed that even though I was getting the errors mailed to me, the from address was still strange. Then i did a search for php.ini file (I'm on Vista) in my C:\wamp folder and noticed that there are actually 2 of them, one was in c:\wamp\php and one in c:\wamp\apache2. So then my question why are there 2? They seem identical? Thanks,
  4. that worked! thanks. question still remains; what need is their for an exit in this example (as shown on w3s) if both the exit message and the php error appears at the same time..hmm and what does the "@" represent/how is it used (i did not find a ref in the php manual). thanks knerbnsn
  5. did not fix it. maybe i need to start with the basic question; - what is exit used for? i thought that it would exit the script if an error occurred, and a file not found is a type of error is it not?
  6. the reason i changed the file name is so that i could get the error exit message. i was under the impression that if the file name was not found.. the exit message would show up and that's it. am i missing something?
  7. Noob here.. So I'm learning from w3c and doing some samples but i'm having an issue: code: -------------------- $file = fopen("text.txt","r") or exit("file not found biatch"); while(!feof($file)) { echo fgets($file)." "; } fclose($file); ------------------- all source files located in my: 'C:\wamp\www' folder. but when i try to force error aka change 'text.txt' to 'tex2.txt' i get a this warning: Warning: fopen(tyext.txt) [function.fopen]: failed to open stream: No such file or directory in C:\wamp\www\test.php on line 35 and my exit message. why? i know this is a split second q.. but noobs have to start somewhere lol. steve :-\
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.