Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 08 Nov 2001, 03:18
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Help please.. :)

Hi I'm trying to get a weather page happenin on my site with the attached php scripts and i keep getting this error with both the weather.php & the metar.php:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\sambar50\docs\weather\index.php on line 40


It displays the weather but has that error twice at top of the page.. Help please...

Last edited by Insane2; 09 Nov 2001 at 00:07.
Reply With Quote
  #2  
Old 08 Nov 2001, 06:30
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Quick Guess...

Check your error reporting level...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The first line will echo the current level of error_reporting. The second will set the level to 7. The third will set the level to 7, and print the previous level.

7 is really good for everyday scritps. When in doubt, use 7. If your comming from a background in ASP, and like to set "Option Explicit" so you have to dim all your vars, you may like 15 (it will print a notice that a used var has not been initialized).

PHP docs: error_reporting(), description of Reporting Errors
Reply With Quote
  #3  
Old 08 Nov 2001, 09:17
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Re: Quick Guess...

Originally posted by Mark Hensler
Check your error reporting level...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The first line will echo the current level of error_reporting. The second will set the level to 7. The third will set the level to 7, and print the previous level.

7 is really good for everyday scritps. When in doubt, use 7. If your comming from a background in ASP, and like to set "Option Explicit" so you have to dim all your vars, you may like 15 (it will print a notice that a used var has not been initialized).

PHP docs: error_reporting(), description of Reporting Errors
Don't mean to sound dumb but where do i find that?? All other PHP scripts run fine...
Reply With Quote
  #4  
Old 08 Nov 2001, 16:37
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
You have to add it into the file yourself. Somewhere near the top is best.
Reply With Quote
  #5  
Old 08 Nov 2001, 21:43
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Ok, thanks for the help...

Last edited by Insane2; 09 Nov 2001 at 00:08.
Reply With Quote
  #6  
Old 09 Nov 2001, 02:51
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Did that solve it? What level was it set at?
Reply With Quote
  #7  
Old 09 Nov 2001, 04:29
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Nope it didn't solve it, but I'm running vbportal and i just added it as a module and it seems to work fine...
Reply With Quote
  #8  
Old 09 Nov 2001, 05:50
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Do you still need this solved, or does vbportal take care of your needs? (I'm not familiar with vbportal)
Reply With Quote
  #9  
Old 09 Nov 2001, 08:59
Insane2 Insane2 is offline
 
Join Date: Nov 2001
If possible yes please, I'm not in a mega rush so dont do your head in or anything.. the temp fix is ok for now.. do you want me to repost the scripts? I took them down as I wasnt sure the author would appreciate them being here..

BTW I cut & pasted that code and all it seemed to do was add the number 2039 under the errors when running the script.

Last edited by Insane2; 09 Nov 2001 at 09:04.
Reply With Quote
  #10  
Old 09 Nov 2001, 16:02
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
2039?!? Good golly, that's paranoia!

Try adding it above the errors.

Idealy, anything that alters the way that PHP executes should be the very first lines of uncommented code. That includes any calls to ini_set(), error_reporting(), set_magic_quotes_runtime(), and a few others.
Reply With Quote
  #11  
Old 11 Nov 2001, 02:42
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Yep I added it above the errors.. Still the same thing.. 2039 whatever that means... Doesn't matter too much, I'm in no rush, as the site is still in development and wont be open to the public for quite some time at the rate i'm going... Very much appreciated that you have takin the time to answer my posts btw.
Reply With Quote
  #12  
Old 11 Nov 2001, 02:47
Insane2 Insane2 is offline
 
Join Date: Nov 2001
Oh BTW for more info on vbPortal (One of the best things since vbulletin itself) look here : http://www.phpportals.com/
Reply With Quote
  #13  
Old 11 Nov 2001, 05:31
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Try adding this before the error:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or editing your .htaccess, and add this line:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:04.

Layout Options | Width: Wide Color: