[PHP] Can not delete files that were uploaded

2002-07-11 Thread Anan
Hello, I use PHP to upload files to the web server via web browser. However, I can not delete the files later cause the Redhat linux server running on safe mode. Do I have to changed the owner of the file during the file uploading time? Please let me know how to solve this problems. Anan --

[PHP] Re: 1 Form, 2 Submit-Buttons

2002-07-11 Thread Johan Holst Nielsen
Johan Holst Nielsen wrote: >> Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back >> & Next). The buttons should be images. How can I make php see, which >> button has been pressed? > > > > if(isset($_POST["submit_back"])) { > //go back > } > else { > //go forwar

[PHP] Re: 1 Form, 2 Submit-Buttons

2002-07-11 Thread Johan Holst Nielsen
> Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back > & Next). The buttons should be images. How can I make php see, which > button has been pressed? " method="post"> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] Re: Single website Unix + Windows servers

2002-07-11 Thread Matt Parlane
Try: http://www.phpbuilder.com/columns/banahan20010720.php3 I'd also try setting up Apache on your windows box - on a different port if you have to. It just moves you one step closer to what it would be like running on linux. Matt "Olinux" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]

[PHP] Single website Unix + Windows servers

2002-07-11 Thread olinux
I am working on integrating our current website to apache/redhat/php/mysql Due to a recent investment in an ASP project I must have the windows / SQL server machine running this application. Any suggestions to keeping the site 'seamless' or ideas that will help Thank you, olinux --- Matt Parl

Re: [PHP] Execute script then output image.

2002-07-11 Thread JJ Harrison
I found it. I used header("Location: http://www.yoursite.com/images/stat.gif";); -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 11 Jul 2002 22:01:03 +1000, you wrote: > > >> You need to o

[PHP] Re: Editing files by line

2002-07-11 Thread Lord Loh.
int fseek (int fp, int offset [, int whence]) int ftell (int fp) int rewind (int fp) These syntaxes might be useful... Read more in File System Functions of the PHP Docs. Hope these help Lord Loh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

RE: [PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread César Aracena
Look at the switch function http://www.php.net/manual/en/control-structures.switch.php or make decisions with using IF statements based on the variable's value sent (button pressed). C. > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 3:0

[PHP] Can not delete file from the linux server

2002-07-11 Thread Anan
Hello, I use PHP to upload files to the web server via web browser. However, I can not delete the files later cause the Redhat linux server running on safe mode. Do I have to changed the owner of the file during the file uploading time? Please let me know how to solve this problems. Anan --

[PHP] Re: 1 Form, 2 Submit-Buttons

2002-07-11 Thread Leonid Vaner
give a name to the buttons ie: Next and check in php do the same with Previous "Martin Thoma" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back > & Next). The buttons should be images. Ho

