Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
I'm having an error including a file from a cron job.
Old 03-09-2011, 08:24 AM I'm having an error including a file from a cron job.
Extreme Talker

Posts: 177
Trades: 0
All my googling to find a solution for this error provides me with pages experiencing the same problem. I was hoping someone could identify this probably simple issue.

Code:
Warning: require_once(./resources/connect.php): failed to open stream: No such file or directory in /home/kzb133/public_html/jobsearch/cron.php on line 3

Fatal error: require_once(): Failed opening required './resources/connect.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kzb133/public_html/jobsearch/cron.php on line 3
kbfirebreather is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-09-2011, 09:23 AM Re: I'm having an error including a file from a cron job.
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
connect.php either does not exist or isn't where the script is looking. If it does exist but isn't in the right place you can either move it or modify the code to use the correct path.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 03-09-2011, 09:39 AM Re: I'm having an error including a file from a cron job.
Skilled Talker

Posts: 60
Name: Dmitry
Trades: 0
Are you sure what connect.php is in /home/kzb133/public_html/resourses directory?
__________________
Sincerely, Dmitry

Please login or register to view this content. Registration is FREE
ElmanF is offline
Reply With Quote
View Public Profile Visit ElmanF's homepage!
 
Old 03-09-2011, 09:57 AM Re: I'm having an error including a file from a cron job.
Extreme Talker

Posts: 177
Trades: 0
I was able to do:

Code:
chdir(www/jobsearch)
//chdir(public_html/jobsearch) ~~ doesn't work for some reason, only www does
and that fixed the issue.
kbfirebreather is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I'm having an error including a file from a cron job.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13448 seconds with 12 queries