Newbie Error parsing help?

This is where you share YOUR scripts with others

Moderators: macek, egami, gesf

Quizmaster
New php-forum User
New php-forum User
Posts: 18
Joined: Wed May 30, 2012 12:43 pm

Newbie Error parsing help?

Postby Quizmaster » Mon Aug 06, 2012 6:18 pm

Okay, so last time ya'll heard from me I was having difficulty executing a script, now I got everything running smoothly, turns I was missing the MySQL dependency in my LAMP stack setup and once I install the MySQL, got the php-mysql modules for my apache server configured, I was able to run my script... Now this time, I need your help debugging my script here, since I'm new to the error messages in and for this particular language, can anyone tell me what needs to modified, compiled or installed as far as library packages or if that is even the problem, if so what do I need to do, here is my code:

Code: Select all

 
<?
# Include http library 
include("LIB_http.php");

# Define the target and referer web pages
$target = "http://www.schrenk.com/publications.php";
$ref    = "http://www.schrenk.com";   
 
# Request the header   
$return_array = http_get_withheader($target, $ref);   
   
# Display the header   
echo "FILE CONTENTS \n";   
var_dump($return_array['FILE']);   

echo "ERRORS \n";   
var_dump($return_array['ERROR']);   
 
echo "STATUS \n"; 
var_dump($return_array['STATUS']);   

?>                 

Quizmaster
New php-forum User
New php-forum User
Posts: 18
Joined: Wed May 30, 2012 12:43 pm

Re: Newbie Error parsing help?

Postby Quizmaster » Mon Aug 06, 2012 7:33 pm

I neglected to post the output, sorry about that guys, here you go:

Code: Select all

 
eddie_nygma@enigmatics ~ $ php script_3_6.php
PHP Warning:  include(LIB_http.php): failed to open stream: No such file or directory in /home/eddie_nygma/script_3_6.php on line 3
PHP Warning:  include(): Failed opening 'LIB_http.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/eddie_nygma/script_3_6.php on line 3
PHP Fatal error:  Call to undefined function http_get_withheader() in /home/eddie_nygma/script_3_6.php on line 10

Quizmaster
New php-forum User
New php-forum User
Posts: 18
Joined: Wed May 30, 2012 12:43 pm

Re: Newbie Error parsing help?

Postby Quizmaster » Tue Aug 07, 2012 6:25 pm

Is there any way I can assist you guys in helping me solve this problem, perhaps more information would make it easier, do you guys have any questions no one quite understood, I'm happy to clarify and answer?
I want to get it running as soon as possible seeing that it's due for my CS class...

Quizmaster
New php-forum User
New php-forum User
Posts: 18
Joined: Wed May 30, 2012 12:43 pm

Re: Newbie Error parsing help?

Postby Quizmaster » Thu Aug 09, 2012 8:25 pm

Please tell me, what the fuck do I have to do to get sort of help or answer out of this forum, I may be a noob but I'm just as serious as anyone else about wanting to learn how to script, so the fact that none of you can come up with a single question or mode of helping me with such a simple set of questions is just beyond my comprehension, all I need is to be able to identify these errors so I ultimately debug it on my own, is that so much to ask compared to any other mindless noob questions you see on these forums, because I'm seen more dumber posts than simply my how to write a fucking web page download script, consisting of 5 lines, 2 comments and a few elementary apache terminal commands, this kind of long-procastinated negligence does not register with any of the reasons why I joined this forum, all I want to do I master another server-side embeddable scripting besides Python and Perl. I just want to say that the knowledge I've seen here is very disappointing and maybe my friends who recommended this forum were wrong. The fact is I haven't a good book on the basics of PHP so I'm trying to learn by simple text-based programs and scripts, in the same way that I learned my other languages, but at least I had some help back then.

Quizmaster
New php-forum User
New php-forum User
Posts: 18
Joined: Wed May 30, 2012 12:43 pm

Re: Newbie Error parsing help?

Postby Quizmaster » Fri Aug 10, 2012 12:45 am

What the hell is the matter, you guys don't think I'm trolling do you, because I desperately need some good guidance here.

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Newbie Error parsing help?

Postby egami » Thu Aug 16, 2012 3:14 pm

It's bloody apparent that you're file that the script is trying to include does not exist.

Either, it's in the wrong directory, spelled incorrectly, or the CaSe MaTCh isnt the same.

Check the code, check the script, check the make sure the file exists and matches your include path.


And for the record...
Being snooty won't get you very far.


Return to “Your Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest