[PHP] Re: Cybercash Dynamic Module

2004-02-24 Thread Anil Kumar K.
On Tue, 24 Feb 2004, Suhas wrote: > > If I get the permission to complie PHP with give module, can I just go > with ./configure --with cybercah=DIR ? > I think it will kill my original install. Is there any way to append the > configuration as needed? I am sure many of you may have similar s

[PHP] Re: htacess

2004-02-24 Thread Manuel Lemos
Hello, On 02/24/2004 06:50 PM, Will wrote: I tried to search PHP net for this but found nothing. I am doing an install script and I want to write a htaccess file to the server so people can login in to there admin section. What is the proper way to do this and the easiest way. I know how to wr

[PHP] Passing Variables Into mail()????

2004-02-24 Thread Chase
I am trying to create a page that will display the results of a form as they are being added into a database as well as forward that info via email to multiple recipients. I sucked code from the .CHM file available at PHP/NET, and it is working with one small issue... None of the variables that a

Re: [PHP] passings vars

2004-02-24 Thread Jason Wong
On Wednesday 25 February 2004 12:23, Rick Liwczak wrote: > need some help. Quite obviously I am new so bare with meI am trying to > pass a value (ENGLISH OR FRENCH) when the user clicks on either one of two > images. If image 1, the value is english, if image 2 the value is french. > Once th

[PHP] calendar class

2004-02-24 Thread John Taylor-Johnston
Anyone recommend a good calendar class at phpclasses.org or elsewhere? Something I can install with ease and teach someone else to use and update using, oh say phpmyadmin? Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] passing vars

2004-02-24 Thread Rick Liwczak
need some help. Quite obviously I am new so bare with meI am trying to pass a value (ENGLISH OR FRENCH) when the user clicks on either one of two images. If image 1, the value is english, if image 2 the value is french. Once they click the image which I use the following code (and it is proba

[PHP] passings vars

2004-02-24 Thread Rick Liwczak
Sorry if this is a double post need some help. Quite obviously I am new so bare with meI am trying to pass a value (ENGLISH OR FRENCH) when the user clicks on either one of two images. If image 1, the value is english, if image 2 the value is french. Once they click the image which I use

Re: [PHP] Re: looks like the spammers got through anyway

2004-02-24 Thread Ryan A
On 2/25/2004 4:03:05 AM, Will ([EMAIL PROTECTED]) wrote: > I know the feeling!!! I wish they would go away!!! > > ~WILL~ You can wish all you wantthose SOBs are here to stay. Hopefully they will meet with an accident and get a slow p a i n f u l death. -Ryan -- PHP General Mailing List

[PHP] Re: looks like the spammers got through anyway

2004-02-24 Thread Will
I know the feeling!!! I wish they would go away!!! ~WILL~ Jimbo wrote: I've just received a 419 scam email to the email address I setup for posting to this forum. Looks like the safeguards have failed :-( James Holt -- www.jholt.co.uk :

Re: [PHP] htaccess

2004-02-24 Thread Will's Scripts
I just wanted to thank everyone for all your help on the list and off!! :) ~WILL~ Chris W. Parker wrote: Will's Scripts on Tuesday, February 24, 2004 3:54 PM said: I guess I need the documentation on the htpasswd function. Sorry I am learning. http://www.googl

[PHP] session_start

2004-02-24 Thread Urb LeJeune
I would appreciate some help to save my few remaining hairs. I have an administrative program starting with session_start() It starts by asking for userid and password. It's been working for over a year with no problems. Within the last couple of day something strange has been h

RE: [PHP] htaccess

2004-02-24 Thread Ryan C. Creasey
Ryan C. Creasey wrote: > In all liklihood, he's referring to apache's mod_access module. You > should try reading the documentation over at the apache group's website, > as it's quite extensive. > > http://httpd.apache.org/docs-2.0/mod/mod_access.html Also, mod_auth: http://httpd.apache.org/docs

RE: [PHP] htaccess

2004-02-24 Thread Ryan C. Creasey
Chris W. Parker wrote: > what is "the password thing"?? In all liklihood, he's referring to apache's mod_access module. You should try reading the documentation over at the apache group's website, as it's quite extensive. http://httpd.apache.org/docs-2.0/mod/mod_access.html This question isn't

[PHP] looks like the spammers got through anyway

2004-02-24 Thread jimbo
I've just received a 419 scam email to the email address I setup for posting to this forum. Looks like the safeguards have failed :-( James Holt -- www.jholt.co.uk : affordable business website solutions www.htpshareware.com : software for

Re: [PHP] htaccess

