Computer Geeks

Computer Geeks

Geek Shop

Geek News

Geek Stuff

Science Geek

Computer Gaming

Linux Chat

Building Websites

Computer Forums

Computer Help Forum

Computer Hardware Forum

Computer Software Programs


Go Back   Computer Forums > Linux Chat
FAQ Community Calendar Today's Posts Search

Linux Chat Linux geeks unite! Discuss anything related to the Linux operating system here.

Computer Geeks
» Active Discussions
Computer Geeks
No Threads to Display.
» Other Websites
- Software Publishing

- Server Hardening
Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2008, 06:25 PM
StupidNoob StupidNoob is offline
Junior Member
GB Newbie
 
Join Date: Apr 2008
Posts: 1
Default Cron executing php scripts?

Hello all, Nice site you guys have here. Found it very useful.

Having problems executing a php script using cron.

Info about my setup. I running centos 4.6 with Webmin and virtualmin installed. I setup the cron job through the webmin modules for cron
I googled endlessly and tried several methods

I tried

php -q /home/shockey/public_html/Beta/666.php
wget www.site.com/path/to/script
tried putting /usr/bin/php at the top of the php script. still no luck.

I execute the script from my browser by going to the site and it works perfectly(Except for the undefined offset part).


I can't figure out this undefined offset error for the life of me, My script works fine on my computer but i load it up on the server and it doesn't go away. It does it on all my script. At least the ones with Arrays in them.


PHP Code:
PHP Warning:  fopen(headers/wolverine1666@hotmail.com.txt): failed to open streamNo such file or directory in /home/shockey/public_html/Beta/666.php on line 29

Warning
fopen(headers/wolverine1666@hotmail.com.txt): failed to open streamNo such file or directory in /home/shockey/public_html/Beta/666.php on line 29
PHP Warning
:  curl_setopt(): supplied argument is not a valid File-Handle resource in /home/shockey/public_html/Beta/666.php on line 43

Warning
curl_setopt(): supplied argument is not a valid File-Handle resource in /home/shockey/public_html/Beta/666.php on line 43
PHP Warning
:  fclose(): supplied argument is not a valid stream resource in /home/shockey/public_html/Beta/666.php on line 45

Warning
fclose(): supplied argument is not a valid stream resource in /home/shockey/public_html/Beta/666.php on line 45
PHP Warning
:  file(headers/wolverine1666@hotmail.com.txt): failed to open streamNo such file or directory in /home/shockey/public_html/Beta/666.php on line 670

Warning
file(headers/wolverine1666@hotmail.com.txt): failed to open streamNo such file or directory in /home/shockey/public_html/Beta/666.php on line 670
PHP Warning
:  Invalid argument supplied for foreach() in /home/shockey/public_html/Beta/666.php on line 672

Warning
Invalid argument supplied for foreach() in /home/shockey/public_html/Beta/666.php on line 672
17
:18:32 wolverine1666@hotmail.com<br>
PHP Notice:  Undefined offset:  0 in /home/shockey/public_html/Beta/666.php on line 332

Notice
Undefined offset:  0 in /home/shockey/public_html/Beta/666.php on line 332
17
:18:32 Repair cost = <br>
17:18:32 Already bought mercs<br>
PHP Notice:  Undefined offset:  0 in /home/shockey/public_html/Beta/666.php on line 391

Notice
Undefined offset:  0 in /home/shockey/public_html/Beta/666.php on line 391
PHP Notice
:  Undefined offset:  1 in /home/shockey/public_html/Beta/666.php on line 398

Notice
Undefined offset:  1 in /home/shockey/public_html/Beta/666.php on line 398
17
:18:32 -  gold
17
:18:32 No deposits statements found<br>
PHP Notice:  Undefined offset:  1 in /home/shockey/public_html/Beta/666.php on line 417

Notice
Undefined offset:  1 in /home/shockey/public_html/Beta/666.php on line 417
17
:18:32 not enough money to bank<br>
17:18:32 recruiting started!<br>
PHP Notice:  Undefined offset:  0 in /home/shockey/public_html/Beta/666.php on line 591

Notice
Undefined offset:  0 in /home/shockey/public_html/Beta/666.php on line 591
PHP Notice
:  Undefined offset:  1 in /home/shockey/public_html/Beta/666.php on line 592

Notice
Undefined offset:  1 in /home/shockey/public_html/Beta/666.php on line 592
PHP Notice
:  Undefined offset:  0 in /home/shockey/public_html/Beta/666.php on line 594

Notice
Undefined offset:  0 in /home/shockey/public_html/Beta/666.php on line 594
(0no ticket number found<br>
PHP Notice:  Undefined variableticket in /home/shockey/public_html/Beta/666.php on line 616



deleted all other undefined offsets to make post smaller
17
:18:35 logged out.<br

any help would be great, I'm stuck
Reply With Quote
  #2  
Old 08-24-2008, 01:10 PM
sohel02 sohel02 is offline
Junior Member
GB Newbie
 
Join Date: Aug 2008
Posts: 3
Default Perfect script site

I execute the script from my browser by going to the site and it works perfectly(Except for the undefined offset part).I can't figure out this undefined offset error for the life of me, My script works fine on my computer but i load it up on the server and it doesn't go away. It does it on all my script. At least the ones with Arrays in them.
Reply With Quote
Reply


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

Forum Jump

Powered by vBadvanced CMPS v3.2.3

All times are GMT -5. The time now is 02:17 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.