RE: [PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread Sachin Keshavan
Hello, There is a form tag which is like This will have the same effect as clicking on a HTML submit button. Hope this helps, Sachin. -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 11:36 AM To: 'Martin Thoma'; [EMAIL PROTECTED] Subject: R

RE: [PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread Martin Towell
give each a name and the value of the image clicked should then be in a var. by that name -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 4:09 PM To: [EMAIL PROTECTED] Subject: [PHP] 1 Form, 2 Submit-Buttons Hello! I want to make a form (a wi

[PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread Martin Thoma
Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back & Next). The buttons should be images. How can I make php see, which button has been pressed? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mailing List

2002-07-11 Thread Rasmus Lerdorf
We use qmail/ezmlm to run this list. High-traffic lists like this require software written specifically to solve this problem. You would not write such a mailing list system in PHP. It would make no sense. The parts you might write in PHP would be web interfaces to allow your user to subscribe

RE: [PHP] Mailing List

2002-07-11 Thread César Aracena
I was hoping NOT to receive this kind of answers, but guess it's logical. On the other hand, when reading your answer Justin, it came to my mind (and that's luck) that HTML (Web) e-mail readers made in PHP does manage the incoming e-mails with no server-side assistance... Is it logical to think th

[PHP] One more thing... e-mails format

2002-07-11 Thread César Aracena
It’s me again… and not PHP related. Why is it that every piece of mail I send to the list comes back as a *rich text” or sometime even “plain text”, when my M$ Outlook is set to send HTML messages? I think it would make sense if *EVERYBODY* e-mail where received like mine because of server’s setti

Re: [PHP] Mailing List

2002-07-11 Thread Justin French
The only way I've ever done it was on a Unix box: - filter the email - if it's a certain address, subject, or whatever, pipe it to a php script (command line executable, rather than http) - use this PHP script to manipulate the headers and body of the email, and re-send it to the subscribers, or

[PHP] Mailing List

2002-07-11 Thread César Aracena
Hi all. I know for sure that this question has been asked and answered before, but I haven’t read anything about it in the 6918 mails I got from this list yet (or missed it ;). I have been wondering for a couple of days now on how to make a mailing list (like this list) with PHP. Before writing

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Analysis & Solutions
On Fri, Jul 12, 2002 at 12:08:36AM -0400, Monty wrote: > expressions. Can you tell me what the open and closing slashes / are for > inside the quotes? Is it equivalent to [ and ] for ereg? They are "delimiters." Other characters can be used, but / is the standard. --Dan -- PHP

Re: [PHP] Re: Customise Index page using PHP????

2002-07-11 Thread Justin French
I'd say there's an easier way than switches... The difference being that there's no extra code (case statements) for 1000 different page_id's, or just 5 page_id's, and I've included pretty much all the fallbacks for missing page_id, missing include files, etc etc. You just need a /inc/ dir ful

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Monty
Yes! That was it! Thank you so much. I actually thought preg and ereg were interchangeable, so, I'm glad you pointed out the difference for reg expressions. Can you tell me what the open and closing slashes / are for inside the quotes? Is it equivalent to [ and ] for ereg? Monty > DOH! It's pre

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 11:24:34PM -0400, Monty wrote: > $contentpage = preg_split("[[:space:]]*page_break[[:space:]]*", $content); DOH! It's preg!!! [[:space:]] is for ereg. Use \s. I don't know why I didn't notice sooner. Do this: '/\s*page_break\s*/' --Dan -- PHP cl

[PHP] xml and max size of xml doc

2002-07-11 Thread Martin Towell
Hi y'all Has anyone found any problems with the xml parsing functions when the xml document gets quite large. eg, a doc with about 5000 lines (about 200KB) The problem that's occurring is that some of the elements are being broken in two parts If you require more details, please ask, as it's on

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Monty
> Have you tried [[:space:]]* instead? That'll pull in line breaks, tabs > and spaces. > > --Dan I just tried it, but, still can't make this work. Also, I'm getting different results between explode() and preg_split(), is that normal? Here's what I'm trying: $content = "blah blah page_brea

[PHP] safe_mode

2002-07-11 Thread Chris Knipe
Lo all, Does anyone have some examples, ideas, or references on how to setup php's safe_mode operation so that I can provide a reasonably secure environment for hosting php3 and php4 (public web sites, with public users). This is for a public type hosting environment, so I'll definately need to

Re: [PHP] REminder APllication

2002-07-11 Thread Chris Knipe
On Thu, Jul 11, 2002 at 10:05:05PM -0400, John Holmes wrote: > > DOes anyone know how to build a reminder application on: > > > > a) identified users > > b) Sorting users' reminders?? > > Yes. You just couldn't resist, could you? ;) I like it -g- To be a bit more precise, the awnser's actua

[PHP] Re: Table Making - All done!

2002-07-11 Thread Jason Soza
Thanks everyone that helped with this, I finally got it working - Ed's version was the one I tweaked and got to work. It was pretty close to working as-is, but needed an incrementing variable in the if(isset($Row)) statement to be used in the print $Row[] line. Here's the final working code, if an

RE: [PHP] how to know upload progress status

