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

[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/

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

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

[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] 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

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

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] 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] 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

[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] (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] 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 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] 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] 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

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

[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 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] 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] 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

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] 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

[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] 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] 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] 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] 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 code security problem?

2001-06-30 Thread Rasmus Lerdorf
> 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. Turn on safe-mode. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] php code security problem?

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. Thanks. Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: [PHP] newbie has include path error

2001-06-30 Thread Justin French
Hi, If you can "surf" local host for standard HTML pages and other php pages (without includes in them) eg: http://localhost/file.html Then the problem isn't the server really, it seems to me that the server document root for your files should be something like: /usr/local/apache/ not /etc/htt

Re: [PHP] making e-mail link

2001-06-30 Thread Brad Hubbard
On Fri, 29 Jun 2001 01:28, richard greene wrote: > Bill > > I grabed this function from the www.php.net manual and it works great, it > covers all your bases, except that it will show you > http://www.something.com for http://www.something.com or www.something.com. > If somone knows how to modify

Re: [PHP] Re: Regular Expression help

2001-06-30 Thread Brad Hubbard
On Fri, 29 Jun 2001 23:43, Clayton Dukes wrote: > Okay, here's what I have so far: > > ---snip--- > if ((!$email) > >|| ($email=="") >|| (!eregi("^[_\.0-9a-z-]+@domain.+[a-z]",$email)) > >) > $stop = ""._ERRORINVEMAIL.""; > ---snip--- > > This works, but how can I add a

Re: [PHP] reading records alphebetically

2001-06-30 Thread Jack Sasportas
Since you only have a few records, creating a second index with the first letter doesn't apply to you, but is a good idea in a huge db scheme. The simplest & fastest way is to take the suggestions a few people made which is SELECT * FROM table WHERE name LIKE '$letter%' I would not suggest this

Re: [PHP] Auto submit form, How?

2001-06-30 Thread Henrik Hansen
Fates <[EMAIL PROTECTED]> wrote: > How do I auto load or auto submit a form on the same page? I don't want > to have to press the submit button instead just click on a value in the > drop down form and it loads (I am lazy). > use javascript, to find you answer look here http://www.devel

Re: [PHP] reading records alphebetically

2001-06-30 Thread Julia A. Case
Try using a query like select * from table_name where name like '$letter%'; Julia Quoting Jamie Saunders ([EMAIL PROTECTED]): > Hi, > > I have a MySQL database set-up containing a few hundred records. I'm trying > to make a script that reads the 'name' field of the records and displays > only

RE: [PHP] reading records alphebetically

2001-06-30 Thread Warren Vail
If you are planning to have a lot of records, you may want to create a column with just that letter and index it, followed by the full name. SELECT name from Table WHERE first_letter = "$letter" ORDER by name should produce pretty fast results if "first_letter, name" is indexed. Warren Vail --

Re: [PHP] Urgent Help: Problem with apache+php

2001-06-30 Thread teo
Hi Imran! On Sat, 30 Jun 2001, Imran Hussain wrote: > hi > > Iam running Freebsd4.3 i hv installed apache-1.3.20,php4.0.5 and > postgres-6.5.3. there was no problem with the configuration of all > the above packages, My problem is when i start apache it gives me this error. > > hub#/usr/

Re: [PHP] Telnet and PHP

2001-06-30 Thread jon
Instead of performing a send for each stroke, the user code type in a whole string in a text box, and then submit that string. I have found this code at http://www.phpbuilder.com/mail/php-general/2001051/1479.php: sock = fsockopen($host,$port); socket_set_timeout($this->sock,2,0);

RE: [PHP] Adding 1 to a whole number

2001-06-30 Thread Don Read
On 30-Jun-01 Richard Kurth wrote: > Way is this doing this Starting with 1000 all I what to do is increse > this number by one the first time I run it it adds 1 to the number 10001 > second time it 10001002 > Shouldn't it just add 1 to the number 1000,1001,1002,1003 > strings don't add well, g

RE: [PHP] Telnet and PHP

