Work fine, thank you very much.Originally Posted by grynmoors
Work fine, thank you very much.Originally Posted by grynmoors
Work fine, in web browser, when i try to run like cron, not work, give error like:
why? i dont understand why trought broeser work and with cron no. :(Code:/home/com/public_html/cron_guest_info_table.php: line 1: ?php : No such file or directory /home/com/public_html/cron_guest_info_table.php: line 2: syntax error near unexpected token `"/home/com/public_html/include/config.php"' /home/com/public_html/cron_guest_info_table.php: line 2: ` include("/home/com/public_html/include/config.php");
Make sure that the path to your file is correct in your cron. The error that you are getting is telling you that the path is incorrect.
vShare Solutions
Custom vShare Modules and Services
Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!
The patch is correct, in error is show "config.php" who are a include inside the php code of file who are in the cron.Originally Posted by bplex
:(
You have safemode turned on more than likely.
Change the code that says "include("/home/com/public_html/include/config.php");" to be "include("include/config.php");"
vShare Solutions
Custom vShare Modules and Services
Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!
Nothing...Originally Posted by bplex
Still errors..Code:/home/com/public_html/cron_guest_info_table.php: line 1: ?php : No such file or directory /home/com/public_html/cron_guest_info_table.php: line 2: syntax error near unexpected token `"include/config.php"' /home/com/public_html/cron_guest_info_table.php: line 2: ` include("include/config.php"); '
I dont think to have safe mode on, vshare run without problem...
thank you anyway.
Maybe i can directly put database info directly in the code?
will work like this?Code:<?php $db=mysql_connect ($localhost,$username,$pass) or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ($namedatabase); mysql_query("TRUNCATE TABLE `guest_info`"); #mysql_query("TRUNCATE TABLE `playlist`"); // uncomment if you also don't want to track peoples entire playlists. mysql_close($db); #print "Your guests and their play lists (if playlists has been included in the flush) have been cleared from the database.";//UNCOMMENT IF YOU RUN THIS MANUALLY #print " ";//UNCOMMENT IF YOU RUN THIS MANUALLY #print "Return to the main page";//UNCOMMENT IF YOU RUN THIS MANUALLY ?>
Have a look on the wiki:
http://docs.buyscripts.in/Guest_table
Bookmarks