2002-07-11 Thread John Holmes
Not possible with HTTP, as far as I know. The file is simply sent, there's no communication back and forth. ---John Holmes... > -Original Message- > From: S. [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 11, 2002 2:45 AM > To: [EMAIL PROTECTED] > Subject: [PHP] how to know upload pro

[PHP] Re: Loading dynamic pages based on URL

2002-07-11 Thread Richard Lynch
>Articles for an online magazine will use one template and load content >dynamically from a MySQL database. Assets and images for each article will >be stored in their own folder: e.g., www.mysite.com/topic/article > >Even though a physical HTML page will not exist at >www.mysite.com/topic/article

[PHP] Re: PHP and geographic maps

2002-07-11 Thread Richard Lynch
>A client wants a database-driven site that records information about real >estate properties and includes geographic maps of property locations >(throughout the US). The client has seen a presentation of a >JavaScript-powered, Windows-only product that doesn't seem to fit well with >my preference

[PHP] Re: Warning Message using pg_***

2002-07-11 Thread Richard Lynch
>List, > I'm using PG functions like below and I'm wondering how to get rid of >that dang Warning message? PHP.ini setting? or can I turn on/off error >checking? > >$rs is the result from pg_exec() (inside the other function) > >[PHP Code] >$rs = get_database_stuff("list"); >$irow = 0; >while (

[PHP] Re: fsock and fget driving me mad!

2002-07-11 Thread Richard Lynch
>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 idea

[PHP] Re: compiling and php.ini

2002-07-11 Thread Richard Lynch
>I compiled with the --enable-magic-quotes option, then figured this was a >bad move as I've been caught out before with scripts that assume it is >on. So, I copied the php.ini-recommended file to php.ini, and now >phpinfo() tells me that magic_quotes_gpc and magic_quotes_runtime are off. > >So, d

[PHP] Re: uploads work sometimes

2002-07-11 Thread Richard Lynch
>Any ideas on why this might happen? Is there anything in php.ini that >could be wrong (it works here at home when register_globals is set to on >or off)? PHP version and track_vars in php.ini -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: MAIL FROM NO ONE

2002-07-11 Thread Richard Lynch
>Hi... I've just checked out a script from hotscripts.com that send email >from and smtp server... > >I've managed to say the email has come from a server that doesn't exist >but the email can still be traced... > >is there know way to build a php smtp server ? If you want to build an SMTP serve

[PHP] Re: PHP 4.3.0-dev and gd

2002-07-11 Thread Richard Lynch
>trying to get the built in gd to work without luck >I am using redhat and it has gd 1.8.4(or something) >but the newer compiled version does not seem to install. > >I check with phpinfo and it just says 1.6.2 or higher >but none of the 2.* functions work so I assume the >new gd did not install. m

[PHP] Re: [PHP-WIN] More bzip woes! No file written...

2002-07-11 Thread Richard Lynch
>> Warning: bzopen(): Unable to open file in >> e:\apache\splatted.net\download_basket.php on line 53 Use full path for every filename. Use ls -als to figure the permissions on each file. If the "World" user (last of the three) can't do the thing to the file (read/write/execute) that you want P

[PHP] Re: Character Array

2002-07-11 Thread Richard Lynch
>Is there an easy way to get an array of characters from a string? For virtually anything you need to do with it, a string *IS* an array of characters... $foo = 'test; echo $foo[2]; for ($i = 0; $i < strlen($foo); $i++{ echo "$i $foo[$i]\n"; } -- Like Music? http://l-i-e.com/artists.htm

[PHP] Re: how to know upload progress status

2002-07-11 Thread Richard Lynch
>> I don't know how to extract informations about upload progress status and >how >> to show informations to users. For example I want the users can see 30% of >> upload completed, or the MByte just uploaded. > >It's impossible. > >PHP script starts when file is 100% uploaded on the server. It's

Re: [PHP] Re: if syntax

2002-07-11 Thread Richard Lynch
>> The "alternate syntax" with the colons is passe -- I think >> you'd have to dig >> pretty deep to find a script old enough that uses it for >> anything other than >> demonstration purposes. (Rasmus?) > >What utter tosh! *All* my scripts use the "alternative" syntax, as I think >braces are a

RE: [PHP] Benchmarking a site...

2002-07-11 Thread John Holmes
> is it possible to benchmark a site/page which uses authentication via PHP > sessions?. If so, could you please tell me some hints to do it?. Why does it matter if the page is authenticated? Get the time at the beginning, the time at the end of the page, subtract smaller from larger, and you've

RE: [PHP] mysql question

2002-07-11 Thread John Holmes
> ðÒÉ×ÅÔ! Gesundheit > 1LT John W. Holmes wrote: > > How about > > > > SELECT * FROM table WHERE $current_shot BETWEEN start_shot AND end_shot > > *if* that was on Oracle *and* the table was big you'd notice that your > performance goes down. Don't ask me why. And I never checked it on > MySql.

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 07:33:59PM -0400, Monty wrote: > > Thanks Dan. But, removing the asterisk or putting it after the character > class doesn't work either for some reason. Have you tried [[:space:]]* instead? That'll pull in line breaks, tabs and spaces. --Dan -- PHP cl

RE: [PHP] REminder APllication

2002-07-11 Thread John Holmes
> DOes anyone know how to build a reminder application on: > > a) identified users > b) Sorting users' reminders?? Yes. ---John Holmes... http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-n o-answers.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] REminder APllication