2001-06-30 Thread Warren Vail
By "active user input", I would assume that you mean every time the user makes a keystroke, the keystroke is sent to the host machine. This is not a characteristic of html which only sends information to the host machine when some form of submit is clicked. The advantage of the applet for this s

Re: [PHP] reading records alphebetically

2001-06-30 Thread Ethan Schroeder
You can either select the letter you want through mysql with "SELECT * FROM table WHERE name LIKE '$letter%' Or you can select everything: $result = mysql_query("SELECT * FROM table order by name"); while ($row = mysql_fetch_array($result)) { extract($row); $first_letter = strtolower($name[

Re: [PHP] Pricing Advice Needed

2001-06-30 Thread teo
Hi Brad! On Sat, 30 Jun 2001, Brad Hubbard wrote: > On Fri, 29 Jun 2001 01:42, Thomas Deliduka wrote: > > > I think in general it's about $100-$150/hour for programming/database work. > > Yankee dollars? > > Gawwd... I AM being exploited due to geographic disadvantage! > to make you feel

Re: [PHP] Pricing Advice Needed

2001-06-30 Thread Brad Hubbard
On Fri, 29 Jun 2001 01:42, Thomas Deliduka wrote: > I think in general it's about $100-$150/hour for programming/database work. Yankee dollars? Gawwd... I AM being exploited due to geographic disadvantage! Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria

[PHP] Telnet and PHP

2001-06-30 Thread jon
I was doing some research on creating a webbased telnet client and I am unsatisfied with Java applets. I would like to create a server side telnet client, so the user side is only required to have a working web browser that supports HTML. Thus, I turned to PHP. I found one example, but it does

[PHP] reading records alphebetically

2001-06-30 Thread Jamie Saunders
Hi, I have a MySQL database set-up containing a few hundred records. I'm trying to make a script that reads the 'name' field of the records and displays only the records of which the name field begins with a specific letter: if ($letter = A) { display all records of which field 'name' being

[PHP] ImageCopy

