[PHP] php / apache
can anyone tell me how to configure a php script so that it can only be accessed by other scripts and not directly by typing its url in the webrowser? -petur -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] php / apache
its because I have a php file that needs a password to view - that file contains 'includes' to another script that gets images from a database and displays them. I need to make it so that only that particular php file can access these image-viewing scripts. -petur "Jason Lustig" <[EMAIL PROTECTED] To: Pétur Björn Thorsteinsson ffalo.edu> <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> 30.06.2001 cc: 02:58 Subject: RE: [PHP] php / apache Please respond to lustig Why would you want to do that? I don't think it's really possible... unless you do something wacky with Apache... --Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] running php scripts
hi, I was wondering if someone could help me with a small problem I'm having. I'm running a script that periodically dumps information from one server to a database on another. We're running suse 7.1 and apache on the server containing the information, and the problem is I don't know how to make linux run the php script, or how to set up crobtab with the php script in mind. anyone have any ideas? -petur -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] running php scripts
thanx for the help man, the script is running and I get to keep my job ,) -petur "Johan Holst Nielsen" To: <[EMAIL PROTECTED]> Subject: Re: [PHP] running php scripts 17.07.2001 13:17 > >We're running suse 7.1 and apache on the server > > containing the information, and the problem is I don't know how to make > > linux run the php script, or how to set up crobtab with the php > script in > > mind. anyone have any ideas? > > You can use this Tutorial > http://www.faqts.com/knowledge_base/view.phtml/aid/1005 > > I think it can help you :o) If your problem was how to execute the script you can etc. use Lynx (or wget)... if you use lynx use follow /path-to-lynx/lynx http://www.domain.com/scriptname.php -source Regards Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] execution time
I have a slight problem and was wondering if anyone could help. I have a php script that runs every 30 minutes. It takes the contents of a directory (which is constantly being updated) and dumps them into a mysql database. Recently this directory has become increasingly large and the php script only updates a portion of it before it stops execution. To run the php script I use a lynx command in a crontab. I'm running suse linux and apache on both machines (the machine containting the directory and the other machine containing the database). I've tried changing the max execution time in php.ini file but it appears to have no affect. When I took the php script and divided it into portions and ran them one at a time it worked (except for one portion of the script). the execution time of the script doesn't matter to me, I just need it to run. When I run the php script through a browser, and the script doesn't complete, I get a 'page cannot be displayed' message (while I am expecting a 'fatal error, exceeded max execution time' error message). Maybe it could be fixed by using something other than lynx to run the php script internally, but I don't know of any alternatives. hope someone can help.. -petur -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] insertion question
I have to store a whole lot of text files into a database, each one containing 3 columns containing numbers and about 2500 lines. I was wondering if anyone knew which would be the best way to store these files, having one big table with each row containing the contents of the files, or making one table for each file and inserting each line of the file into its respective row in the database. The database will probably become pretty big and I'm looking for the option that won't slow it down too much. -petur -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]