[PHP] php not run as cgi.

2001-06-30 Thread Jack
hi everyone, Does anyone know the best way to secure php source code so it is not group/world readable? I can read other users' php source code by writing a simple php script. I do not prefer to run php as cgi because all user's php file need to add the header #/usr/bin/php again. Thanks. Jack

Re: [PHP] php / apache

2001-06-30 Thread Matt McClanahan
On Fri, Jun 29, 2001 at 03:54:13PM +, Pétur Björn Thorsteinsson wrote: > 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? Just move the script outside the web root. Browsers can't direc

[PHP] emalloc / erealloc problem (was: help with custom session handler)

2001-06-30 Thread Aral Balkan
ok, I found what's making Apache crash... my getting entries like: FATAL: emalloc(): Unable to allocate 1701082243 bytes FATAL: erealloc(): Unable to allocate 369098752 bytes in the log. Somehow when I query the database it must be trying to allocate -- unless my eyes deceive me -- ~1.6 GBs

Re: [PHP] emalloc / erealloc problem (was: help with custom sessionhandler)

2001-06-30 Thread Rasmus Lerdorf
> FATAL: emalloc(): Unable to allocate 1701082243 bytes > FATAL: erealloc(): Unable to allocate 369098752 bytes > > in the log. Somehow when I query the database it must be trying to > allocate -- unless my eyes deceive me -- ~1.6 GBs of memory in the first > entry and ~350 Megs in the second.

[PHP] Website dealing with PHP image generation?

2001-06-30 Thread Jeff Lewis
Ok, I have tried Experts Exchange, Devshed, and even posted on here asking. Does anyone know how to use the image generation? I looked for a good site on it but found nothing... My problem. I am creating an image on the fly based on newest entries in one my mySQL tables. In this created im

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread Rasmus Lerdorf
> > Ok, stop right there. Sessions and authentication have nothing to do with > > each other. To create a secure authenticated site you should be using > > HTTP-based authentication over SSL. Sessions are simply for maintaining > > state across http requests and have nothing to do with authenti

RE: [PHP] Website dealing with PHP image generation?

2001-06-30 Thread Jon Yaggie
Jeff, I am not extremely fimilar with this function. However, I did notice you are copying your image at a width and height of 1x1. this is my guess as far as i know by default this pixels. so the likehood you would see an image copied at 1x1 is rather low. but perhaps i am complete wro

Re: [PHP] php not run as cgi.

2001-06-30 Thread Julia A. Case
You can change the group to the group the webserver runs as and then make the file mod 660 (this way the webserver can read but other people can't) Hope this helps, Julia Quoting Jack ([EMAIL PROTECTED]): > hi everyone, > Does anyone know the best way to secure php source code so it is not > g

[PHP] caching

2001-06-30 Thread Jon Yaggie
Ok I am dynamically creating images. my problem is my browser is caching the images (or at least half ot them - i see no particular system to which) i have no idea how to stop this. i have tried using the header Cache-Control: no-cahe However it seems to have no helped. maybe i am using it

Re: [PHP] emalloc / erealloc problem (was: help with custom session handler)

2001-06-30 Thread Aral Balkan
Rasmus, When I try it with the MySQL handler you provided everything goes well -- no errors. I guess I was hoping that the problem was with some php.ini setting or something and not with Metabase as I'm dreading going into all code but alas, I guess I must. Do you have any idea what sort of data

[PHP] Time out Errors?

2001-06-30 Thread Chris Anderson
I have mayn scripts on a website that use MySQL connections for various tasks. Strangely sometimes a task will hit the timeout (30 sec), then work perfectly when I refresh. Or even work perfectly other times. I'm using Apache on Windows 98 and I'd never had this bug before. Would it be because

Re: [PHP] emalloc / erealloc problem (was: help with custom sessionhandler)

2001-06-30 Thread Rasmus Lerdorf
> Do you have any idea what sort of database query could cause a memory leak > like that? Could it have anything to do with the serialized data being > written to the database having a '|' character and that character somehow > being interpretted as a concatenation character in a Metabase function

Re: [PHP] emalloc / erealloc problem (was: help with custom session handler)

2001-06-30 Thread Aral Balkan
Well finally I am 99.9% sure that the problem is with Metabase. I've managed to bring the code down to the absolute minimum to simplify things and I can now state the bug clearly: On Pentium III 500Mhz running WinMe, Apache 1.3.19 and PHP 4.0.5, use of Metabase calls in custom session handler to

[PHP] undefined symbol: sk_new_null

2001-06-30 Thread Jack Lauman
Does anyone know what extension the following symbol belongs to? sk_new_null TIA, Jack -- 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] (slightly OT) the bad and the good (hosting recommentations)

2001-06-30 Thread John Monfort
www.pepiedesigns.com PHP 4 Perl 5 MySQL ASP Apache Web Access Panel SSH and a whole lot more... __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+_

[PHP] GMT Time and Setting Cookies in PHP

2001-06-30 Thread Gonyou, Austin
What's a good method for setting time in GMT? as in the expiration date for cookies? I saw two functions to do this with, but I haven't been able to get them to output anything properly. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] --

Re: [PHP] (slightly OT) the bad and the good (hosting recommentations)

2001-06-30 Thread Jack Sasportas
It sounds like price is more important to you then quality of service etc. John Monfort wrote: > www.pepiedesigns.com > > PHP 4 > Perl 5 > MySQL > ASP > Apache > Web Access Panel > SSH > and a whole lot more... > > __John Monfort_ > _+--