2001-06-30 Thread Jeff Lewis
I am creating an image on the fly based on newest entries in one my mySQL tables. In this created image I am trying to add a small one to it. Now I am TRYING to use the below code: $image = ImageCreate(500, 70); $bg = ImageColorAllocate($image, 255, 255, 255); $blue = ImageColorAllocate($image,

Re: [PHP] Auto submit form

2001-06-30 Thread Justin French
David wrote: > How do I autoload a selection from a drop down menu form based on the > selection without having to click a submit button? Everything to do with forms is either to do with hitting a submit button (call to a server) or without (which means that the browser/client is handling it), s

RE: [PHP] Capturing output of shell script.

2001-06-30 Thread Don Read
On 29-Jun-01 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 > tried using exec

[PHP] ½Ãµð ÆË´Ï´Ù

2001-06-30 Thread ¼ºÀ±±â
¿©·¯ºÐ¿¡°Ô °¡Àå ÇÊ¿äÇϰí À¯ÀÍÇÑ ÄÄÇ»ÅÍ °ü·ÃÇÁ·Î±×·¥À» ÆÄ°ÝÀûÀ¸·Î ½Ñ °¡°Ý¿¡ °ø±ÞÇÕ´Ï´Ù ÃֽŰÔÀÓ. À¯Æ¿°ü·ÃÇÁ·Î±×·¥. MP3. ºñµð¿À½Ãµð µîµî ¸ðµç ÇÁ·Î±×·¥À» ÆÇ¸ÅÇÕ´Ï´Ù. 6¿ù ÃֽŸ®½ºÆ®ÀÔ´Ï´Ù ¹°·Ð ½Å¿ë °ÆÁ¤À» ÀüÇô ½Å°æ¾²Áö ¸¶½Ê½Ã¿ä ÀÌ ¸ÞÀÏÀ» º¸³½ ¾ÆÀ̵ð·Î´Â ¿¬¶ôÀÌ µÇÁö ¾Ê½À´Ï´Ù. ¾ÐÃàÈ­Àϼӿ¡ ¿¬¶ôó°¡ ÀÖ

[PHP] setting up / configuring mail()

2001-06-30 Thread James Cox
hey does anyone know any good resource sites or documents about configuring the mail services for php so it works? Thanks, James Cox. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . James Cox :: Creative Director :: AWP imaJes t: +44 (0)7968 349990 | f: +44 (0)1992

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

2001-06-30 Thread adam (dahamsta)
Hi again Rasmus, thanks for your reply. Rasmus Lerdorf <[EMAIL PROTECTED]> said: > I wasn't trying to be overly critical, I just worry that new users are > reading these posts and see these insecure solutions to this problem and > don't realize that they are inherently insecure. > I understand

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

2001-06-30 Thread Robert Klinkenberg
Depends on what you want to do, first you have to define what are valid sessions, So think of things like this - One Session can only come from one IP address - A session ID that was created n minutes ago is no longer valid - A user using Netscape x can't be using IExplorer y After a user co

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

2001-06-30 Thread adam (dahamsta)
Hi Richard, Richard Lynch <[EMAIL PROTECTED]> said: > > I want to use PHP4 sessions for authentication, but I'm having difficulty > > If it's as important as all that, go with SSL. > Ah, I'll be using SSL for the original authentication anyway. But the users will be browsing using regular HTT

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

2001-06-30 Thread Rasmus Lerdorf
I wasn't trying to be overly critical, I just worry that new users are reading these posts and see these insecure solutions to this problem and don't realize that they are inherently insecure. > What I'm asking is basically "What's the best and easiest way to go about > this?" I have come up with

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

2001-06-30 Thread adam (dahamsta)
Hi Rasmus, nice to see you still watching over us on the lists. I feel like I've been ticked off by my dad though... :) Rasmus Lerdorf <[EMAIL PROTECTED]> said: > > I want to use PHP4 sessions for authentication, > > Ok, stop right there. Sessions and authentication have nothing to do with >

Re: [PHP] Question on Commercial Offerings

2001-06-30 Thread James Moore
Thomas Deliduka wrote: > > I don't know quite how to word that subject but here's what we want to do. > > We have a shopping cart softwre (like a million others out there) which > based in windows NT with a COM+ object to guard the source code. > > We mainly offer this product to our hosting cu

Re: [PHP] closing window after submit

2001-06-30 Thread DAve Goodrich
on 6/28/01 3:57 PM, Richard Kurth at [EMAIL PROTECTED] wrote: > I have a form that is in a pop up window it has an image for a submit > button how can I close the pop up after submitting. I know I can do it > with javascript with a standard submit button. but how can I do it when > I use an image

[PHP] Help with custom session handler

2001-06-30 Thread Aral Balkan
I'm writing a custom session handler that saves sessions using Manuel Lemos' excellent Metabase library. The problem is, although I've got the session_set_save_handler function pointing to the correct start, end, read, write, destroy and garbage collection functions, when I call session_start and

Re: [PHP] making e-mail link

2001-06-30 Thread Brad Hubbard
On Fri, 29 Jun 2001 01:28, richard greene wrote: > Bill > > I grabed this function from the www.php.net manual and it works great, it > covers all your bases, except that it will show you > http://www.something.com for http://www.something.com or www.something.com. > If somone knows how to modify

RE: [PHP] ENC: ADD a user in linux using PHP

2001-06-30 Thread Chadwick, Russell
http://expect.nist.gov/ --- Toolshed Computer Productions - Professional PHP Hosting Hosting - Dedicated Servers - Design - Programming http://www.toolshed51.com -Original Message- From: Bruno Freire [mailto:[EMAIL PROTECTED]]

Re: [PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Delbono
Try this: $r = trim($rowData[3]); if ( !empty( $r ) ) { $tdStr.= trim($rowData[3]); } I tokk a look at the manual: 1. Note: empty() is a language construct. so: !empty is like to say !if or !while : so it's wrong- 2. Note that this is meaningless when used on anything which isn't a varia

RE: [PHP] PHP & ImageMagick

2001-06-30 Thread Chadwick, Russell
Did you try the escapeshellcmd () function ? - Russ --- Toolshed Computer Productions - Professional PHP Hosting Hosting - Dedicated Servers - Design - Programming http://www.toolshed51.com -Original Message- From: Jeffrey Barendse [mailto:[EMAIL PROTECTED]] Sent: Thursday, J

RE: [PHP] php / apache

2001-06-30 Thread Jason 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 administ

[PHP] extracting element for TOC

2001-06-30 Thread Chris Komlenic
I have a directory with many small html files...which I'd like to return the text within the tags for the purpose of creating a table of contents (TOC). I currently have a script which reads the directory, and returns all the files which I'd like to open. I'm a bit lost on how to write a loop w

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

2001-06-30 Thread Jason Brooke
> > I want to use PHP4 sessions for authentication, > > 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

Re: [PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Justin Farnsworth
You are trying to add the output of a function call, called twice, BTW, to a string, apparantly. You don't saw what $tdStr is, really, in the scope. Jason Lustig wrote: > > This is really weird. Very, very, very weird. I have the following code in a > script: > > if (!empty(trim($rowData[3]))

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

2001-06-30 Thread Bill Rausch
Sebastian Stadtlich said: >there is an option in php ini : > >session.referer_check = > >which should fit your needs > >not sure how to use it, but probably one of the php-developers on this >list can assist... I looked at this thing and can't figure out that it does very much. If someone m

Re: [PHP] Convert

2001-06-30 Thread Henrik Hansen
"Roman" <[EMAIL PROTECTED]> wrote: > Have you some program for convert Microsoft Access Database (*.mdb) to the > MySQL database ? take a look at mysqlfront, mysqlfront.de, which can import data from ODBC-datasources. you can also convert your db to csv files and import it to mysql that way.

[PHP] Automatic backup application

2001-06-30 Thread rodrigo
Hello. I was wondering if there was a free app that will: a) Backup my entire Mysql Database (via a dump, I guess). b) Backup the entire directory where my pages are, preferrably to a different location (say a remote server by FTP or Mail). Thanks in advance. --

Re: [PHP] Please Help......

2001-06-30 Thread Kurth Bemis
I think that maybe when somebody subs to the list they get a info-email. mostly saying "THIS IS PHP ONLY. Not a clueless linux newbie list. that's why they have LUGS." Do any of you agree with me? I think that its neededbasically saying - look at the manual first..then ask on the list

Re: [PHP] Mail()'s not playing nicely :(

2001-06-30 Thread Robin Chen
Instead of \n try \r\n Robin Jamie Thompson wrote: > > ok so i got > > mail("[EMAIL PROTECTED]", "$message", "sms alert", "Return-Path: $email > <$email>\nFrom: $email <$email>\nReply-To: $email <$email>\nX-Mailer: " . > phpversion()); > > the email appears as from [EMAIL PROTECTED] istead of

[PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Jason Lustig
This is really weird. Very, very, very weird. I have the following code in a script: if (!empty(trim($rowData[3]))) { $tdStr.= trim($rowData[3]); } Now, when I run it, I get the following error: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\server\wwwroot\contributor

[PHP] Compiling PHP with IMAP

2001-06-30 Thread Sagar Chand
Hiall, I am compiling php4.0.5 with imap support as a DSO for APache. with ./configure --with-apxs. --with-imap And I got an error saying rfc822.h missing. So I downloaded the latest Imap Beta 2001 tilldate And cp'd the c-client to /usr/include And after compiling the imapd and ipop3d I cp'd

RE: [PHP] Convert

2001-06-30 Thread Jason Murray
> Have you some program for convert Microsoft Access Database > (*.mdb) to the MySQL database ? http://www.google.com/ Type in "convert database access mysql". Press "I'm feeling lucky". You'd find the answers a lot faster than asking on a mailing list for PHP. Jason -- PHP General Mailing

RE: [PHP] $REMOTE_ADDR subnet consistency?

2001-06-30 Thread Jason Murray
> BUT I WAS WONDERING, and now here comes my question, do the first > two subnets of an IP address (i.e. 204.57.x.x) typically stay the > same, so that they could be relied upon for general authenticity? In practice, I would say yes. However, theoretically, AOL may suddenly use switch your co

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

Re: [PHP] how to determine size of gz-handler output

2001-06-30 Thread Richard Lynch
>I'd like to know how small my content gets when i use >ob_gzhandler. >so far i tried >$cont=ob_get_contents(); >$length=strlen($cont); >echo "\n"; > >but it outputs > > >while apache says in its logfile: >217.81.41.121 - - [29/Jun/2001:12:43:59 +0200] "GET / HTTP/1.1" 200 2028 [WILD GUESS ALERT!

Re: [PHP] PHP & ImageMagick

2001-06-30 Thread Richard Lynch
> In PHP I try to run a shell command with the following source code: > > $fotonaam = 'convert -font arial -pointsize 20 -gravity center -fill > white -draw "text 5,5 VERKOCHT" image.jpg image2.jpg'; > exec($fotonaam); > > PHP runs the program but the -draw "text 5,5 VERKOCHT" is not executed > (t

Re: [PHP] ADD a user in linux using PHP

2001-06-30 Thread Charles Williams
ADD a user in linux using PHPsure, I use a small C program I wrote and set to setuid root. that way I can hide it and it all works good with an exec call from php. I wouldn't advise setting setuid adduser to root. It's way too dangerous. chuck - Original Message - From: Bruno F

Re: [PHP] Please Help......

2001-06-30 Thread Julia A. Case
This could be difficult or not even possible... first you would need to add entries to the DNS zone file (and update the serial number) and then reload the DNS database, and this is only if you run your own DNS and not have your provider do it for you, like many of us do. Then you would have

Re: [PHP] passwd in php....

2001-06-30 Thread Julia A. Case
I don't think this is going to work, passwd requires you to input the passwword, not just pass it as an option on the command line. On top of that, you have to be root to change a password other than yours. Julia Quoting Bruno Freire ([EMAIL PROTECTED]): > Hi... > > My name is Bruno. > > Som

Re: [PHP] Problems upgrading APACHE/PHP/Mysql on remote server

2001-06-30 Thread teo
Hi M! On Thu, 28 Jun 2001, M wrote: > Complete msg subject is "what can developer do when server provider > upgrades any of Apache/PHP/Mysql softwares to newer version and this > causes crash on already working transactions?" > I am posting this also into MySql discussion list. MySQL transation

Re: [PHP] Convert

2001-06-30 Thread teo
Hi Roman! On Fri, 29 Jun 2001, Roman wrote: > Have you some program for convert Microsoft Access Database (*.mdb) to the > MySQL database ? > Search on MySQL site : dbf2mysql or mssql2mysql on windows you can move your data from Access to a MS-SQL, or to export it as DBF. -- teodor -- PHP Gen

[PHP] Auto submit form

2001-06-30 Thread David
How do I autoload a selection from a drop down menu form based on the selection without having to click a submit button? -- 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 administr

Re: [PHP] Week Number

2001-06-30 Thread Delbono
You can use Date_Calc class http://www.phpinsider.com/php/code/Date_Calc/ - Original Message - From: "Don Read" <[EMAIL PROTECTED]> To: "Matt "TrollBoy" Wiseman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 29, 2001 10:19 PM Subject: RE: [PHP] Week Number > > On 2

[PHP] makeing a post

2001-06-30 Thread Eric
Hi How do you make a posting is group PHP >From Eric --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.262 / Virus Database: 132 - Release Date: 12-Jun-01 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

[PHP] trying to get started in PHP

2001-06-30 Thread Eric
Hi I Installed PHP configered as per instructions, and a simple PHP file saved as *.HTML would not work from a PWS (personnel web server) on windows 98. Is there a Tutorial to get started somewhere all the tutorials find is PHP theory NOT how to get started, from a PWS or has anybody got a sampl

RE: [PHP] Creating domain and default page

2001-06-30 Thread E K L
It's understood that when creating new domain, the user has to be root. But, the problem is the user of script is nobody when program is running if i'm not mistaken. So, how to solve this kind of permission stuff? >From: "scott [gts]" <[EMAIL PROTECTED]> >To: "php" <[EMAIL PROTECTED]> >Subject

[PHP] Adding 1 to a whole number

2001-06-30 Thread Richard Kurth
Way is this doing this Starting with 1000 all I what to do is increse this number by one the first time I run it it adds 1 to the number 10001 second time it 10001002 Shouldn't it just add 1 to the number 1000,1001,1002,1003 Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP

Re: [PHP] Question on Commercial Offerings

2001-06-30 Thread teo
Hi Thomas! On Fri, 29 Jun 2001, Thomas Deliduka wrote: > I don't know quite how to word that subject but here's what we want to do. > > We have a shopping cart softwre (like a million others out there) which > based in windows NT with a COM+ object to guard the source code. > > We mainly offer

Re: [PHP] how to determine size of gz-handler output

2001-06-30 Thread teo
Hi Sebastian! On Fri, 29 Jun 2001, Sebastian Stadtlich wrote: > Hi all > > I'd like to know how small my content gets when i use > ob_gzhandler. > so far i tried > $cont=ob_get_contents(); > $length=strlen($cont); try using $length = ob_get_length(); instead. > echo "\n"; > > but it outputs

RE: [PHP] PHP and Windows XP

2001-06-30 Thread David Price
Windows XP is the combination of the two lines. -Original Message- From: Young C. Fan [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 5:00 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP and Windows XP ""elias"" <[EMAIL PROTECTED]> wrote in message 9heq8k$e6$[EMAIL PROTECTED]

Re: [PHP] Week Number

2001-06-30 Thread Hugh Bothwell
How about this? $today = getdate(); $week = (int) ($today["yday"] / 7); Note: I'm not sure whether $today["yday"] begins with 0 or 1. ""Matt "TrollBoy" Wiseman"" <[EMAIL PROTECTED]> wrote in message 009801c10009$2a68c720$[EMAIL PROTECTED]">news:009801c10009$2a68c720$[EMAIL PROTECTED]... > Does

Re: [PHP] extract data from html

2001-06-30 Thread Hugh Bothwell
> > > 1. Open the html file in read only mode > > > 2. Start reading the html file till I encounter a tag (I don't know > > > how to do this) > > > 3. Grab that data after the tag (and then what?) > > > > See and > >

Re: [PHP] Function No Longer works

2001-06-30 Thread Hugh Bothwell
Look for 'allow_url_fopen' in your config file. ""Black S."" <[EMAIL PROTECTED]> wrote in message 9hi6hi$2s9$[EMAIL PROTECTED]">news:9hi6hi$2s9$[EMAIL PROTECTED]... > I have found the problem with my previous post and PHP functions no longer > working. It seems the code: > > include("http://www.d

Re: [PHP] how to flip an image using GD?

2001-06-30 Thread Hugh Bothwell
I don't see any function for this in GD; it looks like you'll have to either find a third-party library or do it pixel-by-pixel, something like (obviously, a library would be faster, but would essentially do the same thing). ""Noah Spitzer-Williams"" <[EMAIL PROTECTED]> wrote in message 9hi9v6

Re: [PHP] win 98 + php4 + pws4

2001-06-30 Thread Hugh Bothwell
I really suggest you get rid of PWS and install Apache, which is a much better server all 'round. "cmoehle" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Mein system win98se php4 pws4 ich habe den pws4 installiert und die auf den Seiten beschriebenen Einstellu

Re: [PHP] newbie help!

2001-06-30 Thread Hugh Bothwell
> I wrote a script to display all file in a directory. Here is my script (snip) > This is working fine. But it displays all files in 1 single page. Here is > what i wanna do, but i don't know how to do it. > I wanna display 15 files names at once, and have prev. and next buttons and > the end, whe

  1   2   >