Re: [PHP] Tough one?

2001-02-21 Thread Jason Stechschulte
On Wed, Feb 21, 2001 at 01:34:10PM -0500, Mike wrote: > $keys = array_keys($HTTP_POST_VARS); > for($x = 2; $x < count($keys); $x++) > { > $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; } $updateString = ereg_replace(",$", "", $updateString); That should take care of

[PHP] Re: I'm still stuck...

2001-02-21 Thread Ana Carolina Blanco Abascal
I'm working on a test envyroment, so I can't give you my URL because I can't pass through the firewall, the real site is http://www.bb.com.mx. With both files I see the same, it's kind of long Thanks a lot Extensions Extensions Additional Information PHP cor

Re: [PHP] Print in html

2001-02-21 Thread Hrishi
On Thursday 22 February 2001 00:12, Brandon Orther wrote: > Hello, > > I am trying to finish up a script with instructions on how to add my banner > add script to someone's .phtml file. I need to print use : echo ''; the single quotes ensure that php does not evaluate the contents of the stri

[PHP-CVS] cvs: php4 /pear/PHPDoc/renderer/html PhpdocHTMLDocumentRenderer.php

2001-02-21 Thread Chuck Hagenbuch
chagenbuWed Feb 21 11:13:18 2001 EDT Modified files: /php4/pear/PHPDoc/renderer/html PhpdocHTMLDocumentRenderer.php Log: fix typo Index: php4/pear/PHPDoc/renderer/html/PhpdocHTMLDocumentRenderer.php diff -u php4/pear/PHPDoc/renderer/html/PhpdocHT

[PHP] Print in html

2001-02-21 Thread Brandon Orther
Hello, I am trying to finish up a script with instructions on how to add my banner add script to someone's .phtml file. I need to print in the html page that has instructions for the user. Anyway when I try to do that it just runs as a script... does anyone know how I can get over this? Thank

Re: [PHP] I'm confused about Regular Expressions.

2001-02-21 Thread php3
Addressed to: "Kenneth R Zink II" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Kenneth R Zink II" <[EMAIL PROTECTED]> Wed, 21 Feb 2001 11:42:28 -0600 > > --=_NextPart_000_00AC_01C09BFB.5E254010 > Content-Type: text/plain; > charset="iso-8859-1" > Content-T

[PHP] date format for MySQL

2001-02-21 Thread Jerry Lake
I have a field in my MySQL DB that is "DATE" on the form that populates this field, various people will by typing in dates in various formats how to I convert say 2/21/01 or 02-21-2001 etc... to 2001-02-21(MySQL Format) Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communication

RE: [PHP] Print in html

2001-02-21 Thread Sascha Andres
hi, with ?> ") as well. sascha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Getting the file a PHP script is called from

2001-02-21 Thread Dan Watt
As a beginner to PHP4, I wrote a simple logging program (since my server does not have the best logging functionality) to track where users go on my website. The way I am implementing it is by including it as a inside another include file, the footer to all of my pages so, it works out like this:

[PHP] No GIF support in this PHP build???

2001-02-21 Thread Ana Carolina Blanco Abascal
I have several images all over my site but when I call an image by a php3 file I get this error: ImageCreateFromGif: No GIF support in this PHP build in Any ideas... Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: [PHP] Making .phtml an extension

2001-02-21 Thread Angerer, Chad
assuming you are using Apache... add AddType application/x-httpd-php .phtml to your httpd.conf file -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:14 AM To: PHP User Group Subject: [PHP] Making .phtml an extension Hello, I a

[PHP-CVS] cvs: php4 /main main.c

2001-02-21 Thread Shane Caraveo
shane Wed Feb 21 12:50:49 2001 EDT Modified files: /php4/main main.c Log: zend_compile_file returns a NULL on error, check for that before calling destroy_op_array unless we like crashes :-) Index: php4/main/main.c diff -u php4/main/main.c:1.350 php4

Re: [PHP] I am looking for an image library that can do blurs

2001-02-21 Thread Matt McClanahan
On Tue, Feb 20, 2001 at 04:10:08PM -0800, Brandon Orther wrote: > I am looking for an Image Library that can blur text. Does anyone know of > an image library that can work with php to make blured text? It's not a very versatile (Can't define the extent to which a blur is done), but php_imlib