2004-02-24 Thread Luke
Take a look at http://wsabstract.com/howto/htaccess.shtml its covers a bit and is easy to understand! Luke __ "Will'S Scripts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] The password thing is how do you make the htpasswd file?? I did a sea

RE: [PHP] Re: To Separate, or Not to Separate

2004-02-24 Thread Chris W. Parker
Phillip Jackson on Tuesday, February 24, 2004 4:59 PM said: > blah blah blah semantics aside; you know what's interesting though is that communication, or as you call it "semantics" is an important thing. especially when communicating via the written word. so if yo

Re: [PHP] Uploading Files

2004-02-24 Thread Matt Matijevich
try this if($userfile) { if(move_uploaded_file($_FILES ['userfile'], "$uploadpath/$userfile_name")) { echo $userfile_name; echo "Successfully Added!\n"; } else { echo ("error!"); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Re: To Separate, or Not to Separate

2004-02-24 Thread Phillip Jackson
blah blah blah semantics aside; what i was saying with 20 records is that you wouldn't necessarily find a performance increase rdbms-side; but you will experience a headache trying to port your current app over to another schema; unless there's a good reason for this - leave it. but if you want

[PHP] Re: Uploading Files

2004-02-24 Thread Tom Wollaston
My script now reads: \n"; //$username : contains the name of TMP file, $usrfile_name : it's the real name of file } ?> File to Upload: I now get: Warning: Unable to create '/home/sites/site176/web/makeit/Ski club logo high resolution.jpg': Permission denied in /home/sites/site176/web/admin

Re: [PHP] Multiple Socket Read and Writes?

2004-02-24 Thread Tom Rogers
Hi, Wednesday, February 25, 2004, 2:19:26 AM, you wrote: D> Hello all, D> I am having a problem with getting multiple socket reads working in a D> simple socket server! D> The writes appear to be working but the reads seam to only allow one read? D> I know i am missing something. Could even be

RE: [PHP] password protect a pdf

2004-02-24 Thread jon roig
Check out the header function... You can use a mysql (or whatever) db for authentication, read the file from a protected directory, then spit it out to the browser. The code should look a bit like this: // headers header ("Content-Disposition: filename=yourfile.pdf"); header ("Content-type: app

Re: [PHP] Uploading Files

2004-02-24 Thread Tom Wollaston
I have updated my script as follows but it still doesn't seem to work: \n"; //$username : contains the name of TMP file, $usrfile_name : it's the real name of file } ?> File to Upload: I get the message that the file has been successfully added, but when I check the location the file doesn't

Re: [PHP] password protect a pdf

2004-02-24 Thread Matt Hedges
Thanks, that worked great. I found this for anyone else like me new to htaccess: http://www.htmlbasix.com/passwordprotect.shtml works great. matt "Roger B.A. Klorese" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'm trying to password protect an online PDF file. I know > > h

Re[3]: [PHP] where is my uploaded file ? (solved)

2004-02-24 Thread adwinwijaya
a> $uploadfile = $uploaddir . $_FILES['userfile']['name']; the problem is solved now ... I am very careless ... i forgot to rename userfile to image ... thank you for your help :) -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

RE: [PHP] password protect a pdf

2004-02-24 Thread Roger B.A. Klorese
> I'm trying to password protect an online PDF file. I know > how to use PHP to > pw protect a webpage, but what would be the best way to > protect access to a > nonwebpage file? Stick it in its own directory and use htaccess... Or password-protect it when you generate it. -- PHP General Mail

[PHP] password protect a pdf

2004-02-24 Thread Matt Hedges
Hello, I'm trying to password protect an online PDF file. I know how to use PHP to pw protect a webpage, but what would be the best way to protect access to a nonwebpage file? thanks a lot Matt -- ___ | Matt Hedges | President, Vino del Sol | [EMAIL PROTECTED] | htt

RE: [PHP] htaccess

2004-02-24 Thread Chris W. Parker
Will's Scripts on Tuesday, February 24, 2004 3:54 PM said: > I guess I need the documentation on the htpasswd function. Sorry I am > learning. http://www.google.com/search?q=htpasswd there are lots of pages there. specifically this one: http://www.webdevelopersjou

Re: [PHP] htaccess

2004-02-24 Thread Will's Scripts
The password thing is how do you make the htpasswd file?? I did a search on "htpasswd" and did not com up with anything. I guess I need the documentation on the htpasswd function. Sorry I am learning. ~WILL~ Chris W. Parker wrote: Will on Tuesday, February 24,

RE: [PHP] htaccess

