[PHP] Generating Static files

2002-03-19 Thread Tony Crockford
Hi what's the best way to generate static files using PHP/MySQL? I've read a couple of tutorials and got a bit lost. What I'd like to do is use PHP to generate static pages in the way that GDIdb pro does (run a script/template combination, output html files all linked up) this is where I'm usi

[PHP] Re: scripting behind the scenes

2002-03-19 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > hi there, > > can someone tell me how i can get my php script (which is run via a console, > rather than a browser) to read the settings i've included in php.ini. > > is this possible? > > thanks for the help! > a Do you mean read th

[PHP] Re: Problem with strtotime() and 2002-03-31

2002-03-19 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Thanks guys. You were right. I have been playing around and just found an > extra 3600 seconds on 31/3/2002.!!! > > Thats a trap for us young players. > > Will develop a creative fix. > > Does this mean that there is a day with only 2

Re: [PHP] Can anyone help me with this problem(uploads via a form)?

2002-03-19 Thread heinisch
At 19.03.2002 14:16, you wrote: > >I'm having a problem with file uploads via a HTML form. I've no luck getting >it to work. After a bit of research I think I've determined that the problem >lies with my host having safe mode enabled and setting a open_basedir that >is outside my scope. > Hi Jac

[PHP] $DOCUMENT_ROOT behavior linux vs solaris

2002-03-19 Thread Dennis Moore
I use the $DOCUMENT_ROOT environment variable quite ofter to build an absolute path to files in the web tree.  I just ran into a problem moving my code from a linux box (RH6.2) to a SunW Ultra 60.   Both machines are running the same version of Apache 1.3.20 and PHP4.0.6.   Here's the rub.  

Re: [PHP] mail()

2002-03-19 Thread Jennifer
sorry...i should have mentioned also that I am not using the internal mail server but i am using an external mail server On Wednesday, March 20, 2002, at 05:24 PM, Jennifer wrote: > Hi guys, > > I'm new to PHP and i'm trying to set it up so that i can use the mail() > function to send emails.

Re: [PHP] mail()

2002-03-19 Thread Miguel Cruz
On Wed, 20 Mar 2002, Jennifer wrote: > $to="[EMAIL PROTECTED]"; > $from="[EMAIL PROTECTED]"; > $subject="Hi"; > $message="this message"; > mail($to, $subject, $message, "$from\r\nX-Priority: 1 (Highest)"); By the way, your From line is also mangled. You should have: $from = "From: [EMAIL PROTEC

Re: [PHP] mail()

2002-03-19 Thread Miguel Cruz
On Wed, 20 Mar 2002, Jennifer wrote: > I'm new to PHP and i'm trying to set it up so that i can use the mail() > function to send emails. I'm using Mac OS X 10.1.3, PHP 4.1.2 and > Apache/1.3.20. > > ... nothing seems to happen ei. the mail was not sent. There's a problem with the default con

[PHP] mail()

2002-03-19 Thread Jennifer
Hi guys, I'm new to PHP and i'm trying to set it up so that i can use the mail() function to send emails. I'm using Mac OS X 10.1.3, PHP 4.1.2 and Apache/1.3.20. I've copied the php.ini-dist to usr/local/lib and renamed it php.ini I have also uncommented the following lines from the httpd.co

Re: [PHP] Return the column names of MySQL table?

2002-03-19 Thread J.F.Kishor
Hi, Try the following, Column name ($index) : $columnName"; $index++; } ?> On Tue, 19 Mar 2002, Kevin Stone wrote: > Forgive me for the off topic question. This is a MySQL question.. has > nothing to do with PHP directly. However I was not able to find an > answer in th

Re: [PHP] Is there any Possible Way to get data from Excel File?

2002-03-19 Thread Justin French
Anything is possible :) I'd recommend that the Excell file be exported as a CSV, which will be a LOT easier to munch through, because it won't contain formatting, or anything else. Justin French indent.com.au soundpimps.com Jack wrote: > > Dear all > What i'm planning to do is to use php to

RE: [PHP] Is there any Possible Way to get data from Excel File?