2002-07-11 Thread The Doctor
DOes anyone know how to build a reminder application on: a) identified users b) Sorting users' reminders?? -- Member - Liberal International On 11 Sept 2001 the WORLD was violated. This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] Society MUST be saved! Extremists must dissolve. Beware

RE: [PHP] Best String to Array Solution

2002-07-11 Thread David Freeman
> Greetings, this may be simple, but it's late and my brain > needs a hand. > > I have a string such as "first,second,third,fourth" > > I need a way to take each one of the items separated by the > comma to be an item in an array. Check out explode() and I think you'll find what you n

RE: [PHP] HELP!!! Word count

2002-07-11 Thread Shane
Dan, if you are entering the words in a form, when the variable holding the string hits your script do something like this (Hey I just figured this out myself too Gotta love these lists $tmpStr= whatever the form passes your script // turn string into an array // use EXPLODE() t

RE: [PHP] HELP!!! Word count

2002-07-11 Thread John Holmes
You can use explode() to split the text up into words, and then count them up. You can use strlen() or substr() or something to see how many "lines" there are...whatever you define a line as. Look up other useful functions at http://www.php.net/manual/en/ref.strings.php. I really think you'd be

RE: [PHP] HELP!!! Word count

2002-07-11 Thread Peter
if i remember correctly there was something on word counts posted in the last week or or .. maybe even last couple days... have a scroll thru and u will find it :) > -Original Message- > From: Dan McCullough [mailto:[EMAIL PROTECTED]] > Sent: Friday, 12 July 2002 11:08 AM > To: PHP

[PHP] HELP!!! Word count

2002-07-11 Thread Dan McCullough
I have some clients who want to charge a flat rate for words entered, but over a certain number of words there is an additional charge, to complicate matters there is an option/addon where you can bold the lines, and there is a charge per line, so you have to calculate the total number of lines

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Martin Towell
I'm currently working on a system that grabs an image from a map server and, using html layers, overlays where the products are. Basically, this is how it's set up. The map server is running on a WinNT system. In the html code, I put am image tag that accesses the web server, passing the x,y co

[PHP] Re: Best String to Array Solution

2002-07-11 Thread Philip Hallstrom
take a look at explode() and split(). On Thu, 11 Jul 2002, Shane wrote: > Greetings, this may be simple, but it's late and my brain needs a hand. > > I have a string such as "first,second,third,fourth" > > I need a way to take each one of the items separated by the comma to be an item in >an ar

Re: [PHP] weird....php 4.2.1 with apache2 ver 2.0.39

