[PHP] Sessions not working on Linux - Apache

2004-05-12 Thread Zac Hillier - Net Affectors
Running on apache 1.3 session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.name = i session.auto_start = 0 session.cookie_lifetime = 0 session_start() is included in the top of each page. When I test session files are being written into the /tmp folder and the se

[PHP] Looping or what?

2003-07-09 Thread Zac Hillier - Net Affectors
The code below is suppose to replace some images and links but when I run it the page just seems to hang and eventually times out. Am I Looping somewhere and not realising it? Thanks Zac $i = $c01_1; $imgLst = ''; function imgRplc($val){ global $imgLst; global $i; $imgLst .= "Fig. $i,"; r

[PHP] URL Encode to send as form POSTed Items

2002-11-25 Thread Zac Hillier
Hi All, I would like to know if it's possible to use php to encode form variables as if they had come from a post form instead of a get form. I imagine I need to place them into a header but cannot find much to read that gives any information on this. I need to create form variables and than use

Re: [PHP] Free WEB Hosting with PHP and MySQL support

2002-07-24 Thread Zac Hillier
easyDNS.com provide a dynamic dns solution to your problem Zac - Original Message - From: "crimix" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 10:03 PM Subject: [PHP] Free WEB Hosting with PHP and MySQL support > Unfortunatelly I changed my ADLS setting

[PHP] fsock and fget driving me mad!

2002-07-11 Thread Zac Hillier
Hi Can anyone in the group help, I'm trying to read and write from a serial port using php. So far using fsockopen I've managed to open and send data through a serial port but I'm having real problems reading a response. I've tried fgets really to no success can anyone spare me some ideas or tho

Re: [PHP] Development Tools

2002-07-10 Thread Zac Hillier
Can't agree more, it's fine having Ultradev and the rest to get you started but the best end results come from understanding and writing code that is not bloated. For a great text editor that has all the features identified in PHPEdit but none of the bugs try JEdit www.jedit.org Zac - Origi

Re: [PHP] I am out of pleases now get me off this fuckin list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2002-07-09 Thread Zac Hillier
Maybe everybody should send him a copy then he'll get the message? Maybe To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: <[E

[PHP] Sockets & 'requested address is not valid in its context'

2002-07-06 Thread Zac Hillier
Hi All, I'm opening a port on a remote machine presently I'm using fsockopen() which is fine for opening the port and sending data however I'm having trouble reading data back from the port. So I've considered using socket functions but do not appear to be able to get a connection. When I run th

Re: [PHP] row pointer

2002-06-14 Thread Zac Hillier
$indx[$key] = mysql_insert_id(); } #-- check to see that each word has an index value if($indx[$key]) { #--create value list for update into lookup table $vlst .= "($compID," . $indx[$key] . "," . $scr[$key] . "), "; } else { echo 'no index set for keywo

[PHP] row pointer

2002-06-14 Thread Zac Hillier
Hi I'm looking for a php function that will return the position of the pointer in a mysql recordset. I found mysql_data_seek, but this appears to only move the pointer, I need to get the equivalent row number for the pointer position before moving it, then return to the same position. Can anyon

[PHP] preg

2002-06-11 Thread Zac Hillier
Does anyone know how I can use preg or any other function to identify a double letter on the end of a string and then replace it. So 'foo' would become 'f2' and 'bar' would not change. Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] is preg_replace the fastest way?

2002-06-11 Thread Zac Hillier
Hi All, I'm writing a search facility and am stripping noise words from a string (The string contains between 50 - 200 words). Presently I'm importing a text file of noise words (The noise words file contains almost 1000 words) then using : #-- remove noisewords $cntLmt = count($noise_word

[PHP] catching plurals

2002-06-11 Thread Zac Hillier
Hi I'm trying to write a function to catch and remove plurals from a search feature, can anyone suggest how I can efficiently remove 'ies' and 's' from the right hand end of each word within an array? Thanks, Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] global variables without sessions on apache

2002-06-06 Thread Zac Hillier
Thanks Jason, Works great in htaccess Zac - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 4:08 AM Subject: Re: [PHP] global variables without sessions on apache > On Thursday 06 June 2002

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Zac Hillier
thought it would be possible with htaccess or http.conf but am struggling to find documentation for it. Thanks, Zac - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Zac Hillier" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednes

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Zac Hillier
To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 2:46 PM Subject: Re: [PHP] global variables without sessions on apache > On Wednesday 05 June 2002 20:40, Zac Hillier wrote: > > Hi, > > > > Is it possible using php on our own apache server to create global > > va

[PHP] global variables without sessions on apache

2002-06-05 Thread Zac Hillier
Hi, Is it possible using php on our own apache server to create global variables for virtual host without having to use session variables. We would like to have three variables that are constant for each virtual host and that are available from every page, I thought it would be possible with hta

Re: [PHP] fread and session vars

2002-05-27 Thread Zac Hillier
res a session variable. Zac - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "'Zac Hillier'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 27, 2002 7:12 PM Subject: RE: [PHP] fread and session vars > Hi. > &g

Re: [PHP] fread and session vars

2002-05-27 Thread Zac Hillier
p.html') . " for writing. Static page update aborted!"); exit(); } #write to temp file fwrite($tempfile, $htmldata); # close the temp file fclose($tempfile); etc... === create-page.php: To: "'Zac Hillier'&qu

[PHP] fread and session vars

2002-05-27 Thread Zac Hillier
Hi all, I'm using the fread function to read one of my php scripts and then produce a static page, within this script I'm using session variables. If I browse to the script normally then all appears to work correctly, however when I use the fread function the session variables are not being tr

[PHP] unexpected T_IF

2002-05-25 Thread Zac Hillier
Hmm, can anyone explain why I'm getting this error? Parse error: parse error, unexpected T_IF in /usr/local/htdocs/san.loc/upload-img.php on line 34 Code reads: 11:#--if form submitted then process file upload 12:if($HTTP_POST_VARS['ttl']) { 13: 14: #--check if there is already a picture calle

[PHP] ereg_replace problems

2002-05-22 Thread Zac Hillier
I'm trying to replace values within a string with a value looked up from a database. I have a function that looks up the value in the database for me but I'm having trouble passing the value to the function because of the backslashes, is there a way around this? Code: $cntnt = eregi_replace(