2002-03-19 Thread Niklas Lampén
I think that the smartest way to insert data from Excel to mySQL is saving Excel file as CSV and then inserting the whole file. This is ofcourse only if you wan't to insert the whole file. Niklas -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: 20. maaliskuuta 2002 8:01

[PHP] Is there any Possible Way to get data from Excel File?

2002-03-19 Thread Jack
Dear all What i'm planning to do is to use php to grep the data from a Excel file and then insert it to the MySQL Database, so is there any possible way that the php can grep the data from an Excel File? Thx all Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Leif K-Brooks
on 3/20/02 12:24 AM, Martin Towell at [EMAIL PROTECTED] wrote: use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists, but the former function does) -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 4:16 PM To: [EMAIL PROTEC

RE: [PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Miguel Cruz
On Wed, 20 Mar 2002, Martin Towell wrote: > use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists, > but the former function does) Close - it's eregi_replace(). To use preg_replace case-insensitively, just toss an 'i' at the end of your pattern. Instead of: preg_replace('/a

RE: [PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Martin Towell
use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists, but the former function does) -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Case non-sensitive replacing with str_replac

[PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Leif K-Brooks
I'm doing some replacing with str_replace, but it's case sensitive. Is there any way to make it not case-sensitive? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] upload a file directly to the proper directory

2002-03-19 Thread Bogdan Stancescu
Do you get a PHP or a SQL error? I had this problem, but my problem was MySQL, not PHP (i.e. PHP handles uploads > 2MB and MySQL doesn't by default). The error I got was "MySQL server has gone away" or something similar. Bogdan [EMAIL PROTECTED] wrote: >I have to upload files. >My scripts do

[PHP] using reload within PHP when submitting a form

2002-03-19 Thread Daniel Negron/KBE
I have tried several variations within PHP to reload the page after updating a form to PHP_SELF. Does anyone have a working example within a form AFTER a submit ? **DAN** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] upload a file directly to the proper directory

2002-03-19 Thread pierre . marcandella
I have to upload files. My scripts don't work with large files. On the "Chapter 19. Handling file uploads" from the php.net doc I found the following comments : [EMAIL PROTECTED] 26-Feb-2002 08:24 When uploading large files, I've found that the memory limit has to be twice as large as the uplo

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Dr. Shim
*screams, "I'm such a newbie!!"* I didn't know I had to declare $PHP_SELF with "global" before using it inside a function. Sorry! Works now! Thanks very much! =) "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Are you inside a function, having negl

[PHP] PHP+apache + HEAD method

2002-03-19 Thread Enrico Weigelt
hi folks, how does php+apache behave when the client makes an HEAD request ? ~-n -- Enrico Weigelt== meTUX IT services software development, IT service, internet security solutions www: http://www.metux.de/phone: +49 36207 519931 email: [EMAIL PROTECTED]

[PHP] Attention Adelaide Developers

2002-03-19 Thread Joseph Blythe
Hello all, I am requesting expressions of interest from developers in Adelaide South Australia who are available to do short term contract work skills required are: Dreamweaver/Fireworks HTML PHP/PEAR Smarty template engine mySQL Linux an advantage If you have a high level of experience in the

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Miguel Cruz
Are you inside a function, having neglected to do global $PHP_SELF; ? miguel On Tue, 19 Mar 2002, Dr. Shim wrote: > Strangley enough, $PHP_SELF is empty. Nothing appears when I do it the way > Bob and you suggested, the "action" property equals "". > > "Miguel Cruz" <[EMAIL PROTECTED]> wrot

RE: [PHP] building a control panel in php

2002-03-19 Thread Thalis A. Kalfigopoulos
> -Original Message- > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 19, 2002 5:49 PM > To: Paul ... > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] building a control panel in php > > On Wed, 20 Mar 2002, Paul ... wrote: > > just thinking about making a small control

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Dr. Shim
Strangley enough, $PHP_SELF is empty. Nothing appears when I do it the way Bob and you suggested, the "action" property equals "". "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 19 Mar 2002, Dr. Shim wrote: > Hmmm. How about this? > > echo

Re: [PHP] Mac Classic and PHP...Part 2 The Wintel Nightmare.