2002-07-11 Thread Rasmus Lerdorf
PHP 4.2.1 does not support Apache 2.0.39. You'll need to download a more recent snapshot, and you will actually also need Apache 2.0.40-dev to get it to work. As you can tell, this stuff is very much in flux and is nowhere near production-quality. -Rasmus On Fri, 12 Jul 2002, Peter wrote: > h

Re: [PHP] HTTP_USER_AGENT?

2002-07-11 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Thanks that worked just fine. But now I am irritated as hell. Obviously there > is no backwards compatibility with new releases. Does this mean if I install a > new version of PHP then all books published before that date are worthles

RE: [PHP] getdate

2002-07-11 Thread Brian V Bonini
Yes, that did the trick... Thanks!!! > -Original Message- > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 11, 2002 6:20 PM > To: Brian V Bonini > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] getdate > > > The 'date' command-line utility reads the time zone from environ

[PHP] Re: using pdf template

2002-07-11 Thread ¡Û
¡i ¦b [EMAIL PROTECTED] (Tobias Talltorp) ªº¤j§@¤¤´£¨ì: ¡j : Is it possible to produce a PDF, use it as a template and populate : predefined sections of it from a database? : The PDFs I want to create are a little too complex for me to produce from : scratch. : // Tobias Mmmm... I have th

[PHP] weird....php 4.2.1 with apache2 ver 2.0.39

2002-07-11 Thread Peter
howdy... any one come accross this before... down loaded apache 2.0.39 when I tried to install it as a service on win2k with php included in the httpd conf file as a module it was saying... C:\PHPDEV\APACHE\APACHE2\BIN>apache -k install APACHE: module "c:\php4build\snap\sapi\apache2fil

[PHP] Best String to Array Solution

2002-07-11 Thread Shane
Greetings, this may be simple, but it's late and my brain needs a hand. I have a string such as "first,second,third,fourth" I need a way to take each one of the items separated by the comma to be an item in an array. I tried ereg() but to no avail. Is there a simpler way to do it? Thanks gang!

Re: [PHP] Re: PHP 4.3.0-dev and gd

2002-07-11 Thread Kevin Waterson
On Thu, 11 Jul 2002 15:32:30 -0700 "Ricky Dhatt" <[EMAIL PROTECTED]> wrote: > You need to use --with-gd=php to use the built-in gd library. yep, that got over that hurdle, I used the config line ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr --with-ttf=/usr --enable-track-vars --ena

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Monty
> The * needs to be after the character class, ie [[:cntrl:]]*. > > --Dan Thanks Dan. But, removing the asterisk or putting it after the character class doesn't work either for some reason. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Lazor, Ed
I was just checking it out. That map is awesome! What's funny is that it even has an option to display the picture of a house at the coordinates you specify. Thanks for the compliment *grin* I have no idea why I didn't. Probably just got lazy hehe My only excuse is that I think vacation mode

[PHP] Problems with apache and php

2002-07-11 Thread Mike
I have a small problem, I can make the cgi version of php fine, it runs and installs perfectly, but when I try to make the apache module (i.e. --with-apxs=/path/to/apxs) php crashes apache. can anyone give me any insight on this? Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: MAIL() Trouble. Need your eyes.

2002-07-11 Thread Chris Knipe
On Thu, Jul 11, 2002 at 07:00:57PM -0400, Chris Earle wrote: > - > $myname = "Me Myself"; > $myemail = "[EMAIL PROTECTED]"; > $myreplyemail = "[EMAIL PROTECTED]"; > $contactname = "Mister Contact"; > $contactemail = "[EMAIL PROTECTED]"; That's ok... > --

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 04:06:24PM -0700, Lazor, Ed wrote: > Wow. That's pretty cool =) Do they allow map over-lays? For example, if > you want to display a map displaying points for each house within the > vicinity of the coordinates? I don't know. I have a feeling not, but hack away all you