[PHP] I need some advice

2001-02-21 Thread Ana Carolina Blanco Abascal
Hi, Am I missing something How is it that I can read php code en htmls files but I can't read php3 files? I check that mod_php3.c is load with /usr/local/apache/bin/httpd -l I add the following lines: AddType application/x-httpd-php3 .php3 AddType applic

Re: [PHP] Variable Strangeness

2001-02-21 Thread Chris Lee
or... that forces the comparison to be compared as a string. this only has to be done sometimes, usually php is quite good at determining what you want. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Jason Murray" <[EMAIL PROT

RE: [PHP] array headaches

2001-02-21 Thread Matt Williams
I have done it this way... $menu = array(); $count = $db->num_rows(); for($i = 0; $db->next_record(); $i++) { $menu[$i]["name"] = $db->f("name"); $menu[$i]["url"] = $db->f("topic_id"); } OK, so is there a better way of achei

[PHP] Why Arrays in Forms? ( Was "Accessing variables from a form" )

2001-02-21 Thread Brian White
Why do you have to specify multi-value fields in HTML forms specifically as PHP arrays? It seems incompatible with other CGI languages, and could make it difficlt to chop and change CGI engines in the background. At 19:08 21/02/2001 +0200, Pavel Jartsev wrote: >If you create your fields like thi

[PHP] Can someone tell me the command to enable ftp support on php4.03?

2001-02-21 Thread Brandon Orther
Hello, I am trying to enable ftp can someone please remind me what the command is? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com

Re: [PHP] date format for MySQL

2001-02-21 Thread Mark Maggelet
On Wed, 21 Feb 2001 11:36:02 -0800, Jerry Lake ([EMAIL PROTECTED]) wrote: >I have a field in my MySQL DB that is "DATE" > >on the form that populates this field, various >people will by typing in dates in various formats > >how to I convert say 2/21/01 or 02-21-2001 etc... >to 2001-02-21(MySQL For

Re: [PHP] CGI BIN PHP

2001-02-21 Thread Chad Guilette
hehehehe...exact same hostill try that out tonight...as a side note have you been experiencing some problems lately with responsiveness from the server...i dont know if u r on the same one as me (ZEUS) but I was just curious...ive noticed some "issues" as of later.. When You Compensate For A

[PHP] Generating percentages of numbers

2001-02-21 Thread Blake S.
I have a database of numbers: TOTAL HITS: 1000 PAGE 1: 500 PAGE 2: 250 PAGE 3: 250 How can I query these numbers and display back a percentage number? For instance with the numbers above: PAGE 1: 50% PAGE 2: 25% PAGE 3: 25% Or is their a process by which to store numbers for easily getting thi

RE: [PHP] Configuring PHP4 on pair.com

2001-02-21 Thread Jeff Oien
Wow, my server is being upgraded today. I did all that for nothing. How do I undo what I just did? I checked this morning and PHP3 was still in use on my server. That's why I tried to install PHP4. Jeff Oien > Don't reference the absolute path to php4.cgi in your .htaccess it has to be > relative

[PHP] Encryption

2001-02-21 Thread Chris
Hi, I am trying to do a simple encryption on a credit card number to store in a mysql text field. I also have to de-crypt the number after exporting to an access db. I tried to use xor encryption, but it seems to only work half the time, the other half, I can't seem to de-crypt the # properly, s

Re: [PHP] How can I log message, by syslogd?

2001-02-21 Thread Chris Lee
look at http://www.php.net/manual/en/function.error-log.php you can tell php to send an error msg to the systems default logger (ie. syslog) -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Zenith"" <[EMAIL PROTECTED]> wrote in

Re: [PHP] PDF Problems

2001-02-21 Thread Michael Stearne
What OS and glibc version? There are problems with the set-up in RH7. Michael Sam Goin wrote: > Hi, > > I am running PHP4.04pl1, pdflib3.03, jpeg6b, tiff3.5.5, apache1.3.17. > > Some of the pdf functions work, but others don't, such as pdf_new(). > > Does anybody know what the problem is? I h

Re: [PHP] image orientation/resizing images

2001-02-21 Thread Brian White
Three quite related posts all in rapid sucesssion At 17:48 21/02/2001 -0500, Jaxon wrote: >Is there any way to take an image from the filesystem, say a .jpg or .png, >and display it in a different orientation? e.g. 20 degrees to the right? At 17:18 21/02/2001 -0500, Dale Frohman wrote: >Does an

Re: [PHP] a good hosting experience

2001-02-21 Thread Mark Maggelet
The last time I used these guys I didn't like them because the software they were running was way out of date. I can deal with an old version of php, but mysql needs to be current because there's too many things that old versions can't do. Right now I'm looking for a cheap virtual host that runs

[PHP] image orientation?

2001-02-21 Thread Jaxon
Hi, Is there any way to take an image from the filesystem, say a .jpg or .png, and display it in a different orientation? e.g. 20 degrees to the right? best regards, jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] Getting the file a PHP script is called from