2002-03-19 Thread Chuck \"PUP\" Payne
Thanks, it worked. But now I have to update PHP from 4.06 to 4.12. But I am point I can start working on their intranet. Chuck Payne on 3/19/02 2:15 PM, Geoff Hankerson at [EMAIL PROTECTED] wrote: > Here is an easy one click install you can download for free > > http://www.nusphere.com/ (click

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Miguel Cruz
On Tue, 19 Mar 2002, Dr. Shim wrote: > Hmmm. How about this? > > echo " . "\">"; You're concatenating "echo $PHP_SELF" rather than just $PHP_SELF, which isn't necessarily helping. But just between me and you, life would be a lot easier if you simply did: echo ''; miguel -- PHP General Mai

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Bob
You need to remove the second echo. On Tue, 19 Mar 2002, Dr. Shim wrote: > Hmmm. How about this? > > echo " . "\">"; > > > "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tue, 19 Mar 2002, Dr. Shim wrote: > > Well, this is a fairly simpl

Re: [PHP] PHP - Forced header downloads

2002-03-19 Thread Miguel Cruz
On Tue, 19 Mar 2002, Ian Wayne wrote: > I'm trying to use some header functions to force the browser to download > quicktime movies. I have a small piece of code that takes the relevant file > name from the url and then uses that in the header function. This code sits > in get.php. Unfortunately,

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Dr. Shim
Hmmm. How about this? echo ""; "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 19 Mar 2002, Dr. Shim wrote: > Well, this is a fairly simple problem. I'm having problems with escaping a > string, and then ending the string right after the e

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Miguel Cruz
On Tue, 19 Mar 2002, Dr. Shim wrote: > Well, this is a fairly simple problem. I'm having problems with escaping a > string, and then ending the string right after the escape! For example, > > echo "Then Johnathan said, \"That's exactly what I said!\""; > > I get a parse error on the line where t

[PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Dr. Shim
Well, this is a fairly simple problem. I'm having problems with escaping a string, and then ending the string right after the escape! For example, echo "Then Johnathan said, \"That's exactly what I said!\""; I get a parse error on the line where the string is. Very simple problem, I just can't s

RE: [PHP] building a control panel in php

2002-03-19 Thread Demitrious S. Kelly
I agree. Unless there isn't a product which matches your needs I personally would consider my time better spent contributing to a project that has only a short distance left to go rather then starting a new project which would take months/years before perfection (if there is such a thing) Onto m

RE: [PHP] Re: Problem with strtotime() and 2002-03-31

2002-03-19 Thread Martin Towell
> Does this mean that there is a day with only 23 hours somewhere That would be the corresponding day at the end/start of the year (depending on which hemisphere you're in) -Original Message- From: John Clarke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 12:37 PM To: [E

[PHP] PHP - Forced header downloads

2002-03-19 Thread Ian Wayne
I'm trying to use some header functions to force the browser to download quicktime movies. I have a small piece of code that takes the relevant file name from the url and then uses that in the header function. This code sits in get.php. Unfortunately, all I download when I click the link is get.ph

Re: [PHP] .NET

2002-03-19 Thread Enrico Weigelt
On Tue, Mar 19, 2002 at 05:38:50PM -0700, Dan Vande More wrote: > Before you shoot/flame me, I assure you this is not the topic you think it > is. I just want everybody to be aware that if you do a search for the > literal string .NET on google, you pull up php.net > I think one could extrapolate

Re: [PHP] building a control panel in php

2002-03-19 Thread Miguel Cruz
On Wed, 20 Mar 2002, Paul ... wrote: > just thinking about making a small control panel for my server so i can do > the web hosting related things from the web... would php be a good language > to do this in and if so why?.. what would be the ups and downs? The fastest way would be to download We

[PHP] Re: Problem with strtotime() and 2002-03-31

2002-03-19 Thread John Clarke
Thanks guys. You were right. I have been playing around and just found an extra 3600 seconds on 31/3/2002.!!! Thats a trap for us young players. Will develop a creative fix. Does this mean that there is a day with only 23 hours somewhere Though this wouldnt cause a problem I guess. Thanks

[PHP] building a control panel in php

2002-03-19 Thread Paul ...
Hello all, just thinking about making a small control panel for my server so i can do the web hosting related things from the web... would php be a good language to do this in and if so why?.. what would be the ups and downs? Paul -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] .NET

2002-03-19 Thread Dan Vande More
Before you shoot/flame me, I assure you this is not the topic you think it is. I just want everybody to be aware that if you do a search for the literal string .NET on google, you pull up php.net I think one could extrapolate that this maybe one of the most popular .net pages on google, and when t

RE: [PHP] Problem with strtotime() and 2002-03-31

2002-03-19 Thread Martin Towell
when I tested that code, the adding of 1 day did NOT work, but adding 2 days DID, sorta, work (it added 1 day) to "fix" it, I found that I had to add one hour (3600) to the date - maybe there's something to do with daylight saving?? -Original Message- From: John Clarke [mailto:[EMAIL PRO

[PHP] Re: Problem with strtotime() and 2002-03-31

2002-03-19 Thread Jim Winstead
John Clarke <[EMAIL PROTECTED]> wrote: > Any ideas why this would be happening? because 2002-03-31 is 25 hours long in your time zone? http://www.dstc.qut.edu.au/DST/marg/daylight.html jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] scripting behind the scenes

2002-03-19 Thread DigitalKoala
hi there, can someone tell me how i can get my php script (which is run via a console, rather than a browser) to read the settings i've included in php.ini. is this possible? thanks for the help! a -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re[2]: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Steve Clay
Tuesday, March 19, 2002, 2:51:33 PM, Alexander wrote: AS> Well, use GnuPG. Then you can use "PGP". And what you stated above is Just some advice if you go with GPG and you don't have root/chown access. Since you'll create your keyring under your user, you'll likely have to run PHP as a CGI so

Re: [PHP] Problem with strtotime() and 2002-03-31

2002-03-19 Thread Miguel Cruz
On Wed, 20 Mar 2002, John Clarke wrote: > I have used the following script successfully for a year now, but have just > found a problem with the date 2002-03-31. > When I add 0 days to this date it returns 2002-03-31.Correct! > When I add 1 day to this date it still returns 2002-03-31.

[PHP] Problem with strtotime() and 2002-03-31

2002-03-19 Thread John Clarke
I have used the following script successfully for a year now, but have just found a problem with the date 2002-03-31. When I add 0 days to this date it returns 2002-03-31.Correct! When I add 1 day to this date it still returns 2002-03-31.NOT Correct n I add 2 days to this date it retur

Re: [PHP] how to seek and convert an email address to mailto link

2002-03-19 Thread Miguel Cruz
On Tue, 19 Mar 2002, Pekka Saarinen wrote: > I need to search text for @ and replace the mail address around it (i.e. > text between previous and following spaces) so that if I have text > > Foobar foobar [EMAIL PROTECTED] foobar foobar. > > It'll convert it to > > Foobar foobar mailto:[EMAIL

RE: [PHP] include_once()

2002-03-19 Thread Martin Towell
is it possible to send the code - or snippets of the code - so that someone might be able to spot the error something that you might want to look at is whether the included file has a parse error - the set up in this company allows the "parent" script to continue to run, even if the "child" scrip

Re: [PHP] include_once()

2002-03-19 Thread Mauricio Cuenca
No I haven't. Wouldn't this affect my entire web site ? I just need to include the files into a single script. Thanks, __ Mauricio Cuenca - Original Message - From: "Neil Freeman" To: "Mauricio Cuenca" Cc: <[EMAIL PROTECTED]> Sent: Tuesday, March 19, 2002 12:30 PM Su

Re: [PHP] include_once()

2002-03-19 Thread Mauricio Cuenca
Yes, I read the documentation and took close note to include the start and end tags... Thanks, __ Mauricio Cuenca - Original Message - From: "anders nawroth" <> To: "Mauricio Cuenca" ; <[EMAIL PROTECTED]> Sent: Tuesday, March 19, 2002 2:26 PM Subject: Re: [PHP] inc

RE: [PHP] Delete Confirmation

2002-03-19 Thread Daniel Negron/KBE
Does this code go above the delete statement ?or is it added to the delete statement. is deleteuser part of the script or do I replace it with my db name. I'm alittle slow with php and mysql. TIA for your patience. thanx **DAN**

Re: [PHP] PHP / IE 6 problems

2002-03-19 Thread Chris Ross
Okay... Looks like I'm an idiot... I thought it was a PHP issue and its a security thing with explorer. The people that are complaining must have the new cookie feature set to high or more! Sorry! And Thanks for setting me straight! Chris > I need help - > > I'm having a problem, Everyone usin

RE: [PHP] Curl output to an array -- HELP!! -- Appended

2002-03-19 Thread mnc
On Wed, 20 Mar 2002, Martin Towell wrote: > (this code not tested) > > $res_arr = explode("\n", $result); > $res_num = count($res_arr); > for ($i = 0; $i < $res_num; $i++) > { > list($k, $v) = explode("=", $res_arr[$i]); > $$k = $v; > } > ?> > > this isn't going to work properly if the "val

[PHP] FTP and PHP

2002-03-19 Thread Liam
20/03/2002 10:01:25 AM Hi all. I need a FTPd that I can easily add/remove users from using PHP. What would you suggest is the best one? I've tried pro-ftpd but I can't work it out, the documentation is crap. I've tried pure-ftp but it's documentation is also quite vague. Thanks for your hel

Re: [PHP] How do I make tab spaces in a mail?

2002-03-19 Thread mnc
On Tue, 19 Mar 2002, Analysis & Solutions wrote: > On Tue, Mar 19, 2002 at 09:40:17PM +0100, Jan Grafström wrote: >> I have read several tricks of how to remove white spaces but how to create >> them? >> >> productitemspriceamount >> book22550 >> cd-rom

[PHP] Detecting the charset used for sending data

2002-03-19 Thread Alexander Skwar
Hi! When a user sends data from a , how can I detect which charset the browser used to send the data to the server? Can I assume that it's always the same as the first charset in HTTP_ACCEPT_CHARSET? Hmm, no, doesn't seem like it. At least not in Galeon when I reset the charset manually. :( I

[PHP] PHP / IE 6 problems

2002-03-19 Thread Chris Ross
I need help - I'm having a problem, Everyone using the new explorer 6 seems to be having problems with a certain part of my site. We are using PHP's graphic library, but instead of creating images using PHP (which we can do but they suck), we're using the library to reference existing images. Th

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Alexander Skwar
»Kevin Stone« sagte am 2002-03-19 um 14:11:42 -0700 : > Not entirely true. Javascript is directly linked to HTML and HTML is > directly linked to PHP so you can have PHP talk to Javascript through > HTML. I still don't agree. You can of course create JavaScripts dynamically in PHP. However, PH

RE: [PHP] Re: Return the column names of MySQL table?

2002-03-19 Thread Kevin Stone
Philip thanks for the tip-off to the mysql_list_fields() function.. that simplifies things quite a bit. Problem solved. :) I'm still wondering about the other method though. I noticed the "DESCRIBE table_name" method in the MySQL docs but couldn't figure out how to use it. Alone it seems to re

Re: [PHP] Return the column names of MySQL table?

2002-03-19 Thread Erik Price
On Tuesday, March 19, 2002, at 05:43 PM, Kevin Stone wrote: > I simply need to return a list of column names of a MySQL table. What's > the syntax to do that? SHOW COLUMNS FROM tablename; Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing

[PHP] Re: Return the column names of MySQL table?

2002-03-19 Thread Philip Hallstrom
Or if you want to do this within PHP use the mysql_list_fields function. On Tue, 19 Mar 2002, Geoff Hankerson wrote: > I believe it is: > describe tablename; > - Original Message - > From: "Kevin Stone" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, March 19, 2002 4:43 PM

Re: [PHP] Return the column names of MySQL table?

2002-03-19 Thread Geoff Hankerson
I believe it is: describe tablename; - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 19, 2002 4:43 PM Subject: [PHP] Return the column names of MySQL table? > Forgive me for the off topic question. This is a MySQL question.. has

[PHP] Return the column names of MySQL table?

2002-03-19 Thread Kevin Stone
Forgive me for the off topic question. This is a MySQL question.. has nothing to do with PHP directly. However I was not able to find an answer in the MySQL documentation, on Usenet, or the MySQL mailing list archives. Also MySQL.com's mail manager is on the fritz so I can't even subscribe to

RE: [PHP] Curl output to an array -- HELP!! -- Appended

2002-03-19 Thread Martin Towell
(this code not tested) this isn't going to work properly if the "value" part has an "=" in it - in that case, change the explode("=", ...) line to use strtok() or strpos()/substr() HTH Martin -Original Message- From: Keith Posehn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20,

[PHP] Curl output to an array -- HELP!! -- Appended

2002-03-19 Thread Keith Posehn
This is an revision of my previous message: Ok, lets say I have some code here: $result = array(); $ch = curl_init ("https://www.myverificationplace.com/verify.asp";); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $args); curl_setopt ($ch, CURLOPT_TIMEOUT, 120); //