Re: [PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 06:41:28PM -0400, Monty wrote: > I'm trying to preg_split() text between "". I used the following but > can't get the regular expression to work: > > $content = "blah blah blah blah blah"; > $paged = preg_split( "[[:cntrl:]*][[:cntrl:]*]", $content ); The * needs to be a

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Lazor, Ed
Wow. That's pretty cool =) Do they allow map over-lays? For example, if you want to display a map displaying points for each house within the vicinity of the coordinates? -Original Message- From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 3:58 PM To:

RE: [PHP] Re: Table Making

2002-07-11 Thread Lazor, Ed
Well then... $TotalCol = 5; $NumRows = mysql_num_rows($Results); $RowsPerCol = ceil($NumRows / $TotalCol); print ""; for ($i = 0; $i < $TotalCol; $i++) { print ""; for ($j = 0; $j < $RowsPerCol; $j++) { $Row = mysql_fetch_array($Results);

[PHP] Re: MAIL() Trouble. Need your eyes.

2002-07-11 Thread Chris Earle
What's the error message? "Shane" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Greetings, I am attempting to send an HTML based email using the Mail() function in PHP. I am having great luck until I include an OBJECT or EMBED tag in the HTML string. I am run

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Analysis & Solutions
Hey Lowell: On Thu, Jul 11, 2002 at 04:42:04PM -0400, Lowell Allen wrote: > A client wants a database-driven site that records information about real > estate properties and includes geographic maps of property locations > (throughout the US). [Also read your post saying they'll have GPS units]

[PHP] RegExp Help: [:cntrl:] not working

2002-07-11 Thread Monty
I'm trying to preg_split() text between "". I used the following but can't get the regular expression to work: $content = "blah blah blah blah blah"; $paged = preg_split( "[[:cntrl:]*][[:cntrl:]*]", $content ); I also tried the following... $content = "blah blah blah blah blah"; $paged = preg

Re: [PHP] Re: Mail() function

2002-07-11 Thread Miguel Cruz
On Thu, 11 Jul 2002, Richard Lynch wrote: > I honestly have no idea how to forge an email routing path, just know it can > be done, and is not rocket-science. But you're going to have to dig into > the guts of sendmail or equivalent at a minimum, or search out "send spam to > 1,000,000 people!!!"

[PHP] Re: PHP 4.3.0-dev and gd

2002-07-11 Thread Ricky Dhatt
You need to use --with-gd=php to use the built-in gd library. "Kevin Waterson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > trying to get the built in gd to work without luck > I am using redhat and it has gd 1.8.4(or something) > but the newer compiled vers

[PHP] Re: sendmail_path help

2002-07-11 Thread Ricky Dhatt
I am. I assumed the built-in mail function used "sendmail_path" as defined in php.ini; is this an incorrect assumption? "Chris Earle" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can you just use the built-in mail function? > > mail("[EMAIL PROTECTED]", "E

Re: [PHP] Warning Message using pg_***

2002-07-11 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 11:14:24AM -0700, David Busby wrote: > > I'm using PG functions like below and I'm wondering how to get rid > of that dang Warning message? PHP.ini setting? or can I turn on/off error > checking? ... snip ... > Warning: Unable to jump to row 920 on PostgreSQ

Re: [PHP] Linux Newsgroup... ('continue');

2002-07-11 Thread Miguel Cruz
On Thu, 11 Jul 2002, Scott Fletcher wrote: > Are you sure these newsgroup work? I tried subscribing to it and got a > response saying newsgroup server could not be found. I didn't have that > problem with PHP Newsgroup or mozilla.org Newsgroup. > > --clip-- > comp.os.linux.admin > comp.os.linux

Re: [PHP] Compile errors with php 4.2.1 and gd

2002-07-11 Thread Mike
oops, ok, I was being stupid... forgot to do a make install on gd 2 ;( Mike - Original Message - From: "Mike" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 5:52 PM Subject: [PHP] Compile errors with php 4.2.1 and gd > Hello, > I have followed all th

Re: [PHP] Re: Table Making

2002-07-11 Thread Kevin Stone
Well I guess I'd better get my 2 cents in. :) There is a natural progression to HTML tables so why fight it? I think the cleanest way to do this would be to reorder the array instead of trying to come up with a clever way to build the table. Set the number of table rows you want then use that

RE: [PHP] getdate

2002-07-11 Thread Miguel Cruz
The 'date' command-line utility reads the time zone from environment variable 'TZ'. It then adjusts the system time before displaying it. So your server is probably set to GMT, and your login environment specifies EDT, which is 4 hours earlier. PHP is defaulting to GMT. Look into putenv(). migue

Re: [PHP] Re: Table Making

2002-07-11 Thread Jason Soza
Well, wouldn't that print a table with one row containing the results? Again, what I'm looking for is a vertically laid-out table. So instead of: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 I want: 1 6 11 2 7 12 3 8 13 4 9 14 5 10 15 To give you an idea of why I want this, check out www.jdhsgrads.com

Re: [PHP] Generate a file

2002-07-11 Thread Miguel Cruz
On Wed, 10 Jul 2002, Phillip S. Baker wrote: > Okay here is what I want to do. > > Select the field of a database that I want. > Hit submit. > Execute a query of a database based on the said form. > Gather all the data and rows and plug them into an excel generated file. > Display a dialogue box

Re: [PHP] Re: cookie ?

2002-07-11 Thread Alberto Serra
ðÒÉ×ÅÔ! > The stuff about using time/directory is an IE bug. > You can supply *BOTH* time and directory, but not just time. > This is not the way the Cookie spec reads, but Microsoft never reads specs > properly, much less implements them properly, mostly on purpose. Not sure I am saying the tru

Re: [PHP] Development Tools

2002-07-11 Thread Alberto Serra
ðÒÉ×ÅÔ! Martin Clifford wrote: > I usually always have my content dynamically generated by functions, >or displayed in include files. I'm not a fan of cluttering up my apps with content. me neither. You can mix up code and content only as long as you work alone. But in most project (even v

Re: [PHP] MAIL FROM NO ONE

2002-07-11 Thread Alberto Serra
Chris Knipe wrote: > On Thu, Jul 11, 2002 at 02:29:11PM +0200, vins wrote: > Allot of SMTP servers does quite a bit of sanity checking on the headers > received from an email message. Not in the west. They are too busy allowing in the commercial spam they are sending themselves. Otherwise you'

Re: [PHP] mysql question

2002-07-11 Thread Alberto Serra
ðÒÉ×ÅÔ! Alexander Ross wrote: > I realize this isn't a php question, but I figured that someone here knows > of a good mysql newsgroup and in the mean time someone here probaby knows > the answer to my question. > > Can I set up a query like this: > > select * from table where start_shot <= $cu

Re: [PHP] Re: header()

2002-07-11 Thread Alberto Serra
ðÒÉ×ÅÔ! > Richard Lynch wrote: >> >> You can't upgrade somebody's stupid IE browser to Mozilla just by sending >> them a new User-Agent header, no matter how attractive a solution it >> might seem :-) LOL sounds like having a supermodel pic sticked on the face of any girl you don't like :) Or

Re: [PHP] mysql question

2002-07-11 Thread Alberto Serra
ðÒÉ×ÅÔ! 1LT John W. Holmes wrote: > How about > > SELECT * FROM table WHERE $current_shot BETWEEN start_shot AND end_shot *if* that was on Oracle *and* the table was big you'd notice that your performance goes down. Don't ask me why. And I never checked it on MySql. But watch out for betweens

[PHP] Benchmarking a site...

2002-07-11 Thread Rodolfo Gonzalez
Hi, is it possible to benchmark a site/page which uses authentication via PHP sessions?. If so, could you please tell me some hints to do it?. Thank you. Rodolfo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Table Making

2002-07-11 Thread Lazor, Ed
Will this work for you? $numFields = mysql_num_fields($Results); print ""; while ($Row = mysql_fetch_array($Results)) { print ""; for ($i = 0; $ < $numFields; $i++) print "".$Row[$i]."";

Re: [PHP] MAIL() Trouble. Need your eyes.

2002-07-11 Thread Christoph Grottolo
Might it be your/your provider's anti-virus blocking the clsid string? You could try to send another long mail with common text or HTML. BTW mail() has been reworked for PHP 4.3.0, you can get a new (dev)version to try out on http://snaps.php.net/win32 Christoph Martin Clifford wrote: > I would

[PHP] KISGB (PHP Guest Book) for PHPNuke!

2002-07-11 Thread Gaylen Fraley
Just a short announcement for those that have been requesting a port of KISGB to PHPNuke. I have a beta up and running at http://gaylenandmargie.com/nuke/html (A work in progress). Thanks! -- Gaylen PHP KISGB v4.0.5 Guest Book http://www.gaylenandmargie.com/phpwebsite/ -- PHP General Maili

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Peter J. Schoenster
Was written: > > Using coordinates to accomplish this seems possible, but overly > > complex. You'll literally be creating a 3D world and that means At pixxures.com the client just entered their ADDRESS. Then the backend (probably a bit too much for javascript) would return a sattelite view of

[PHP] Exchange LDAP Authentication

2002-07-11 Thread B i g D o g
Has anyone done LDAP auth with PHP on an Exchange 5 server? I need help finding the values to authenticate with... B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Lazor, Ed
Good question. Isn't GPS 3D? I'm guessing you're correct, but now I'm curious. Assuming it's a 2D-based situation, it still seems easier to use the approach I described in the last e-mail and then somehow tie the GPS coordinates into that system rather than base everything on GPS. You'd end

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Peter J. Schoenster
On 11 Jul 2002 at 16:42, Lowell Allen wrote: > A client wants a database-driven site that records information about > real estate properties and includes geographic maps of property > locations (throughout the US). The client has seen a presentation of a > JavaScript-powered, Windows-only product

Re: [PHP] PHP 4.3.0-dev and gd

2002-07-11 Thread Kevin Waterson
On Thu, 11 Jul 2002 17:19:07 +0100 "Danny Shepherd" <[EMAIL PROTECTED]> wrote: > You need to compile with GD2 if you want to use any of the 2.* functions in > PHP - phpinfo will say 'GD 2.0 or higher' I tried --with-gd2 but then I get no gd at all? the included gd version is 2.0.1 but does not s

[PHP] Compile errors with php 4.2.1 and gd

2002-07-11 Thread Mike
Hello, I have followed all the directions on how to compile php and gd and all the other stuff that needs to be complied for gd to work with php, but it will not compile... it keeps failing to compile with the following errors : gd.c: In function `zm_startup_gd': gd.c:303: `gdArc' undeclared (fir

Re: [PHP] Re: Table Making

2002-07-11 Thread Jason Soza
I really wish I was at home right now so I could test this out... I'll certainly give this a shot tonight. Taking someone else's earlier suggestion and tweaking it a bit, I was wondering if the following might work: $cells = 10; //set desired number of cells per column $numRows = mysql_num_row

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Lowell Allen
> From: "Lazor, Ed" <[EMAIL PROTECTED]> > > Are you really working with actual map coordinates that include longitude > and latitude? > That's what the client *WANTS*, yes. Currently, local sales agents visit each property and take digital photos. They'd like to give them hand-held GPS units s

RE: [PHP] Linux Newsgroup... ('continue');

2002-07-11 Thread Lazor, Ed
Which news service are you connecting to? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Linux Newsgroup... ('continue'); Are you sure these newsgroup work? I tried subscribing to it and got

[PHP] pgSQL Stored Procedures

2002-07-11 Thread David Busby
List, Has anyone built Functions (or Stored Procedures) in PostgreSQL that can return a dataset? I would like to contain my login in PostgreSQL (like I did on M$-SQL) and call it from my PHP script (like I did with ASP). Ex: $rs = pg_exec($db, "someprocname") while ($rec = pg_result_ob

  1   2   3   >