2001-02-21 Thread Dan Watt
That returns the PHP file. I am including the PHP file via Server Side Includes. I want a way to detect what file it was included from. ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message 970nbs$1ah$[EMAIL PROTECTED]">news:970nbs$1ah$[EMAIL PROTECTED]... > $PHP_SELF > > echo $PHP_SELF; > > > -- >

RE: [PHP] a good hosting experience

2001-02-21 Thread Javier Muniz
We're running 3.23.32, soon upgrading to .33 due to some security problems with .32 (either tonight or tomorrow), and running the latest release of PHP 4. Naturally, since I work for Granicus, I'm biased... but I think we're one of the better PHP hosts out there as far as services go. Our primar

Re: [PHP] How to get information from

2001-02-21 Thread David Robley
On Thu, 22 Feb 2001 04:20, Zenith wrote: > Hello everbody, if a have HTML document lik this: > > > > > > How can know whether the user is pressed on the "action1" or "action2" > image button?? http://au.php.net:81/FAQ.php#7.13 covers the topic nicely. -- David Robley

Re: [PHP] Can someone tell me the command to enable ftp support on php4.03?

2001-02-21 Thread jason cox
I believe it's still --enable-ftp. Jason --- Brandon Orther <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to enable ftp can someone please remind > me what the command is? > > Thank you, > > > Brandon Orther > WebIntellects Design/Development

RE: [PHP] Form Variables!!!!!

