[PHP] Re: confirm subscribe to php-general@lists.php.net

2004-02-24 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] To confirm that you would like [EMAIL PROTECTED] added to the

RE: [PHP] PHP Alternative to IFRAME?

2004-02-24 Thread Jason Merrique
You could do it this way: Put the content of the file into a variable: ?php $fp = fopen($filename, r); $content = !-- Insert Start --; if($fp) { while(! feof($fp)) { $content .= fread($fp, 1024); } } ? Insert the variable into a div tag: div id=content ?php echo $content; ? /div

RE: [PHP] beginners question

2004-02-24 Thread Jason Merrique
So you don't want the form data to be encoded in the url? Something like this would probably do it: form action=input.php method=post enctype=multipart/form-data name=form input name=Stock type=hidden value=$var input name=button type=submit value=Click to add /form That'll just display a

[PHP] XML Tool Needed

2004-02-24 Thread Nick Wilson
Hi all, I'm looking for a tool that will parse an xml doc into somthing like an associative array for me. Basically somthing to make life simple when dealing with Amazon XML docs. I have been all thru hotscripts and even tried doing it myself but my time is limited and the tools out there are

[PHP] Storing Arrays?

2004-02-24 Thread Nick Wilson
Hi all, If I wanted to store an array for future use in a MySQL TEXT Column (dont ask, it's complicated... hehe!) how would I go about it? I thought of just putting the results of print_r($myarray); into the text field and using eval() to get at it later... is that the right way to go? Many

RE: [PHP] RE: Record Counts

2004-02-24 Thread Jay Blanchard
[snip] I did RTFM...I always RTFM first. That was the example in the F Book!. Mark Roberts, Roberts Computing Systems Webmaster Services $29.50/mo $reccount = @mysql_query(select count(*) from mytable where user = 'testuser'); I try this from mysql and get the correct response ( 1 ). However,

RE: [PHP] XML Tool Needed

2004-02-24 Thread Jay Blanchard
[snip] I'm looking for a tool that will parse an xml doc into somthing like an associative array for me. Basically somthing to make life simple when dealing with Amazon XML docs. I have been all thru hotscripts and even tried doing it myself but my time is limited and the tools out there are

RE: [PHP] Storing Arrays?

2004-02-24 Thread Jay Blanchard
[snip] If I wanted to store an array for future use in a MySQL TEXT Column (dont ask, it's complicated... hehe!) how would I go about it? I thought of just putting the results of print_r($myarray); into the text field and using eval() to get at it later... is that the right way to go? [/snip]

Re: [PHP] Storing Arrays?

2004-02-24 Thread Nick Wilson
* and then Jay Blanchard declared [snip] If I wanted to store an array for future use in a MySQL TEXT Column (dont ask, it's complicated... hehe!) how would I go about it? I thought of just putting the results of print_r($myarray); into the text field and using eval() to get at it

Re: [PHP] Storing Arrays?

2004-02-24 Thread Chris Hayes
At 11:10 24-2-04, you wrote: Hi all, If I wanted to store an array for future use in a MySQL TEXT Column (dont ask, it's complicated... hehe!) how would I go about it? you could consider serialize() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] newbie question

2004-02-24 Thread wannes
hi - i don't know much about php, but somehow i managed to install a simple php-guestbook on my website: http://www.maanzand.be/guestbookk/readbook.php unfortunately, i cannot get it to work everything seems fine, but i can't manage to write to the guestbook.txt file (permissions are

[PHP] Your request is being processed

2004-02-24 Thread michael . fdo
You are bad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie question

2004-02-24 Thread Chris Hayes
could it be that this is an old script that requires register_globals to be turned ON or so? if you can read Dutch, read http://www.phpfreakz.nl/artikelen.php?aid=88 At 12:25 24-2-04, you wrote: hi - i don't know much about php, but somehow i managed to install a simple php-guestbook on my

[PHP] Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Howard Miller
Hi, I want to be able to manipulate files that are on my samba file server from my PHP application. These shares are not normally mounted on my web server and it would be inconvenient and yet another administative maintenance task to do so. So... I want to be able to present a form to the user

[PHP] Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Howard Miller
Hi, I want to be able to manipulate files that are on my samba file server from my PHP application. These shares are not normally mounted on my web server and it would be inconvenient and yet another administative maintenance task to do so. So... I want to be able to present a form to the user

[PHP] Encrypted Zip Files

2004-02-24 Thread Howard Miller
Hi (again), I need to unzip (in/from PHP) files that have been zipped using pkzip on a windows machine using a password. Has anybody any thoughts on how to do this. I was just going to call a command line program (if I can find one!), but thought I would ask if there is something cleverer.

Re: [PHP] Finding out the local path to a file.

2004-02-24 Thread Simon Fredriksson
Sadly, none of your tips works. __FILE__ shows the script filename, not to the path of the current dir. Where can I find out more about this kind of constants? Can't see it anywhere in the manual. The problem is this: DocumentRoot (/): D:/Web/htdocs/ Users (/~x/): D:/Web/users/ Stuff1

Re: [PHP] GZIP Question

2004-02-24 Thread Richard Davey
Hello Karl, Tuesday, February 24, 2004, 5:11:40 AM, you wrote: KT I am using fsockopen with fputs to send some headers to a HTTP server, KT and I say I accept gzip encoding. The data gets returned and I put it KT in a variable. However, whichever gzip command I try using in PHP to KT decompress

[PHP] Re: Encrypted Zip Files

2004-02-24 Thread Michael Nolan
Howard Miller wrote: Hi (again), I need to unzip (in/from PHP) files that have been zipped using pkzip on a windows machine using a password. Has anybody any thoughts on how to do this. I was just going to call a command line program (if I can find one!), but thought I would ask if there is

RE: [PHP] Security Question

2004-02-24 Thread Ford, Mike [LSS]
On 20 February 2004 22:29, Ed Lazor wrote: PHP include statements default to the current directory. If the path to my PHP files is /home/osmosis/public_html, why would users visiting my site occasionally get an error that the include file wasn't found in /home/budguy/public_html? It's

RE: [PHP] where is my uploaded file ?

2004-02-24 Thread Ford, Mike [LSS]
On 24 February 2004 06:58, adwinwijaya wrote: input name=image type=file $uploadfile = $uploaddir . $_FILES['userfile']['name']; Array ( [image] = Array Hint: image!=userfile Cheers! Mike - Mike

[PHP] regexp appears to be faulty!?

2004-02-24 Thread Henry Grech-Cini
Hi All, function extractFieldsets($subject) { $regexp=/fieldset([^]*)[^(\/fieldset)]*/i; $replacement; $matches=array(); preg_match_all($regexp, $subject, $matches); return ($matches); } $result=extractFieldsets('testfieldset attribute=hellocontent of

Re: [PHP] where is my uploaded file ?

2004-02-24 Thread Jakes
var_dump($_FILES); Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 24 February 2004 06:58, adwinwijaya wrote: input name=image type=file $uploadfile = $uploaddir . $_FILES['userfile']['name']; Array ( [image] = Array Hint:

[PHP] Re: regexp appears to be faulty (DONT actually think so)

2004-02-24 Thread Henry Grech-Cini
Hi All, I don't actually think regexp is fault. But if anyone could explain this or give me some example code that will extract the attributes and data between a fieldset tag pair I would be appreciated. Henry Henry Grech-Cini [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All,

Re: [PHP] Finding out the local path to a file.

2004-02-24 Thread Stuart
Simon Fredriksson wrote: Sadly, none of your tips works. __FILE__ shows the script filename, not to the path of the current dir. Where can I find out more about this kind of constants? Can't see it anywhere in the manual. The problem is this: DocumentRoot (/): D:/Web/htdocs/ Users (/~x/):

[PHP] About php and mysql

2004-02-24 Thread edwardspl
Hello, I want to know how to control php program connect to MySQL Database System ( another computer machine ) ? Thank a lots. Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: session timeout?

2004-02-24 Thread Catalin Trifu
Hi, You have to make the code yourself, After session_start you should check the session for some variable you use to check if the user is logged in eg: ?php session_start(); if( !isset($_SESSION['logged_in']) || $_SESSION['logged_in'] == 0) {

Re: [PHP] About php and mysql

2004-02-24 Thread Matt Matijevich
snip I want to know how to control php program connect to MySQL Database System ( another computer machine ) ? /snip http://www.php.net/manual/en/function.mysql-connect.php http://www.php.net/manual/en/function.mysql-pconnect.php -- PHP General Mailing List (http://www.php.net/) To

[PHP] Working with MS-SQL

2004-02-24 Thread edwardspl
Hello, How can we connect to MS-SQL Server ? What tools ( where can we download ) must be installed ? Thank a lots. PS : the php programs under Linux / Unix... Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Working with MS-SQL

2004-02-24 Thread Jay Blanchard
[snip] How can we connect to MS-SQL Server ? What tools ( where can we download ) must be installed ? Thank a lots. PS : the php programs under Linux / Unix... [/snip] I usually connect to my servers using cables, but YMMV. Might I suggest that you read some manuals and books? The questions

[PHP] Re: About php and mysql

2004-02-24 Thread Jakes
mysql_connect(IP, username, password); [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I want to know how to control php program connect to MySQL Database System ( another computer machine ) ? Thank a lots. Ed. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Working with MS-SQL

2004-02-24 Thread Ben Ramsey
As Jay said, check through the manual. The answers you're looking for may be found right here: http://www.php.net/mssql Jay Blanchard wrote: [snip] How can we connect to MS-SQL Server ? What tools ( where can we download ) must be installed ? Thank a lots. PS : the php programs under Linux /

Re: [PHP] Working with MS-SQL

2004-02-24 Thread edwardspl
I know there is a package for Linux / Unix : php-mysql But, I want to know is there any tools similar with php-mssql for php connect with MS-SQL ? Any other can help ? Thank for your help ! Ed. Jay Blanchard wrote: [snip] How can we connect to MS-SQL Server ? What tools ( where can we

[PHP] Re: Working with MS-SQL

2004-02-24 Thread Jakes
Make sure you have the dll or so loaded. mssql_connect(IP#, username, password); [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, How can we connect to MS-SQL Server ? What tools ( where can we download ) must be installed ? Thank a lots. PS : the php programs under

[PHP] session expired - how to know if the session is new or old

2004-02-24 Thread Catalin Trifu
Hi, Here is the problem: The session gc runs and deletes the session data. This is good, but calling session_start in PHP obviously creates a new session. How can I know if the session was created after an old one was deleted because gc has invalidated it or it is a

Re: [PHP] Storing Arrays?

2004-02-24 Thread Jakes
depending how long you want to keep it, wrap the array in a object and then serialize the object in a session variable. Nick Wilson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * and then Jay Blanchard declared [snip] If I wanted to store an array for future use in a MySQL

Re: [PHP] Storing Arrays?

2004-02-24 Thread Jakes
rather just serialize() it. didnt read your question properly Jakes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] depending how long you want to keep it, wrap the array in a object and then serialize the object in a session variable. Nick Wilson [EMAIL PROTECTED] wrote in

[PHP] Re: session expired - how to know if the session is new or old

2004-02-24 Thread Jakes
What do you need this for.? You session is only suppose to last for one browser session Catalin Trifu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Here is the problem: The session gc runs and deletes the session data. This is good, but calling

Re: [PHP] Working with MS-SQL

2004-02-24 Thread Matt Matijevich
snip But, I want to know is there any tools similar with php-mssql for php connect with MS-SQL ? Any other can help ? /snip 1. look at the manual http://php.net/mssql 2. try google 3. search the list archives -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] regexp appears to be faulty!?

2004-02-24 Thread Ford, Mike [LSS]
On 24 February 2004 12:40, Henry Grech-Cini wrote: Hi All, function extractFieldsets($subject) { $regexp=/fieldset([^]*)[^(\/fieldset)]*/i; This: [^(\/fieldset)] will match any *single* character except the ones listed -- i.e. any character that isn't one of: ()/defilst So this:

Re: [PHP] Re: session expired - how to know if the session is new or old

2004-02-24 Thread Seba
in the first page of your website, or when you connect for the firs time to it $_SESSION['first_session_value'] = session_id(); others pages if($_SESSION['first_session_value'] != session_id()){ echo The session has a new value; } Seba Il mar, 2004-02-24 alle 15:16, Jakes ha

Re: [PHP] About php and mysql

2004-02-24 Thread edwardspl
Does older than php 4.2.2 support with this function ? Matt Matijevich wrote: snip I want to know how to control php program connect to MySQL Database System ( another computer machine ) ? /snip http://www.php.net/manual/en/function.mysql-connect.php

[PHP] Re: regexp appears to be faulty (DONT actually think so)

2004-02-24 Thread Sven
Henry Grech-Cini schrieb: ... $regexp=/fieldset([^]*)[^(\/fieldset)]*/i; ... $result=extractFieldsets('testfieldset attribute=hellocontent of hello/fieldsetemblah/emfieldset attribute=goodbyegoodbye/fieldset'); ... And it produced; (0)= (0)=[fieldset attribute=hellocon] (1)=[fieldset

[PHP] Major problems trying to use load data local infile

2004-02-24 Thread Victor SpÄng Arthursson
Hi! Been trying all day to be able to fire off a load data local infile using php, but haven't yet succeded The setup is as follows: the client should upload a .csv-file to the webserver. Here, php shall issue a load data local infile-statement to load the data into a mysql-database. The

[PHP] Re: regexp appears to be faulty (DONT actually think so)

2004-02-24 Thread Henry Grech-Cini
Thanks Sven, You are quite right with your some probs comment. Do you know what the the switch is that catches only the least result? I now get (0)= (0)=[fieldset attribute=hellolegendhello legend/legendcontent of hello/fieldsetemblah/emfieldset attribute=goodbyegoodbye/fieldset] (1)= (0)=[

Re: [PHP] About php and mysql

2004-02-24 Thread Jason Wong
On Tuesday 24 February 2004 22:47, [EMAIL PROTECTED] wrote: Does older than php 4.2.2 support with this function ? As has already been suggested, could you try reading the manual? Please? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] regexp appears to be faulty!?

2004-02-24 Thread Henry Grech-Cini
Thanks for that Mike, I was getting lost. Is there anyway to say Any characters excluding the sequence /fieldset so I could do something like /fieldset([^]*)(.* whilst not \/fieldset)\/fieldset/i Or alternatively is there a switch to say get the smallest sequence Thanks Henry Mike Ford

Re: [PHP] Working with MS-SQL

2004-02-24 Thread Adam Voigt
http://www.freetds.org Enjoy. On Tue, 2004-02-24 at 08:53, [EMAIL PROTECTED] wrote: Hello, How can we connect to MS-SQL Server ? What tools ( where can we download ) must be installed ? Thank a lots. PS : the php programs under Linux / Unix... Ed. -- Adam Voigt [EMAIL PROTECTED]

Re: [PHP] Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Adam Voigt
Why can't you just mount the share on-the-fly when they enter the username and pass? On Tue, 2004-02-24 at 06:11, Howard Miller wrote: Hi, I want to be able to manipulate files that are on my samba file server from my PHP application. These shares are not normally mounted on my web server

[PHP] MySQL update

2004-02-24 Thread Matthew Oatham
Hi, I have an update statement that tries to update a number of values - these values have unique value constraint so when I do the update it will either succeed or fail. If it fails how can I determine where the update failed. i.e. pinpoint the value that was not unique? At the moment I am

RE: [PHP] MySQL update

2004-02-24 Thread Jay Blanchard
[snip] How can I improve on the above to give specific error information. [/snip] Use mysql_error() http://www.php.net/mysql_error -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL update

2004-02-24 Thread Howard Miller
You can't well, not via PHP anyway. You would need to do a select first to establish if any of these values exist in the database. Something like... select first,last,email from mytable where first=x or last=y or email=z; then check which one of first,last,email is non-empty. BUT.. do you

RE: [PHP] MySQL update

2004-02-24 Thread Howard Miller
I am prepared to be wrong (but I'm too lazy to go and try it)... does MySql return a detailed enough error message to detect *which* field caused the problem. IIRC, I don't think it does. Anyway *if* it does it will be in here... http://www.mysql.com/doc/en/Error-returns.html DUP UNIQUE I

[PHP] Re: regexp appears to be faulty!?

2004-02-24 Thread Henry Grech-Cini
I came accross this link a href= http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html /a Do we all agree or should I keep trying? Henry -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Howard Miller
Well, mainly because PHP doesn't (I think) have a mount function. It would mean executing an external command. I always regard that as living a bit dangerously - it can be difficult to write robust code that will recover from a problem that way. Adam Voigt wrote: Why can't you just mount the

[PHP] Re: regexp appears to be faulty (DONT actually think so)

2004-02-24 Thread Sven
Henry Grech-Cini schrieb: Thanks Sven, You are quite right with your some probs comment. hi, think i found it. try this: ?php $rx = '/fieldset.*(.*)\/fieldset/iU'; ? the '/U' stands for 'ungreedy'. also note the change in the attribs-regex. hth SVEN -- PHP General Mailing List

Re: [PHP] regexp appears to be faulty!?

2004-02-24 Thread Jome
Henry Grech-Cini [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Thanks for that Mike, I was getting lost. Is there anyway to say Any characters excluding the sequence /fieldset so I could do something like /fieldset([^]*)(.* whilst not \/fieldset)\/fieldset/i Or

[PHP] Re: session expired - how to know if the session is new or old

2004-02-24 Thread Catalin Trifu
Hi, I want to redirect my users to a session expired page and not directly to a blank login page based on wheter this is just a gc colected session. In case the user goes to sleep but leaves the browser open and then in the morning he comes back and does something the browser will

Re: [PHP] saving form data - calling another script from PHP?

2004-02-24 Thread Charlie Fiskeaux II
Gary Sanders wrote: Charlie, Can you make the submit target be the PHP script and have the PHP script call the Perl script to send the email? Sure, that would definitely work; I just don't know how to call the Perl script and pass the data (and uploaded/attached files) to it. -- Charlie

Re: [PHP] Working with MS-SQL

2004-02-24 Thread edwardspl
The tool named freetds ? Adam Voigt wrote: http://www.freetds.org Enjoy. On Tue, 2004-02-24 at 08:53, [EMAIL PROTECTED] wrote: Hello, How can we connect to MS-SQL Server ? What tools ( where can we download ) must be installed ? Thank a lots. PS : the php programs under

Re: [PHP] Finding out the local path to a file.

2004-02-24 Thread Michal Migurski
__FILE__ shows the script filename, not to the path of the current dir. Where can I find out more about this kind of constants? Can't see it anywhere in the manual. Yeah, that's what it does. The point is that your current dir (upon execution) will be the location of your DirectoryIndex script.

Re: [PHP] Finding out the local path to a file.

2004-02-24 Thread Michal Migurski
If you're running PHP as an Apache module, this may solve it: http://php.net/apache_lookup_uri Neat - I learn something new everyday! - michal migurski- contact info and pgp key: sf/ca

[PHP] session: permission denied (13)

2004-02-24 Thread bill
When I go from a normal php page (mod) to a cgi-based php page (stand alone), the session_start() function generates an error Warning: open(/tmp/sess_be0b03b8eb0ed759b10792d823099678, O_RDWR) failed: Permission denied (13) in (filename) on line 3 Is there a way to carry sessions across the

Re: [PHP] Re: session expired - how to know if the session is new or old

2004-02-24 Thread Stuart
Catalin Trifu wrote: I want to redirect my users to a session expired page and not directly to a blank login page based on wheter this is just a gc colected session. In case the user goes to sleep but leaves the browser open and then in the morning he comes back and does something the

[PHP] Re: regexp appears to be faulty!?

2004-02-24 Thread Sven
Henry Grech-Cini schrieb: I came accross this link a href= http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html /a Do we all agree or should I keep trying? Henry hi henry, this could be an

[PHP] Multiple Socket Read and Writes?

2004-02-24 Thread Dev
Hello all, I am having a problem with getting multiple socket reads working in a simple socket server! The writes appear to be working but the reads seam to only allow one read? I know i am missing something. Could even be my approach is totally wrong Currently I have: $input =

Re: [PHP] session: permission denied (13)

2004-02-24 Thread Richard Davey
Hello bill, Tuesday, February 24, 2004, 4:17:42 PM, you wrote: b When I go from a normal php page (mod) to a cgi-based php page (stand b alone), the session_start() function generates an error b Warning: open(/tmp/sess_be0b03b8eb0ed759b10792d823099678, O_RDWR) b failed: Permission denied (13)

Re: [PHP] Re: session expired - how to know if the session is new or old

2004-02-24 Thread Catalin Trifu
Thanks for the response. Indeed it seems this is the only way to achieve what I want. It would be nice if the PHP guys would implement such functionality. Catalin Stuart [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Catalin Trifu wrote: I want to

Re: [PHP] Re: session expired - how to know if the session is newor old

2004-02-24 Thread Catalin Trifu
Hi, Thanks for the reply. The method you suggest does not work. Have you tested it somewhere ? Catalin Seba [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] in the first page of your website, or when you connect for the firs time to it

Re: [PHP] Re: session expired - how to know if the session is new or old

2004-02-24 Thread Stuart
Catalin Trifu wrote: Thanks for the response. Indeed it seems this is the only way to achieve what I want. It would be nice if the PHP guys would implement such functionality. Why? You're the first person I've ever heard ask for this. I don't think it's something that

Re: [PHP] Re: regexp appears to be faulty!?

2004-02-24 Thread Adam Bregenzer
On Tue, 2004-02-24 at 10:49, Henry Grech-Cini wrote: http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html Do we all agree or should I keep trying? The important thing to keep in mind here is to use the right tool for the job. If you are parsing an HTML document

[PHP] Re: PEAR::MAIL Problem

2004-02-24 Thread Justin Patrin
Stanley chan wrote: Dear Listmates, I am using PEAR::MAIL and my code includes the below; // Send Email Out $mailCfg = array( host = 127.0.0.1, port = 25, auth = false ); $mailRecipient = $hashValue[emailaddress];

Re: [PHP] PHP Alternative to IFRAME?

2004-02-24 Thread Justin Patrin
Nicole wrote: I'm not having much luck explaining what I want here ... a drawback of emailing. I know how to include files, I just wanted to include it in such a way that my body text still wrapped around it. I think I need to tackle this using HTML. Robert Sossomon [EMAIL PROTECTED] wrote in

[PHP] reg split address

2004-02-24 Thread Terry Romine
I have a submit field that may have an address formatted like: 1234 main st or may just be the street name: main I need to split the number off if present so I can test against database fields. I need a eregi, split or preg_split that could do that. I've tried a few and either

[PHP] Parsing large log files with PHP

2004-02-24 Thread Pablo Gosse
Hi folks. Has anyone encountered any problems parsing large log files with PHP? I've got a log file that's about 1.2 gig that I need to parse. Can PHP handle this or am I better of breaking this down into 12 100mb chunks and processing it? Any advice is appreciated. Cheers, Pablo -- PHP

Re: [PHP] Finding out the local path to a file.

2004-02-24 Thread Simon Fredriksson
That was a really nice one to find out, thank you Stuart. Now, to another question (within the same scope). Is it possible for PHP to know if the attribute Indexes is in the list of allwed options? For right now, the script can list folders that are not supposed to be listed. Any ideas?

[PHP] Re: reg split address

2004-02-24 Thread Justin Patrin
Terry Romine wrote: I have a submit field that may have an address formatted like: 1234 main st or may just be the street name: main I need to split the number off if present so I can test against database fields. I need a eregi, split or preg_split that could do that. I've tried a

Re: [PHP] Parsing large log files with PHP

2004-02-24 Thread Raditha Dissanayake
Hi, What kind of a log file are we talking here? regardless what processing you need to do generally working on a 1.2GB file with out RAID and/or lots of memory is going to be slow. Pablo Gosse wrote: Hi folks. Has anyone encountered any problems parsing large log files with PHP? I've got

RE: [PHP] Parsing large log files with PHP

2004-02-24 Thread Sam Masiello
Are you getting an error when trying to read/parse your log file? If so, what is that error? --Sam Pablo Gosse wrote: Hi folks. Has anyone encountered any problems parsing large log files with PHP? I've got a log file that's about 1.2 gig that I need to parse. Can PHP handle this or

RE: [PHP] Parsing large log files with PHP

2004-02-24 Thread Pablo Gosse
snip What kind of a log file are we talking here? regardless what processing you need to do generally working on a 1.2GB file with out RAID and/or lots of memory is going to be slow. Pablo Gosse wrote: Hi folks. Has anyone encountered any problems parsing large log files with PHP? I've got a

[PHP] What's wrong with this code please?

2004-02-24 Thread Donpro
$emails = array([EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]); $addresses = explode(,,$emails); for ($i=0; $i count($addresses); $i++) { echo $i . ': ' . $addresses[$i] . 'br'; if ($i == count($addresses) - 1) $form['recipient'] .= $addresses[$i]; else

RE: [PHP] What's wrong with this code please?

2004-02-24 Thread Sam Masiello
If you want to see the contents of an array, use the print_r function: http://www.php.net/print_r HTH! --Sam Donpro wrote: $emails = array([EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]); $addresses = explode(,,$emails); for ($i=0; $i count($addresses); $i++) { echo $i . ':

Re: [PHP] Parsing large log files with PHP

2004-02-24 Thread Raditha Dissanayake
Hi, IMHO bad idea to use a web script to process log files of these size (please ignore this comment if you are using the command line version). There are several good open source tools for parsing the apache log files (analog, webalizer, awstats to name a few). These are very fast and

Re: [PHP] What's wrong with this code please?

2004-02-24 Thread Adam Bregenzer
On Tue, 2004-02-24 at 12:51, Donpro wrote: $emails = array([EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]); $addresses = explode(,,$emails); for ($i=0; $i count($addresses); $i++) { echo $i . ': ' . $addresses[$i] . 'br'; if ($i == count($addresses) - 1)

Re: [PHP] Multiple Socket Read and Writes?

2004-02-24 Thread Raditha Dissanayake
Hi, Haven't had enough coffee to look through your code. But i can tell you the number 1 problem with socket reads is 'blocking' what you might want to search for is 'non blocking' or 'non blocking reads' all the best Dev wrote: Hello all, I am having a problem with getting multiple

Re: [PHP] Parsing large log files with PHP

2004-02-24 Thread Adam Bregenzer
On Tue, 2004-02-24 at 12:39, Pablo Gosse wrote: I've got a log file that's about 1.2 gig that I need to parse. Can PHP handle this or am I better of breaking this down into 12 100mb chunks and processing it? PHP has a very rich set of functions to read in files, it all depends on what you

[PHP] Cybercash Dynamic Module

2004-02-24 Thread Suhas
Hello, Does any one how to get cybercash dynamically? I have a host which allows dl(). Everywhere it is given that I have to recomplie PHP --with cybercah=DIR, but I dont have that permission. One more Question (you can consider as the dumbest question) If I get the permission to complie PHP

RE: [PHP] Parsing large log files with PHP

2004-02-24 Thread Pablo Gosse
snip IMHO bad idea to use a web script to process log files of these size (please ignore this comment if you are using the command line version). /snip Yes, this will be a script run from the command line. snip There are several good open source tools for parsing the apache log files (analog,

RE: [PHP] What's wrong with this code please?

2004-02-24 Thread Chris W. Parker
Donpro mailto:[EMAIL PROTECTED] on Tuesday, February 24, 2004 9:52 AM said: $emails = array([EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]); $addresses = explode(,,$emails); for ($i=0; $i count($addresses); $i++) { echo $i . ': ' . $addresses[$i] . 'br'; if ($i ==

[PHP] date functions

2004-02-24 Thread Matthew Oatham
Hi, You might already be fed up with my posts but I'm a complete PHP newbie and find these groups are the best way to learn! Anyway I have the database date in the format: -mm-dd hh:mm:ss e.g. 2004-02-24 07:57:59 but when in some situations I only want to show the user the date in the

[PHP] Make sure folder is writable

2004-02-24 Thread Matt Palermo
Is there a way to check a folder on the server to make sure a specified folder has write permissions? I'm writing an upload script, but I need to make sure the user gave the destination directory write permissions before I can copy the files to the new folder. Anyone got any ideas? Thanks,

RE: [PHP] date functions

2004-02-24 Thread Pablo Gosse
snip You might already be fed up with my posts but I'm a complete PHP newbie and find these groups are the best way to learn! Anyway I have the database date in the format: -mm-dd hh:mm:ss e.g. 2004-02-24 07:57:59 but when in some situations I only want to show the user the date in the format

Re: [PHP] Parsing large log files with PHP

2004-02-24 Thread Raditha Dissanayake
I'm not actually looking for stats in this case. We had a very strange occurrence yesterday wherein we had a few reports of porn links appearing on one of our websites. So basically I'm going to be looking for all log entries relating to that one specific section of our site (which won't be a

RE: [PHP] date functions

2004-02-24 Thread Sam Masiello
Depending on your database engine (which you didn't mention in your post), some allow you to format the date however you want it as you pull it out of the database in your sql query. I always find this to be the easiest way to do it. That way you don't have to worry about formatting the data

Re: [PHP] Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Adam Voigt
Yes, you would infact have to issue an outside command, and to do so, you are correct in the fact you would have to write a good amount of code to check the validity of the string being executed. However, unless you actually install PHP on the samba server, and run it off that, there's not really

[PHP] running php3 files

2004-02-24 Thread Ryan A
Hi, A small problem, a pal of mine is hosting with a company that has PHP configured to run only with the .php extention and not the .php3 extention... Where will he have to make the changes so that his scripts will run if its .php or .php3 ? Thanks, -Ryan -- PHP General Mailing List

Re: [PHP] running php3 files

2004-02-24 Thread Adam Voigt
Obviously links would have to be changed to point to the .php pages, but that's easily done with a good text editor. What would be of more concern is, what is the difference between the old version of PHP your running, and the version the hosting company is running. I.E., has function behavior

Re: [PHP] date functions

2004-02-24 Thread Adam Bregenzer
On Tue, 2004-02-24 at 13:29, Matthew Oatham wrote: You might already be fed up with my posts but I'm a complete PHP newbie and find these groups are the best way to learn! Anyway I have the database date in the format: -mm-dd hh:mm:ss e.g. 2004-02-24 07:57:59 but when in some situations I

Re: [PHP] running php3 files

2004-02-24 Thread Raditha Dissanayake
In each file that has a link to a file ending with .php3 or use URL rewrites. Ryan A wrote: Hi, A small problem, a pal of mine is hosting with a company that has PHP configured to run only with the .php extention and not the .php3 extention... Where will he have to make the changes so that his

[PHP] Re: Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Manuel Lemos
Hello, On 02/24/2004 08:11 AM, Howard Miller wrote: I want to be able to manipulate files that are on my samba file server from my PHP application. These shares are not normally mounted on my web server and it would be inconvenient and yet another administative maintenance task to do so. So... I

  1   2   >