2004-02-24 Thread Chris W. Parker
Will on Tuesday, February 24, 2004 2:05 PM said: > What is the proper way to do this and the easiest way. I know how to > write a file to the server, but how do you do the password thing?? what is "the password thing"?? chris. -- PHP General Mailing List (http:

Re[2]: [PHP] where is my uploaded file ?

2004-02-24 Thread adwinwijaya
Hello Mike, Tuesday, February 24, 2004, 11:05:17 PM, you wrote: FML> On 24 February 2004 06:58, adwinwijaya wrote: >> >> $uploadfile = $uploaddir . $_FILES['userfile']['name']; >> Array >> ( >> [image] => Array FML> Hint: "image"!="userfile" FML> Cheers! Ok, I have cha

RE: [PHP] Uploading Files

2004-02-24 Thread Rich Gray
>if($userfile) { > copy($userfile, '/home/sites/site176/web/makeit/$userfile_name'); > echo "Successfully Added!\n"; > } > ?> > > File to Upload: > > Hi Tom Here's some quick comments.. . You need enctype="multipart/form-data" on your form for file uploads . Watch out for max file size

RE: [PHP] frameset und php-script in frame

2004-02-24 Thread Sam Masiello
I am afraid that I don't get the same problem that you do. If I request frameset.html in my browser I get the text that you are echoing in your PHP statement in the top frame. Is it possible that your resolution is such that you need to scroll in the top frame to see it? Try viewing the source

[PHP] Uploading Files

2004-02-24 Thread Tom Wollaston
Hi I am trying to write a cript for some file uploading. So far I have come up wth: \n"; } ?> File to Upload: This seems to be fine except it cannot seem to find the file its trying to upload. It says it doesn't exsist. Can anybody see a reason why?? Tom Wollaston -- PHP General Mailin

[PHP] frameset und php-script in frame

2004-02-24 Thread joe-at
hi pleas help me, when I try to use php in a frame of a frameset it dos not work. what is wrong with my files? fameset.html: frameset test.php: test Jetzt sollt ein PHP-Skript erscheinen: result of the top frame (test.php): Jetzt soll ein PH

RE: [PHP] Re: To Separate, or Not to Separate

2004-02-24 Thread Chris W. Parker
Phillip Jackson on Tuesday, February 24, 2004 11:47 AM said: first of all i'd like to say that my comments below are based upon the way i understand things to be. i could very well be wrong. so someone (phillip) correct me if i'm wrong. > what you describe is called

[PHP] htaccess

2004-02-24 Thread Will
Hello all, I tried to search PHP net for this but found nothing. I am doing an install script and I want to write a htaccess file to the server so people can login in to there admin section. What is the proper way to do this and the easiest way. I know how to write a file to the server, but how

[PHP] htacess

2004-02-24 Thread Will
Hello all, I tried to search PHP net for this but found nothing. I am doing an install script and I want to write a htaccess file to the server so people can login in to there admin section. What is the proper way to do this and the easiest way. I know how to write a file to the server, but how

[PHP] Re: Transfering a file

2004-02-24 Thread Catalin Trifu
Hi, You could ftp to the other server, or even http. >From php you can open a connection to the other's ftp ot http services and transfer the file from one server to the other like this Regards, C. "Mike Koponick" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello eve

[PHP] Re: apache mysql php windows

2004-02-24 Thread Paul Furman
Shane Nelson wrote: Hi Folks A few days ago on the list I saw someone mention a package that includes apache, mysql and php for Windows. The one install file included all these programs. Anyone remember what it was? I've checked google and searched through my email list but I can't seem to f

Re: [PHP] PHP Alternative to IFRAME?

2004-02-24 Thread Nicole
That is almost exactly what I ended up doing. Thanks a bunch! "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 inclu

RE: [PHP] Transfering a file

2004-02-24 Thread Sam Masiello
How about FTP? --Sam Mike Koponick wrote: > Hello everyone, > > I will apologize in advance if this has been discussed previously. > > I would like transfer a file that is created by PHP. Once written, I > need to transfer (or write it) to another server. The destination > server is on anoth

[PHP] Transfering a file

2004-02-24 Thread Mike Koponick
Hello everyone, I will apologize in advance if this has been discussed previously. I would like transfer a file that is created by PHP. Once written, I need to transfer (or write it) to another server. The destination server is on another network behind a firewall, whereas the front end is in a D

[PHP] Re: To Separate, or Not to Separate

2004-02-24 Thread Phillip Jackson
what you describe is called 'normalization'; if you'll always only have 20 people in a table it may not be worth it for you - though it's poor practice to continue to design tables in this fashion. come up with a nice naming convention and design tables that break contact information such as name,

Re: [PHP] running php3 files

2004-02-24 Thread Robby Russell
Ryan A typed this on 02/24/2004 10:45 AM: 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 ? Are you runn

[PHP] Re: session timeout?

2004-02-24 Thread Phillip Jackson
i accomplish this with javascript and the current logout script that i had written - Javascript calls a countdown and after 10 m inutes of viewing the same page it pops a window and resets the counter; the window it pops asks is the user would like to continue or if they would like to be logged out

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

2004-02-24 Thread Seba
It means that the session_start function has not changed (has restored the old value) the session id value. Set your browser to do not accept cookies, and it will work. Remember that the value of the session id can be passed by GET POST and Cookies to. Seba Il mar, 2004-02-24 alle 17:31, Catali

Re: [PHP] Make sure folder is writable

2004-02-24 Thread Adam Bregenzer
On Tue, 2004-02-24 at 13:32, Matt Palermo wrote: > 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

RE: [PHP] apache mysql php windows

2004-02-24 Thread Sam Masiello
I believe you are looking for: http://www.easyphp.org HTH! --Sam Shane Nelson wrote: > Hi Folks > > A few days ago on the list I saw someone mention a package that > includes apache, mysql and php for Windows. The one install file > included all these programs. Anyone remember what it was?

[PHP] apache mysql php windows

2004-02-24 Thread Shane Nelson
Hi Folks A few days ago on the list I saw someone mention a package that includes apache, mysql and php for Windows. The one install file included all these programs. Anyone remember what it was? I've checked google and searched through my email list but I can't seem to find it! Thanks, Sha

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

2004-02-24 Thread Manuel Lemos
Hello, On 02/24/2004 04:03 PM, Adam Voigt wrote: He said he doesn't want to run commands, which this script does. Did he? I read his message again and I could not see where he explicitly says he does not want to run commands. What this class does is to let you access networked remote shares via

Re: [PHP] Make sure folder is writable

2004-02-24 Thread Eric Gorr
At 1:32 PM -0500 2/24/04, Matt Palermo wrote: 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

Re: [PHP] running php3 files

2004-02-24 Thread Raditha Dissanayake
AFAIK for included files the extension does not matter Ryan A wrote: Hi again, I guess I didnt explain myself too well. My pal is a total newbie, and the .php3 file is being called via an include...the reason he cant change the include call in the calling file from .php3 to .php is because that fil

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

2004-02-24 Thread Adam Voigt
He said he doesn't want to run commands, which this script does. On Tue, 2004-02-24 at 13:54, Manuel Lemos wrote: > 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

Re: [PHP] running php3 files

2004-02-24 Thread Ryan A
Hi again, I guess I didnt explain myself too well. My pal is a total newbie, and the .php3 file is being called via an include...the reason he cant change the include call in the calling file from .php3 to .php is because that file is "encrypted" in some way. On my server I can run both php and p

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

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 s

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

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 chan

[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 (http://ww

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

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 hu

RE: [PHP] date functions

2004-02-24 Thread Pablo Gosse
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 dd-mm

[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, Matt

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

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

2004-02-24 Thread Chris W. Parker
Donpro 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] . ''; >if ($i =

RE: [PHP] Parsing large log files with PHP

2004-02-24 Thread Pablo Gosse
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). Yes, this will be a script run from the command line. There are several good open source tools for parsing the apache log files (analog, webalizer, aws

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

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 socket

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] . ''; >if ($i == count($addresses) - 1) > $form['

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 designe

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++) { >e

[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] . ''; if ($i == count($addresses) - 1) $form['recipient'] .= $addresses[$i]; else $form['rec

RE: [PHP] Parsing large log files with PHP

2004-02-24 Thread Pablo Gosse
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

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 th

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 a

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

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? //Si

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

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

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 i

[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["em

Re: [PHP] Re: [PEAR] Re: PEAR DB 1.6.0 has been released

2004-02-24 Thread Justin Patrin
Richard Davey wrote: Hello Justin, Monday, February 23, 2004, 5:30:16 PM, you wrote: JP> The real hairy part is dealing with joins as the syntax is very JP> different across the DBs. This can be solved by simply not doing them or I wish :) JP> using a syntax that most use. Or you can try to u

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 lo

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 shoul

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" > > $_SESSION['first_ses

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

[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 = socket

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

2004-02-24 Thread Sven
Henry Grech-Cini schrieb: I came accross this link 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 Do we all agree or should I keep trying? Henry hi henry, this could be an interest

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 brows

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

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/cahttp://mike.teczno.com/contact.

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

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 Fiske

[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] 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 > > so I could do something like > > /]*)>(.* whilst not <\/fieldset>)<\/fieldset>/i > > Or altern

[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: (.*)<\/fieldset>/iU'; ?> the '/U' stands for 'ungreedy'. also note the change in the attribs-regex. hth SVEN -- PHP General Mailing List (http://www.php.net/) To unsubscr

  1   2   >