[PHP] Can anyone help me with this problem(uploads via a form)?

2002-03-19 Thread Jack E. Ambrose
I'm having a problem with file uploads via a HTML form. I've no luck getting it to work. After a bit of research I think I've determined that the problem lies with my host having safe mode enabled and setting a open_basedir that is outside my scope. Here is my upload test page which is a direct li

Re: [PHP] HTML (to XML?) to PDF

2002-03-19 Thread Erik Price
On Tuesday, March 19, 2002, at 03:48 PM, Chris Boget wrote: > I need to take what is presented to the user (ie, the data less the > HTML tags but maintaining the formatting) and turn it into a PDF > file. > > I know I can use PDFLib to turn data into a PDF. However, it > doesn't understand HTM

[PHP] Curl output to an array -- HELP!!

2002-03-19 Thread Keith Posehn
Ok, lets say I have some code here: $result = array(); $ch = curl_init ("https://www.myverificationplace.com/verify.asp";); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $args); curl_setopt ($ch, CURLOPT_TIMEOUT, 120); // Set the timeout, in seconds. curl_setopt ($ch

Re: [PHP] PHP 4.1.2 & Gd2

2002-03-19 Thread Richard Archer
At 10:47 PM +0100 19/3/02, Jeroen Geusebroek wrote: >I'm trying to install GD2 in PHP, and can't get it compiled. It keeps >saying: > >In file included from gd.c:36: >php_gd.h:69: warning: static declaration for `gdImageColorResolve' The following patch fixed it for me: diff -r -U3 php-4.1.2/ex

[PHP] PHP 4.1.2 & Gd2

2002-03-19 Thread Jeroen Geusebroek
Hi, I'm trying to install GD2 in PHP, and can't get it compiled. It keeps saying: In file included from gd.c:36: php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static gd.c:92: conflicting types for `gdIOCtx' /usr/include/gd_io.h:18: previous declaration of `gdIOCt