2001-02-21 Thread Boget, Chris
> My problem is: > I wanna know the names of the variables that my actual page > recives from the last page (using the POST method). while( list( $formVarName, $formVarValue = each( $HTTP_POST_VARS )) { echo "$formVarName = $formVarValue\n"; } Chris

[PHP] Session files? (Very Techy Questions)

2001-02-21 Thread Michael Zornek
Ok, I'm new to sessions and have a few questions... Here is my plan. I'm running a news type web site where subscribers have different privileges on what they can view and download. The privileges are stored in a mySQL DB. My plan is to make users login (thereby starting a session with all the

RE: [PHP] Terrible Hosting Experience

2001-02-21 Thread Brian V Bonini
Hmmm, well I guess everyone has different experiences. We've been with them (Vservers) for 5 years now and never had a single problem with downtime... > -Original Message- > From: Gary [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 11:49 AM > To: [EMAIL PROTECTED] > Subje

[PHP-CVS] cvs: php4 /ext/odbc config.m4

2001-02-21 Thread Stig Bakken
ssb Wed Feb 21 10:23:53 2001 EDT Modified files: /php4/ext/odbc config.m4 Log: * dbmaker fix, shared support Index: php4/ext/odbc/config.m4 diff -u php4/ext/odbc/config.m4:1.35 php4/ext/odbc/config.m4:1.36 --- php4/ext/odbc/config.m4:1.35Thu

[PHP-CVS] cvs: php4 /ext/pdf pdf.c

2001-02-21 Thread Rainer Schaaf
rjs Wed Feb 21 15:30:20 2001 EDT Modified files: /php4/ext/pdf pdf.c Log: When using pdf_get_buffer() and doing a correct cleanup by calling pdf_delete() this always resulted in a coredump (after everything was finished, so only visible in the logfil

[PHP] Problems with posix_getpwnam

2001-02-21 Thread Liam Gibbs
What does it mean when I get the line 'posix_getpwnam(username) failed with "Error number not set" in /xx.php3 on line ##' printed? It doesn't return anything anymore. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

[PHP-CVS] cvs: php4 /ext/standard array.c crypt.c php_rand.h rand.c

2001-02-21 Thread James Moore
jmoore Wed Feb 21 16:24:19 2001 EDT Modified files: /php4/ext/standard array.c crypt.c php_rand.h rand.c Log: Adding php_rand() and php_srand(seed) as a wrapper around random, lrand48 and rand. Index: php4/ext/standard/array.c diff -u php4/ext/standard/arr

Re: [PHP] Making .phtml an extension

2001-02-21 Thread Pavel Jartsev
Brandon Orther wrote: > > Hello, > > I am trying to get .phtml to work for php files. How would I do this? If you have Apache, then following line in httpd.conf should help: AddType application/x-httpd-php .php .php3 .phtml -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.ph

Re: AW: [PHP] Session files? (Very Techy Questions)

2001-02-21 Thread php3
Addressed to: Michael Zornek <[EMAIL PROTECTED]> Michael Zornek <[EMAIL PROTECTED]> "'Php-General (E-Mail)" <[EMAIL PROTECTED]> ** Reply to note from Michael Zornek <[EMAIL PROTECTED]> Wed, 21 Feb 2001 12:15:32 -0500 > > At 5:54 PM +0100 2/21/01, Sebastian Stadtlich w

[PHP] resizing images

2001-02-21 Thread Dale Frohman
Does anyone know of a way to resize images as they are being uploaded? Would you write these images to a mysql database or straight to a file on the server? The pictures will be small < 100k Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

RE: [PHP] a good hosting experience

2001-02-21 Thread Brian V Bonini
Wasn't 3.23 just declared stable like a couple weeks ago? > -Original Message- > From: Mark Maggelet [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 1:50 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] a good hosting experience > > > The last time I us

Re: [PHP] Getting the file a PHP script is called from

2001-02-21 Thread Chris Lee
$PHP_SELF echo $PHP_SELF; -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Dan Watt"" <[EMAIL PROTECTED]> wrote in message 970j62$6j0$[EMAIL PROTECTED]">news:970j62$6j0$[EMAIL PROTECTED]... > As a beginner to PHP4, I wrote a simpl

Re: [PHP] Terrible Hosting Experience

2001-02-21 Thread Hrishi
On Wednesday 21 February 2001 20:54, Jeff Oien wrote: > I would agree. I've had clients hosted on pair for quite a while. > They are still using PHP 3 however. 'almost complete control of the server' includes the ability to compile your own PHP and use it to run the place :) of course, this doesn

[PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread Paul Warner
I seem to be stuck on a very simple (to me) issue. I am trying to build a database of links for a site. A user inputs an HTML link into a text box which is stored in a SQL db. This works fine. I need to display this data on pages, and retrieving it into the page displays fine as well. The pro

Re: [PHP] Session problems

2001-02-21 Thread Martin A. Marques
Mensaje citado por: Jack Davis <[EMAIL PROTECTED]>: > We have designed a web based email program that we have > recently found a problem with...If you open up two email > accounts in two different browser windows, the first window > opened takes on the session that the second window is in. > It a

Re: [PHP] Why Arrays in Forms? ( Was "Accessing variables from a form" )

2001-02-21 Thread David Robley
On Thu, 22 Feb 2001 08:24, Brian White wrote: > That's the point - why do I have to have 'name="myArray[]"'. Why > do I have to specify the '[]'s at all? > > Brian > > At 13:44 21/02/2001 -0800, jason cox wrote: > >You don't have to specify them as "PHP arrays". You > >can do something like: > >

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread Simon Garner
From: "Paul Warner" <[EMAIL PROTECTED]> > I seem to be stuck on a very simple (to me) issue. I am trying to build a > database of links for a site. A user inputs an HTML link into a text box > which is stored in a SQL db. This works fine. I need to display this data > on pages, and retrieving

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread Paul Warner
Simon- Thanks for the tip...I trued using the htmlspecialchars() which allowed the remainder of the form to display properly, but left no value in the textarea. Then I noticed a difference in the method I was using compared to yours - I'm still learning the ways of PHP so it will take me a while

[PHP] Warning: page expired and cache-control header

2001-02-21 Thread Janet Valade
Previously on this list, there have been questions about the Warning: page has expired problem. When you submit a form, then press the back button, you get this message and have to press refresh before the page will redisplay. I have discovered that if you use the following header command, the p

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread Simon Garner
From: "Paul Warner" <[EMAIL PROTECTED]> > Simon- > > Thanks for the tip...I trued using the htmlspecialchars() which allowed the > remainder of the form to display properly, but left no value in the > textarea. Then I noticed a difference in the method I was using compared to > yours - I'm still

Re: [PHP] Terrible Hosting Experience

2001-02-21 Thread Thomas Deliduka
On 2/21/01 10:14 AM this was written: > Speaking of hosting companies, has anyone had experience with a company > called www.nomonthlyfees.com? You can see by the "Data Center" Information: -- The NoMonthlyFees.com NOC located in Baltimore, Maryland is OnNet with GlobalCenter (GC), Qwest Commun

[PHP] htaccess problems disabling phplib

2001-02-21 Thread Gfunk
Hi, I'm trying to disable phplib, and I have a .htaccess file consisting of the line php_value auto_prepend_file none And now I'm getting a 500 internal server error. Can anybody shed some light on what I'm doing wrong? Cheers, Gfunk

Re: [PHP] image orientation/resizing images

2001-02-21 Thread Jason Cox
> At 17:48 21/02/2001 -0500, Jaxon wrote: > >Is there any way to take an image from the filesystem, say a .jpg or .png, > >and display it in a different orientation? e.g. 20 degrees to the right? > > At 17:18 21/02/2001 -0500, Dale Frohman wrote: > >Does anyone know of a way to resize images as t

Re: [PHP] array headaches

2001-02-21 Thread David Robley
On Thu, 22 Feb 2001 02:11, Matt Williams wrote: > I have done it this way... > > $menu = array(); > $count = $db->num_rows(); > for($i = 0; $db->next_record(); $i++) > { > $menu[$i]["name"] = $db->f("name"); > $menu[$i]["url"] = $db->f("topic_id"

[PHP] Trans sid and form posts

2001-02-21 Thread Shawn Esplin
Can anyone tell me if trans sid is supposed to work through form posts, and if so how to make it work right? It is working fine through normal links, but we have quite a few posts, and they lose the session. :( Thanks, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread David Allen Reid
Why store the html in the db? Why not have multiple db fields, say url and desc then when you grab them from the db to be outputed put them into the html print ''.$desc.''; Then you wouldn't have to input all the html when it gets stored in the db, not have to worry about quotes, or htmlspecialch

[PHP] fdf example needed

2001-02-21 Thread patrick anderson
Hi, I am having some problems creating FDF/PDF's on the fly. I have created a PDF with Abobe Acrobat 4 including forms. I would like to send PDF's via mail filling the fields in the PDF using my mysql database, so that everyone gets their own prefilled PDF. Does any of you have an example scrip

[PHP-CVS] cvs: php4 /ext/standard crypt.c

2001-02-21 Thread Jon Parise
jon Wed Feb 21 19:37:32 2001 EDT Modified files: /php4/ext/standard crypt.c Log: The php_rand() and php_srand() functions added in the previous commit require the inclusion of php_rand.h. Index: php4/ext/standard/crypt.c diff -u php4/ext/standard/cryp

Re: [PHP] Why Arrays in Forms? ( Was "Accessing variables from a form" )

2001-02-21 Thread Brian White
That's the point - why do I have to have 'name="myArray[]"'. Why do I have to specify the '[]'s at all? Brian At 13:44 21/02/2001 -0800, jason cox wrote: >You don't have to specify them as "PHP arrays". You >can do something like: > > > > > > >PHP will create the array for you. > >Jason --

Re: [PHP] htaccess problems disabling phplib

2001-02-21 Thread Simon Garner
From: "Gfunk" <[EMAIL PROTECTED]> >Hi, I'm trying to disable phplib, and I have a .htaccess file consisting of the line > >php_value auto_prepend_file none > >And now I'm getting a 500 internal server error. Can anybody shed some light >on what I'm doing wrong? > >Cheers, >Gfunk It sounds like

[PHP-CVS] cvs: php4 /ext/mysql php_mysql.c

2001-02-21 Thread Shane Caraveo
shane Wed Feb 21 15:57:29 2001 EDT Modified files: /php4/ext/mysql php_mysql.c Log: Initalize some of the global vars. Crashed under ms debugger without having them initialized. Index: php4/ext/mysql/php_mysql.c diff -u php4/ext/mysql/php_mysql.c:

Re: [PHP] Why Arrays in Forms? ( Was "Accessing variables from a form" )

2001-02-21 Thread jason cox
You don't have to specify them as "PHP arrays". You can do something like: PHP will create the array for you. Jason --- Brian White <[EMAIL PROTECTED]> wrote: > Why do you have to specify multi-value fields in > HTML > forms specifically as PHP arrays? > > It seems incompatible with othe

Re: [PHP] a good hosting experience

2001-02-21 Thread Jeff Gannaway
Don't know your definition of CHEAP but check out OLM.net or webAXXS.net (they're the same company, just different marketing plans). I've recent;y signed up for their new RSE servers which are a real bargain in my opinion... but then again I've got a site with 650 meg of graphics plus 6 or 7 smal

RE: [PHP-CVS] cvs: php4 /main main.c

2001-02-21 Thread Colin Viebrock
Would something like this solve bugs 9311 (and 9341) too? > + if (op_array != NULL) destroy_op_array(op_array); - Colin -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administra

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread Simon Garner
From: "John Monfort" <[EMAIL PROTECTED]> > > > Is it necessary to include the 'http:' in the DB field? > > It would make your life a lot easier to drop it. > > You would then store the url values as > www.mydomain.com > > Then, modify your code to add the 'HTTP' whenever it encounter a UR

[PHP] Saving changes to a file

2001-02-21 Thread YoBro
Hello, I am trying to make am admin page for a few other pages in PHP but I dont know how to save the changes made. ie. The page has a few checkboxes & select boxes that when changed, change some variables that are then used in other pages. However I want the changes in the admin page to be per

[PHP] getting what's between

2001-02-21 Thread Tyler Longren
Hello, I've been reading a LOT on how to solve my problem today, but haven't been able to come up with anything yet. Here's my problem: I have an html file that contains many table rows like this: Item1Item1 Again Item2Item2 Again Item3Item3 Again Item4Item4 Again And so on. I want to search

[PHP] MySQL execution order?

2001-02-21 Thread Don Johnson
Since I've always found my answers in the archive, this is my first post, so please excuse any blunders... I'm trying to download info from a table as a tab-delimted text file. This part works fine. (By disabling the UPDATE statement in the code sample below, I can get the same data file sent tim

[PHP-CVS] cvs: php4 /ext/midgard Makefile.in article.c attachment.c element.c event.c eventmember.c file.c group.c host.c image.c member.c mgd_oop.h midgard.c oop.c page.c pageelement.c pagelink.c person.c preferences.c sitegroup.c snippet.c snippetdir.c style.c topic.c

2001-02-21 Thread Emiliano Heyns
emile Wed Feb 21 14:18:55 2001 EDT Modified files: /php4/ext/midgard Makefile.in article.c attachment.c element.c event.c eventmember.c file.c group.c host.c image.c member.c mgd_oop.h midgard.c oop.c page.c

Re: [PHP] Tough one?

2001-02-21 Thread John Monfort
Actually, you may not have to do all that. you can use implode(). By default, implode will join an array, with the supplied character. So, if you have $list = (one two three four); you can do $all = implode("," , $list); to get $all = "one,two,three,four"; This w

Re: [PHP] getting what's between

2001-02-21 Thread David Allen Reid
Maybe something along the lines of: $results = eregi("Item3[a-Z 0-9]", $data); -David On Wed, 21 Feb 2001 23:32:04 -0600, Tyler Longren said: > Hello, > > I've been reading a LOT on how to solve my problem today, but haven't been > able to come up with anything yet. > > Here's my proble

RE: [PHP] Terrible Hosting Experience

2001-02-21 Thread Jeff Oien
> On Wednesday 21 February 2001 20:54, Jeff Oien wrote: > > I would agree. I've had clients hosted on pair for quite a while. > > They are still using PHP 3 however. > 'almost complete control of the server' includes the ability to compile your > own PHP and use it to run the place :) of course,

Re: [PHP] Tough one?

2001-02-21 Thread Robin Vickery
> "M" == "Mike" <[EMAIL PROTECTED]> writes: > I am building an update string on the fly from form fields.I am > trying to add a comma between fields but I cant have one after the > last field.This is the code that doesnt work.Also I cant have a > comma at all in a table with only one upd

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread Paul Warner
This must be why you guys get paid the big $$ . I _never_ thought of looking at the HTML for errors, doh! Given the nature of the user who will be inputting the data (familiar with HTML) I will probable keep this 'quick-n-dirty' for now - I do like the multiple fields concept for future mods as

[PHP-CVS] cvs: php4 /sapi/thttpd thttpd.c

2001-02-21 Thread Sascha Schumann
sas Wed Feb 21 12:25:53 2001 EDT Modified files: /php4/sapi/thttpd thttpd.c Log: If we cannot send the header, we don't need to continue with the page. Index: php4/sapi/thttpd/thttpd.c diff -u php4/sapi/thttpd/thttpd.c:1.35 php4/sapi/thttpd/thttpd.c:1.

[PHP] Re: How to issue a new session without closing the browser?

2001-02-21 Thread Yasuo Ohgaki
I'm not sure what is the original function design of session_destory(). Committing that, my code does not delete currently registered session data from memory. This result in writing currently registered session write to session database again unless programmer explicitly unregister them. If you w

[PHP] Session problems

2001-02-21 Thread Jack Davis
We have designed a web based email program that we have recently found a problem with...If you open up two email accounts in two different browser windows, the first window opened takes on the session that the second window is in. It appears that you can open up as many sessions as you like, but a

RE: [PHP] Configuring PHP4 on pair.com

2001-02-21 Thread Jeff Oien
Just wanted to say pair.com upgraded my server today and it went so smoothly I didn't even notice it. They now have PHP4 on my server. pair.com is a great hosting service as long as you don't need hand holding or super quick tech support. Jeff Oien > > I went through this installation process

Re: [PHP] resizing images

2001-02-21 Thread Ron Wills
I have been using the tools from ImageMagick (convert) to create thumb nails of pictures upload to our site. Once you have the uploaded file just: if (exec('convert -w 100x100 ... src_file dest_file')) { error } I hope this helps. Dale Frohman wrote: > Does anyone know of a way to resiz

RE: [PHP] Generating percentages of numbers

2001-02-21 Thread John Guynn
My idea is so easy it can't be right but here goes. Couldn't you read the total and page count into an array, the divide array values 1-3 by array value 0 and multiply that by 100? In other words: $row[0] = 1000; $row[1] = 500; $row[2] = 250; $row[3] = 250; array[1]/array[0] = 0.5 * 100 = 50 a

Re: [PHP] PDF Problems

2001-02-21 Thread Mike Tuller
After spending a lot of time on this I think I almost have it figured out. I don't think it is a problem with the install. A found on php.net where when using pdflib 3.03, pdf_new() doesn't work. The fix is at the bottom of http://www.php.net/manual/en/ref.pdf.php It says to change pdf_new() to t

[PHP] ZEND_DEBUG

2001-02-21 Thread Ron
Hello All, Is there a way to turn ZEND_DEBUG on or off without recompiling? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Accessing variables from a form

2001-02-21 Thread Chris Lee
ok here we are, your code is *almost* correct, but even syntaxialy correct doesnt mean it should be used :) use arrays, its a tone easier. to fix your code change $name =& $field; to $name = $$field; now to make the code, a ton easier to use, use arrays. "; ... ?> $val) { echo $val;

[PHP] Handling File Uploads : ASCII/Binary transfers

2001-02-21 Thread Jeff Gannaway
I'm no whiz with header types, so my attempts with the PHP.net docs wasn't too successful... Here's the deal. My customer needs to upload an ASCII export file of database info generated by MS Access on their PC. I've written a script that allows them to upload their Access files then does a LOA

[PHP] PDF Problems

2001-02-21 Thread Sam Goin
Hi, I am running PHP4.04pl1, pdflib3.03, jpeg6b, tiff3.5.5, apache1.3.17. Some of the pdf functions work, but others don't, such as pdf_new(). Does anybody know what the problem is? I have been all over the documentation, email archives, and support discussions at phpbuilder.com thanks, Sam

[PHP] crontab help

2001-02-21 Thread Arnold Gamboa
hi there. is there a way to tell crontab to do: "run script every 5 mins for 1 hour".. i have this mass email script that is so huge that i need it to chunk into records and make sure that it will run every 5 mins for 1 hour. Thanks for any help.

RE: [PHP] Tough one?

2001-02-21 Thread Shawn Esplin
I'm not sure this is the best way to do it, but you could try: $keys = array_keys($HTTP_POST_VARS); for($x = 2; $x < (count($keys) - 1); $x++) { $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; } $x++; $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$

Re: [PHP] HELP! IBase - PHP

2001-02-21 Thread Brett Bandy
What do you mean flatlines? Does the solaris machine's CPU move to ~100% utilization? You might be hitting the automatic garbage collection. Use gstat -h to watch your transactions states. Particularly the oldest transaction and the oldest interesting transaction. By default an auto garbage c

RE: [PHP] a good hosting experience

2001-02-21 Thread Mark Maggelet
On Wed, 21 Feb 2001 14:55:25 -0800, ..s.c.o.t.t.. ([EMAIL PROTECTED]) wrote: >liquidweb.com has some nice looking deals. > >last time i checked, they supported >MySQL/PHP/Perl/lots of other stuff well, most hosts do, but not many are using 3.23.30 or higher. I'm looking for a host that somebody k

Re: [PHP] crontab help

2001-02-21 Thread Arnold Gamboa
thanks for the comment let's just say i have 100k emails to send... don't you think that will drain the system resources if i send it all at once even if you have usleep(300) on each while? your comment please. > put a sleep(300); at the end of your while() loop - I did this on my mass > mailer

RE: [PHP] a good hosting experience

2001-02-21 Thread ..s.c.o.t.t..
liquidweb.com has some nice looking deals. last time i checked, they supported MySQL/PHP/Perl/lots of other stuff > -Original Message- > From: Jeff Gannaway [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 05:59 > To: Mark Maggelet; [EMAIL PROTECTED]; [EMAIL PROTECTED] >

Re: [PHP] crontab help

2001-02-21 Thread Joe Stump
put a sleep(300); at the end of your while() loop - I did this on my mass mailer and it worked like a charm. --Joe On Fri, Feb 22, 2002 at 02:53:10PM +0800, Arnold Gamboa wrote: > hi there. > > is there a way to tell crontab to do: > > "run script every 5 mins for 1 hour".. > > i have this m

[PHP-CVS] cvs: php4 /ext/ircg ircg.c

2001-02-21 Thread Sascha Schumann
sas Wed Feb 21 11:58:32 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Allow users to set the ident string which we use to register with the IRC server. Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.33 php4/ext/ircg/ircg.c:1.34 -

RE: [PHP] Terrible Hosting Experience

2001-02-21 Thread Brian V Bonini
That was just an FYI... If it happens again I'll let you know and you can pursue it with them. > -Original Message- > From: Boaz Yahav [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 12:22 PM > To: '[EMAIL PROTECTED]'; Boaz Yahav; Krznaric Michael; 'Thomas > Deliduka';

php-general Digest 22 Feb 2001 01:08:34 -0000 Issue 526

2001-02-21 Thread php-general-digest-help
php-general Digest 22 Feb 2001 01:08:34 - Issue 526 Topics (messages 40941 through 41086): Re: Deleting mySql records based on dates 40941 by: Kevin Cawthorne 40943 by: Christian Reiniger 40945 by: Kevin Cawthorne 40949 by: php3.developersdesk.com Re: email

Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread John Monfort
Is it necessary to include the 'http:' in the DB field? It would make your life a lot easier to drop it. You would then store the url values as www.mydomain.com Then, modify your code to add the 'HTTP' whenever it encounter a URL, or wherever you will create a link. This would elim

[PHP] fread over ftp

2001-02-21 Thread Mark Heintz PHP Mailing Lists
I'm having some trouble reading a text file from a remote server into a string. The code is as follows: if( !($fd = @fopen($ftp_url, "r")) ){ $error = true; $error_msg = "Unable to connect to server."; } else { $file_contents = fread($fd, 10); fclose($fd); } if( empty($file_content

[PHP] help change filename.

2001-02-21 Thread Jan Grafström
Hi! I am trying to change a filename this is my php: It doesn´t work do I need some more code to get it working, something like fopen? Thanks for any help. Regards Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

<    1   2   3   >