[PHP] Cookie ?

2001-06-30 Thread Jack Sasportas
I wanted to do something like set the cookie for 5 minutes, then as the user uses the system each page would refresh so to speak the timeout always setting it back to 5 minutes as long as he was using it. I beleive this is not really working. Any Ideas on how I can accomplish this ?? Thanks Here

Re: [PHP] Capturing output of shell script.

2001-06-30 Thread Brad Hubbard
On Sat, 30 Jun 2001 06:36, Charles Williams wrote: > Hello all, > > I have an .sh shell script being executed from a php4 call. I need to > capture the string return and work with that in the php script. The only > problem is that the call works but I cannot get the returned string. I've > trie

Re: [PHP] Cookie ?

2001-06-30 Thread Jon Yaggie
i had this problem a while back. the problem with this is cookies work by the users time not the servers time. so if the server is in america and my computer is on japanese time even a cookie set for time()+18000 will be valid because my computer is actually +50400 for a server in EST. i have

Re: [PHP] Time out Errors?

2001-06-30 Thread Aral Balkan
I've been having the same problem with Apache 1.3.19 / PHP 4.0.5 running on WinMe -- and not just with my scripts either: phpMyAdmin does it sometimes too. So, I reckon that the problem is with the configuration. Has anyone experienced this on Win2000? (I'm in the process of moving my files to a

Re: [PHP] (slightly OT) the bad and the good (hosting recommentations)

2001-06-30 Thread Justin French
Jack Sasportas wrote: > > It sounds like price is more important to you then quality of service etc. Not at all. That's why I asked if any one had experience with experthost.com, bad or good. I do want to know about the service before signing up. So far almost everyone that has responded has

[PHP] Fatal Execution Error

2001-06-30 Thread Chris Cameron
I'm getting quite the whacked out error when trying to run this one php file. FATAL: erealloc(): Unable to allocate 15728640 bytes When trying to load it as a webpage I get: Alert!: Unexpected network read error; connection aborted. from lynx. When running the file from the command line with

[PHP] Page not found for MSIE in SSL mode

2001-06-30 Thread Fikko Adhipranta
I am using MSIE 5.5, with web-hosting apache. When do the secure connection SSL, sometime, it displays: Page Not Found. I find out it happens because MSIE doesn't kill the secured connection. (I refer to the documentation: http://www.modssl.org/docs/2.6/ssl_faq.html#ToC48 The web-hosting refushed

[PHP] Ò»¸öÓòÃû6¸öÍøÕ¾(ÓòÃû×¢²á´óÓÅ»Ý)

2001-06-30 Thread ÍøÂçʱ´ú Today'Network
×𾴵Ŀͻ§£ºÄúºÃ! ·²ÔÚ6ÔÂ23ºÅµ½7ÔÂ23ºÅÖ®¼äÔÚToday's NetworkÍê³É¹úÄÚ¡¢¹ú¼Ê¡¢ÐÂÓòÃû×¢²á£¬¾Í¿ÉÒÔÒ»¸öÓòÃû¾ÍÄÜͬʱ½¨Á¢Áù¸öÍøÕ¾,Ò²¾ÍÊÇ˵´Î¼¶ÓòÃûÊýÓÉÔ­À´µÄ3¸ö±äΪ6¸ö!ÔÙ¼ÓÉÏVDNSÌØÓеÄÈýÖÖÖ¸Ïò¹¦ÄÜ£¬Òª½¨Éè×Ô¼ºµÄδÀ´ÍøÒ׺ÍËѺü£¬¾ÍÒª´ÓÏÖÔÚ¿ªÊ¼£¡ »¥ÁªÍøÉÏÿÁ½ÃëÖ־ͻáÏûʧһ¸öÓòÃû£¡Í¶×Ê×Ô¼ºµÄÍøÂ

[PHP] accessing files not in www root directory.

2001-06-30 Thread Sterling Anderson
Hi, I am trying to write a page that will perform a select on a DB and get the path and file name of an image. Then display the image. The DB part if fine but I am having difficulty figuring out how to get the images to display. For example: result from select: $file_path = "/home/pics/friends/

Re: [PHP] accessing files not in www root directory.

2001-06-30 Thread Chris Anderson
you may want to send this as a NON-reply, because many people view mail by grouped threads, and thus would miss your question Original Message - From: "Sterling Anderson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 01, 2001 12:05 AM Subject: [PHP] accessing files not in www

[PHP] accessing files not in www root directory.

2001-06-30 Thread Sterling Anderson
Hi, I am trying to write a page that will perform a select on a DB and get the path and file name of an image. Then display the image. The DB part if fine but I am having difficulty figuring out how to get the images to display. For example: result from select: $file_path = "/home/pics/friends/"

Re: [PHP] Fatal Execution Error

2001-06-30 Thread Aral Balkan
Are you doing a database query by chance or anything with sessions? I'm getting the same errors logged in the Apache logs for something I'm working on (see my previous posts for details.) Aral :) __ ([EMAIL PROTECTED]) New Media Producer, Kismia, Inc. ([EMAIL PROTE

Fw: [PHP] problems with round ..

2001-06-30 Thread Gyozo Papp
- Original Message - From: "Clayton Dukes" <[EMAIL PROTECTED]> To: "Gyozo Papp" <[EMAIL PROTECTED]>; "Chad Day" <[EMAIL PROTECTED]> Sent: 2001. június 29. 20:50 Subject: Re: [PHP] problems with round .. > Hey, > Could one of you do me a favor and post this to the list, it doesn't seem

<    1   2