Re: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Alexander Skwar
»Drew Lopucki« sagte am 2002-03-19 um 16:19:50 -0500 : > This is a fairly condescending reply given that the license statement for > PGP is present on every download screen from which it is available. Careful I stand corrected. Because of the IDEA patent by ASCOM, you're only allowed to use it

RE: [PHP] How do I make tab spaces in a mail?

2002-03-19 Thread Demitrious S. Kelly
With less preach and more answer Using chr(9) will give you a tab '; echo 'TAB'.chr(9).'TAB'.chr(9).'TAB'; echo ''; ?> cheers -Original Message- From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 1:29 PM To: PHP List Subject: Re: [PHP] How do I make ta

Re: [PHP] How do I make tab spaces in a mail?

2002-03-19 Thread Analysis & Solutions
On Tue, Mar 19, 2002 at 09:40:17PM +0100, Jan Grafström wrote: > Hi! > I have read several tricks of how to remove white spaces but how to create > them? > > productitemspriceamount > book22550 > cd-rom 31545 I'd avoid using

RE: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Drew Lopucki
Alexander, This is a fairly condescending reply given that the license statement for PGP is present on every download screen from which it is available. Careful not to hurt my feelings please :( After all, I went to a lot of trouble looking all these things up very carefully when I implemented

Re: [PHP] How do I make tab spaces in a mail?

2002-03-19 Thread heinisch
At 19.03.2002 21:40, you wrote: > >Hi! >I have read several tricks of how to remove white spaces but how to create >them? > >I wan´t to build a normal textmail like this: >$message=" >productitemspriceamount >book22550 >cd-rom 315

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Kevin Stone
Not entirely true. Javascript is directly linked to HTML and HTML is directly linked to PHP so you can have PHP talk to Javascript through HTML. So here's a very simple example of a Javascript and PHP script (on separate servers) talking to one other... ---

[PHP] Delete Confirmation

2002-03-19 Thread Daniel Negron/KBE
Does anyone have examples of record deletions from php to mysql? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [NEWMAN] make an "if" or "else if" statement from mysql.

2002-03-19 Thread Julio Nobrega Trabalhando
> if (db_num_rows() > 0) {<= WHERE DOSE THIS VERABLE COME FROM? This is just a count of the returned rows you have to make. First, do something like this: SELECT ip FROM table WHERE ip = visitor_ip; If it returns 0 rows, it means you don't have the ip and need to store, otherwise ju

[PHP] Re: How do I make tab spaces in a mail?

2002-03-19 Thread Mahmoud
> > How do I write to get the tab spaces? > -- Use \t visit http://www.php.net/manual/en/language.types.string.php for more details Regards, Mahmoud -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] strlen() gives a wrong count

2002-03-19 Thread Rasmus Lerdorf
Think you could post a base64_encode() version of that string? On Tue, 19 Mar 2002, Gil Disatnik wrote: > Of course. > Following is a part Hebrew part English text I have in my phorum, it > probably won't look good on a system without Hebrew support. > > String on a file: > --->snip<

Re: [PHP] How do I make tab spaces in a mail?

2002-03-19 Thread Thalis A. Kalfigopoulos
On Tue, 19 Mar 2002, [iso-8859-1] Jan Grafström wrote: > Hi! > I have read several tricks of how to remove white spaces but how to create > them? > > I wan´t to build a normal textmail like this: > $message=" > productitemspriceamount > book22550 > cd-

[PHP] HTML (to XML?) to PDF

2002-03-19 Thread Chris Boget
Here is my situation: I've got HTML Templates that I'm using to parse and presents the end result to the user. Here is my dilemma: I need to take what is presented to the user (ie, the data less the HTML tags but maintaining the formatting) and turn it into a PDF file. I know I can use PDFLib

[PHP] Re: How do I make tab spaces in a mail?

2002-03-19 Thread Philip Hallstrom
Use "\t" in your string. \t is will put in a tab. On Tue, 19 Mar 2002, [iso-8859-1] Jan Grafström wrote: > Hi! > I have read several tricks of how to remove white spaces but how to create > them? > > I wan´t to build a normal textmail like this: > $message=" > productitemspriceamoun

RE: [PHP] strlen() gives a wrong count

2002-03-19 Thread Gil Disatnik
Of course. Following is a part Hebrew part English text I have in my phorum, it probably won't look good on a system without Hebrew support. String on a file: --->snip<--- îé ùøåöä îåæîð/ú ìëúåá àú ùìå...(àí éù). 370304 - DooG îäçìåöéí P-: NP - King Crimson - Beat ---

Re: [PHP] Re: [NEWMAN] make an "if" or "else if" statement from mysql.

2002-03-19 Thread Philip J. Newman
if (db_num_rows() > 0) { mysql_query("UPDATE access SET access VIEW= accessVIEW+1 WHERE accessIP = accessIP"); // Update view where ip = visitor_ip } else { $sql = "INSERT INTO `access` (`accessID`, `accessIP`, `accessDNS`, `accessTIME`, `accessUPDATE`, `accessVIEW`) VALUES ('', '$pr

Re: [PHP] SESSION PROBLEM

2002-03-19 Thread Erik Price
On Tuesday, March 19, 2002, at 02:56 PM, karthikeyan wrote: > What does this error means > > - > Warning: Cannot send session cookie - headers already sent by (output > started at /home/web/public_html/karthik1.php:7) in > /home/web/public_html/karthik1.php on line 35 > > Warnin

[PHP] Re: combining headers with includes

2002-03-19 Thread Mahmoud
> I'm trying to force the browser to download a movie rather than open it up > and play it. Yesterday, Miguel kindly put me onto headers as being the way > to do this. Problem is I have an include at the top of the page and that > won't let me add in the necessary headers. The PHP manual says to u

[PHP] How do I make tab spaces in a mail?

2002-03-19 Thread Jan Grafström
Hi! I have read several tricks of how to remove white spaces but how to create them? I wan´t to build a normal textmail like this: $message=" productitemspriceamount book22550 cd-rom 31545"; mail($recipient, $subject, $messa

[PHP] Re: [NEWMAN] make an "if" or "else if" statement from mysql.

2002-03-19 Thread Julio Nobrega Trabalhando
Select before to see if exists: if (db_num_rows() > 0) { // Update view where ip = visitor_ip } else { // Normal insert } -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wl

[PHP] SESSION PROBLEM

2002-03-19 Thread karthikeyan
Hi Guys, What does this error means - Warning: Cannot send session cookie - headers already sent by (output started at /home/web/public_html/karthik1.php:7) in /home/web/public_html/karthik1.php on line 35 Warning: Cannot send session cache limiter - headers already sent (outpu

[PHP] [NEWMAN] make an "if" or "else if" statement from mysql.

2002-03-19 Thread Philip J. Newman
I have a log of IP numbers that come to WEBSITE A $sql = "INSERT INTO `access` (`accessID`, `accessIP`, `accessDNS`, `accessTIME`, `accessUPDATE`, `accessVIEW`) VALUES ('', '$proxy_ip', '$proxy_dns', '$add_date', NOW(NULL), '0')"; This has worked well, how ever when someone comes back with the

RE: [PHP] strlen() gives a wrong count

2002-03-19 Thread Darren Gamble
Good day, Could you post this mystery string so that we could help you? Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Gil Disatnik [mailto:[EMAIL PR

Re: [PHP] eregi()

2002-03-19 Thread Rénald CASAGRAUDE
Vlad Kulchitski wrote: > > Hi, > > Can any1 send a small script of how to valiade a username using eregi(). > > I want username to consist only a-zA-Z1-0, "_", and "-" > > I can't get it to work correctly $pattern = "[a-zA-Z0-9_\-]+"; this is meaning : One word containing a-z or A-Z or 0-9 or

[PHP] Re: strlen() gives a wrong count

2002-03-19 Thread Julio Nobrega Trabalhando
Once I say \n as strlen() = 2, if I remember correctly. Definitively not 1. Any whitespaces, tabs, newline, or similar inside? strlen() count them different. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.subma

Re: [PHP] strlen() gives a wrong count

2002-03-19 Thread Rasmus Lerdorf
Well, how are you putting it into the string? On Tue, 19 Mar 2002, Gil Disatnik wrote: > Hello there, > > I have a 98 characters string (including spaces), wc -c says it's 98 > characters and a file containing this string is 98 bytes as well. > > For some reason - strlen() says it's more... it s

[PHP] strlen() gives a wrong count

2002-03-19 Thread Gil Disatnik
Hello there, I have a 98 characters string (including spaces), wc -c says it's 98 characters and a file containing this string is 98 bytes as well. For some reason - strlen() says it's more... it says it's a 104 characters strings, when I removed the spaces (using sed on the shell and using s

RE: [PHP] combining headers with includes

2002-03-19 Thread Matt Schroebel
Ob_end_clean is clearing the buffer and not sending any data to the browser. Use ob_flush or ob_end_flush(). Output buffereing will take care of ordering the headers so they'll still work even though the include may still be sending some output. > -Original Message- > From: Ian Wayne [

Re: [PHP] regular expression

2002-03-19 Thread Rénald CASAGRAUDE
Kris Vose wrote: > > How would you write a regular expression that defines a phone number: ex. >(123)123-1234. > > In other words how would you check to see if there were three numerics surrounded by >(), then > three numerics with a "-", then four numerics. with posix regular expression, fo

[PHP] Re: combining headers with includes

2002-03-19 Thread Julio Nobrega Trabalhando
Isn't working because when you include the file it complains that it can't send headers? Specially because there's an output on line X of the included file? Like anything outside and/or echo, print, etc...? Well, you could try to make a smaller version of the included file that doesn't outpu

  1   2   3   >