Re: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Philip J. Newman
Again ... Now Now Kiddies your all way out of line. - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Dan Rossi" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 7:55 PM Subject: Re: [PHP] Re: Internet Explorer toolbar > Correct, but he asked for

Re: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Leif K-Brooks
Correct, but he asked for a PHP solution. HE DID NOT ASK FOR A JAVASCRIPT SOLUTION, AND YOU SHOULD NOT DISCUSS CLIENT-SIDE MATTERS ON THE PHP LIST! Dan Rossi wrote: ??? who cares i gave a solution, there is no other #**#% way -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTEC

Re: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Philip J. Newman
Now Now children. - Original Message - From: "Dan Rossi" <[EMAIL PROTECTED]> To: "Leif K-Brooks" <[EMAIL PROTECTED]> Cc: "Peter Houchin" <[EMAIL PROTECTED]>; "Dan" <[EMAIL PROTECTED]>; "php-general" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 6:47 PM Subject: RE: [PHP] Re: Internet E

RE: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Dan Rossi
??? who cares i gave a solution, there is no other #**#% way -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 3:39 PM To: daniel Cc: Peter Houchin; Dan; php-general Subject: Re: [PHP] Re: Internet Explorer toolbar Yes, but that has nothing do

Re: [PHP] why this sript doesn't work

2003-03-27 Thread Hugh Danaher
JP, Instead of:: global $nome; global $email; global $linguagem; global $browser; try: $nome=$_POST['nome']; $email=$_POST['email']; $linguagem=$_POST['linguagem']; $browser=$_POST['browser']; Hugh - Original Message - From: "J. P." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday

Re: [PHP] File Upload and ftp transfer problem

2003-03-27 Thread Hugh Danaher
Jason, Thanks for your help. The purpose of this script is to upload an image, assign an image name based upon a record name received in a mysql query, store the image name in the mysql table, and then ftp the file to a directory on the server. Thanks again, Hugh The following script is now worki

Re: [PHP] Connecting to a remote server

2003-03-27 Thread Jason Wong
On Friday 28 March 2003 05:00, Roberts, Mark \(Tulsa\) wrote: > I am needing to move one of my apps to a remote secure server that I have. > As I have never done this before what are the general things that I must do > to make this happen. > > I changed my connect statement from "localhost" to the

Re: [PHP] dynamic/multidimensional arrays in classes

2003-03-27 Thread Patrick Teague
I'm currently having a problem with another array in a class & I can't figure it out - class myClass { function myClass($arr = array( 'item1'=>array('a','b','c'), 'item2'=>array('a','b','c') ) ) { print_r( $arr ); while( list($key,$val) = each($arr) ) {

Re: [PHP] date math question

2003-03-27 Thread Charles Kline
Caught that :) Thanks for the tip... worked just perfect (after I fixed typo) On Friday, March 28, 2003, at 12:57 AM, Foong wrote: sorry typo error should be: date('Y') Foong "Foong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] hi, $start = mktime ( 0, 0, 0, 1, 1, date['Y']);

Re: [PHP] Benchmark

2003-03-27 Thread Jason Wong
On Friday 28 March 2003 13:59, John Taylor-Johnston wrote: > The first gives me the benchmark performance of Apache on the web. last I > looked Apache was at 60% of all Internet servers used. If you're talking about usage (as opposed to performance) then www.netcraft.com > There was another U

[PHP] Benchmark

2003-03-27 Thread John Taylor-Johnston
Hi, I'm tired, it's late, I'm trying to remember two URLs, I should have bookmarked. The first gives me the benchmark performance of Apache on the web. last I looked Apache was at 60% of all Internet servers used. There was another URL (probably the same site) that would tell me everything I wa

Re: [PHP] date math question

2003-03-27 Thread Foong
sorry typo error should be: date('Y') Foong "Foong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi, > > $start = mktime ( 0, 0, 0, 1, 1, date['Y']); // first day of this year > $end = mktime ( 0, 0, 0, 12, 31, date['Y']); // last day of this year > > then select all record wh

Re: [PHP] date math question

2003-03-27 Thread Foong
hi, $start = mktime ( 0, 0, 0, 1, 1, date['Y']); // first day of this year $end = mktime ( 0, 0, 0, 12, 31, date['Y']); // last day of this year then select all record where timestamp >= $start and timestamp <= $end should do the job Hope this helps Foong "Charles Kline" <[EMAIL PROTECTED

Re: [PHP] date math question

2003-03-27 Thread Charles Kline
Okay cool. This leads me to another question. If I have stored the date as an epoch then is there a way using PHP and MySQL to say find all the records that have been added this YEAR (not last 365 days)? Thanks Charles On Friday, March 28, 2003, at 12:31 AM, Leo Spalteholz wrote: On March 27,

RE: [PHP] date math question

2003-03-27 Thread Martin Towell
I think there's problems doing that when daylight savings starts/ends Just something to keep in mind... -Original Message- From: Leo Spalteholz [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 4:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] date math question On March 27, 2003 09:

Re: [PHP] date math question

2003-03-27 Thread Leo Spalteholz
On March 27, 2003 09:15 pm, Charles Kline wrote: > I am storing my dates as unix timestamp (epoch). Am I right in > assuming that if I need to add or subtract days from this it is > done in seconds? yes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] date math question

2003-03-27 Thread Charles Kline
I am storing my dates as unix timestamp (epoch). Am I right in assuming that if I need to add or subtract days from this it is done in seconds? So for example if I have the timestamp 1041397200 and I wanted to subtract 24 hours from it I would do this: $newtime = $orig_time - 86400; Thanks, Ch

Re: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Leif K-Brooks
Yes, but that has nothing do to with PHP! It's not doing it with PHP as was asked, it's doing it with javascript. daniel wrote: yes simply buffer the exact javascript code and then echo it ie $buffer .= ''; sorry i forget the no toolbar part from the top of my head. = Original Message

RE: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread daniel
yes simply buffer the exact javascript code and then echo it ie $buffer .= ''; sorry i forget the no toolbar part from the top of my head. >= Original Message From Leif K-Brooks <[EMAIL PROTECTED]> = >Correct, but he asked about doing it with PHP. > >Peter Houchin wrote: > >> yes there i

[PHP] Problem with readfile() and HTTP headers (vs. server-side include)

2003-03-27 Thread Kerry Shetline
I'm trying to figure out how to make readfile() or include() work more like a server-side #include, in terms of HTTP headers. I'm taking some web pages that used server-side includes, that in turn invoked CGI scripts, and replacing these pages with PHP pages. For the most part, I don't need a l

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Reuben D. Budiardja
On Thursday 27 March 2003 10:51 pm, you wrote: > Do you have libjpeg installed? You might need to add --with-jpeg-dir=/usr > assuming your libjpeg is in /usr/lib, for example. > > -Rasmus I see. $ > locate libjpeg /usr/lib/libjpeg.so.62 /usr/lib/libjpeg.so.62.0.0 ... So I will try to re-compi

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Rasmus Lerdorf
Do you have libjpeg installed? You might need to add --with-jpeg-dir=/usr assuming your libjpeg is in /usr/lib, for example. -Rasmus On Thu, 27 Mar 2003, Reuben D. Budiardja wrote: > On Thursday 27 March 2003 10:42 pm, Rasmus Lerdorf wrote: > > Well, check the error. Get rid of the header() ca

[PHP] Re: How do i valadate an email address?

2003-03-27 Thread Manuel Lemos
Hello, On 03/27/2003 03:44 AM, Philip J. Newman wrote: How would i check that an e-mail has the right parts in it. for example. username @ domain . ext You may want to try this class that provides different levels of e-mail address validation: http://www.phpclasses.org/emailvalidation -- Rega

[PHP] Re: Mail Header - id this PHP

2003-03-27 Thread Manuel Lemos
Hello, On 03/26/2003 08:44 PM, John wrote: I am trying to format the mail header that will be send by mail(). One thing that I noticed was it only accept for the first no. of lines or charracters (???) See sample 1 & 2. Is this a php problem (4.2.2) or has something to do the mailer ??? This scr

[PHP] Re: HTML mail being sent with mail() not working for some people

2003-03-27 Thread Manuel Lemos
Hello, On 03/27/2003 02:14 PM, Jeff Lewis wrote: We're sending out emails using mail() and sending it in HTML format and while most people get it correctly a couple are not. They get the anti-abuse headers and then the HTML code appears as just that - HTML code in the body of the email. Sending th

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Reuben D. Budiardja
On Thursday 27 March 2003 10:42 pm, Rasmus Lerdorf wrote: > Well, check the error. Get rid of the header() call and just look at the > output. uh.. didn't know I can do that, anyway, it gives: Fatal error: Call to undefined function: imagejpeg() in /usr/local/apache/htdocs/astr162/wedgeplot.php

Re: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Leif K-Brooks
Correct, but he asked about doing it with PHP. Peter Houchin wrote: yes there is java script Dan wrote: On Thu, 27 Mar 2003 12:32:06 -0800 (PST), [EMAIL PROTECTED] (Manuel Ochoa) wrote: Is there any way of using php to launch a new browser without the IE toolbars? No. PHP is server side, no

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Rasmus Lerdorf
Well, check the error. Get rid of the header() call and just look at the output. On Thu, 27 Mar 2003, Reuben D. Budiardja wrote: > > Hello, > I have a script that creates image using the gd library that is bundled with > the latest php-4.0.3 on Redhat Linux / Apache as apache mod. Everything

[PHP] imagejpeg gives error

2003-03-27 Thread Reuben D. Budiardja
Hello, I have a script that creates image using the gd library that is bundled with the latest php-4.0.3 on Redhat Linux / Apache as apache mod. Everything works fine when I use png: header("Content-type: image/png"); $im = imagecreate(500,500); ...[script]... imagepng($im) Then when I try to

[PHP] shell_exec question....

2003-03-27 Thread Kalin Mintchev
hello list, what has to happened so this actually works: $mstrng = shell_exec("/usr/sbin/zip 0041_27032003223711.zip 0041_27032003223711"); if php is compiled as a module with apache is the apache owner the one that has to have writing permissions? if so - it does.. any help appreciated... th

Re: [PHP] last questions

2003-03-27 Thread Jason k Larson
Search the list archives, this question gets asked (and answered) a lot. http://marc.theaimsgroup.com/?l=php-general HTH, Jason k Larson Haseeb Iqbal wrote: thanx to all those who replied to my previous question. 1 more question.i need help with reqular expressions.i want to check valid (email) u

[PHP] test - please ignore

2003-03-27 Thread Kerry Shetline
My last post didn't appear -- just testing before I try to repost. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Peter Houchin
yes there is java script Dan wrote: On Thu, 27 Mar 2003 12:32:06 -0800 (PST), [EMAIL PROTECTED] (Manuel Ochoa) wrote: Is there any way of using php to launch a new browser without the IE toolbars? No. PHP is server side, not client side. -- Peter Houchin Sun Rentals STR Manager Phone: 03 9

[PHP] Sending Digitally Signed E-mail with PHP

2003-03-27 Thread Bernardo de Barros Franco
Fellow PHP'ers, Does anyone know how can I send an digitally signed e-mail using PHP? I need to get a Verisign or Thawte e-mail certificate and use it to sign the messages I send from PHP. I am not quite sure but I think those certificates are x509. PGP or GPG aren't options and I need the certifi

[PHP] Problem with readfile() and HTTP headers (vs. server-side include)

2003-03-27 Thread Kerry Shetline
I'm trying to figure out how to make readfile() or include() work more like a server-side #include, in terms of HTTP headers. I'm taking some web pages that used server-side includes, that in turn invoked CGI scripts, and replacing these pages with PHP pages. For the most part, I don't need a lot o

[PHP] Did I have to sign up for the mailing list to post here?

2003-03-27 Thread Kerry Shetline
If you're reading this now, then yes is probably the answer to my titular question. My last two attempts to post quietly disappeared into the ether with nary a warning, and I wasn't subscribed before. I'd be happy simply using a news reader rather than getting regular e-mailings. Will I be able

[PHP] Re: Problem with PHP

2003-03-27 Thread Foong
can i have a peek on you code Foong "Jan Navratil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > Hallo, > > > > i have problem with running PHP4.3.1 on Apache1.3.19 on W2K. > > > > I instaled everithng by install.txt. Is posible to load easy php pages but > > when i want t

[PHP] why this sript doesn't work

2003-03-27 Thread J. P.
Hello! I am using Apache 2.0.44 and WinXP. I have PHP 4.3.1. When i run the script the first page appears. But when i submit nothing appends. What's wrong? Nome: Email: Qual a sua linguagem de programação preferida? PHP C++ C PERL Qual o seu browser web preferido? Netscape Navigator Intern

RE: [PHP] sript doesn't work

2003-03-27 Thread Martin Towell
same question as before: have you got register_globals turn on or off ? -Original Message- From: J. P. [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] sript doesn't work Hello! I am using Apache 2.0.44 and WinXP. I have PHP 4.3.1. Whe

[PHP] Re: Send Output to Printer?

2003-03-27 Thread Petter Aas
you should read this: http://www.php.net/manual/en/ref.printer.php Nicole wrote: anyone know of a good tutorial for using PHP to send output to a printer? have a report that returns paged display (e.g., 20 rows max per page) ... too many rows to show on one page. need a print button that will sen

[PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Dan
On Thu, 27 Mar 2003 12:32:06 -0800 (PST), [EMAIL PROTECTED] (Manuel Ochoa) wrote: >Is there any way of using php to launch a new browser without the IE toolbars? No. PHP is server side, not client side. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] sript doesn't work

2003-03-27 Thread J. P.
Hello! I am using Apache 2.0.44 and WinXP. I have PHP 4.3.1. When i run the script the first page appears. But when i submit nothing appends. What's wrong? Nome: Email: Qual a sua linguagem de programação preferida? PHP C++ C PERL Qual o seu browser web preferido? Netscape Navigator Intern

[PHP] _SERVER globals in fast CGI

2003-03-27 Thread Mike Long
I have installed php as fastcgi and I am now not getting all the _SERVER globals. Is there a config in the ini file to turn this on now or are they handled differently with fastcgi than in cgi? Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] logging ip address when submitting a form

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Not true- $_SERVER['REMOTE_ADDR'] doesn't rely on anything sent by the browser. Load up a phpinfo() on your server, then request it by hand... echo -e "GET /phpinfo.php HTTP/1.0\r\n\r\n" | nc www.yourserver.com 80 You'll see it has your IP address e

Re: [PHP] Can anyone help me

2003-03-27 Thread Peter Houchin
Dude have a look on the web 1000's of examples/tutorials there and also in it's documentation. The PHP mailing list is NOT the place to be asking this as setting/learning how to use OpenSSL aint related to PHP. Cheers Peter Suhas Pharkute wrote: Can anyone give me a basic tutorial for Secure S

[PHP] Working version of PHP4/Apache on a 64-bit platform?

2003-03-27 Thread mlm
Greetings... Is anyone running PHP4 on a 64-bit platform? I am attempting to run squirrelmail on a Sun Ultra10 using NetBSD/sparc64. I have using gdb tracked the "bus error" messages down to PHP source files. I have seen chatter on the net about whether or not PHP4 is 64-bit safe... I am hopin

RE: [PHP] need a reliable PHP host

2003-03-27 Thread Suhas Pharkute
Also checkout http://bidforhost.com Suhas __ Suhas S Pharkute. P O Box 8551, Pocatello, ID 83209. 1.208.221.3896 http://myweb.cableone.net/psuhas/ __ -Original Message- From: Jason Sheets [mailto:[EMAIL PROTECTED] Sent: Thu

Re: [PHP] need a reliable PHP host

2003-03-27 Thread Jason Sheets
I recommend pair (http://www.pair.net) they have excellent staff, excellent accounts, an excellent backbone and they have been profitable since their second month in business they will let you host more than one domain on your account (with a setup fee). They also host a lot of open source mir

RE: [PHP] split

2003-03-27 Thread John W. Holmes
> I want to make a loop.Like $a = "123"; //$a is One two threw not > hundred... > and i want to make for each $a then $b = $a + 2 > > The output will be. > 3 (1+2) > 4 (2+2) > 5 (3+2) > > Any example? $a = "123"; $c = ''; $b = strlen($a); for($x=0;$x<$b;$x++) { $c .= $a{$x} +2; } echo $c; ---

[PHP] Can anyone help me

2003-03-27 Thread Suhas Pharkute
Can anyone give me a basic tutorial for Secure Site Programming (OpenSSL) Also How to create certificate on server Suhas __ Suhas S Pharkute. P O Box 8551, Pocatello, ID 83209. 1.208.221.3896 http://myweb.cableone.net/psuhas/ __

Re: [PHP] Why this script doesn't work?

2003-03-27 Thread Leif K-Brooks
http://www.php.net/manual/en/security.registerglobals.php J. P. wrote: I'm using Apache 2.0.44 with Win XP and PHP version 4.3.1! -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP G

RE: [PHP] Why this script doesn't work?

2003-03-27 Thread Martin Towell
have you got register_globals turn on or off ? -Original Message- From: J. P. [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 5:26 AM To: [EMAIL PROTECTED] Subject: [PHP] Why this script doesn't work? I'm using Apache 2.0.44 with Win XP and PHP version 4.3.1! -- PHP General M

Re: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread Andre Dubuc
Hi, I made a little function that will allow allow "alphabetical character with apostrophe then more alphabetical characters then hyphen then more alphabetical characters (D'Agostino-Wong)". The downside is that it will automatically cap "von Hollander-Smith" function ucase_words($txt){

[PHP] Why this script doesn't work?

2003-03-27 Thread J. P.
I'm using Apache 2.0.44 with Win XP and PHP version 4.3.1! begin 666 c07p115.php M/"%$3T-465!%([EMAIL PROTECTED]"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N,"!4 M3X-"@T*/#]P:' -"F9U;F-T:6]N(&UOPT*9VQO8F%L("1N;VUE.PT*9VQO8F%L("1E M;6%I;#L-"F=L;V)A;" D;&EN9W5A9V5M.PT*9VQO8F%L("1BF%D;W(@)7,@8W5J;R!E;F1Ehttp://

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread tpc
Thank you. Strip_slashes was the key. The following Regular Expression: (preg_match("/^[[:alpha:]]{2,}[-]?[[:alpha:]]+$|^[[:alpha:]]{2,}[[:space:]]?[[:alpha:]]+$|^[[:alpha:]]{1,1}[']?[[:alpha:]]+$/", $Last_Name) allows only alphabetical characters (e.g., Smith), alphabetical characters with wh

RE: [PHP] logging ip address when submitting a form

2003-03-27 Thread Chris Shiflett
--- daniel <[EMAIL PROTECTED]> wrote: > this is a major problem , $_SERVER['HTTP_X_FORWARDED_FOR'] should get the ip > being the isp proxy , but some proxies including the stupid windoze one we > have at work will hide the ips behind it, so its rendered useless Your Windows proxy is not misbehav

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread Jennifer Goodie
This is what I use $LastName = stripslashes($_POST['LastName']); preg_match("/^\w+[\s\-\'\.\w]*$/i", $LastName) This is less strict than yours as I'm allowing whitespace, periods, underscores, hyphens, apostrophes, and numbers because I don't so much care if someone tacks on " Jr." or something li

RE: [PHP] logging ip address when submitting a form

2003-03-27 Thread daniel
this is a major problem , $_SERVER['HTTP_X_FORWARDED_FOR'] should get the ip being the isp proxy , but some proxies including the stupid windoze one we have at work will hide the ips behind it, so its rendered useless >= Original Message From Justin French <[EMAIL PROTECTED]> = >$_SERVER

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread tpc
When I do that: (preg_match("/^[a-z](\\')?[a-z-]+$/i",$_POST[Last_Name]) it won't allow O'Reilly and seems to not allow anything at all On Thu, 27 Mar 2003, Jennifer Goodie wrote: > That is because it is not saying that is all that can be in the string. The > 'Re' matches that pattern. Put a

RE: [PHP] Passing data between the web to an Intranet

2003-03-27 Thread Ernest E Vogelsinger
At 13:53 27.03.2003, Steve Jackson said: [snip] >That would've been ideal. >However I asked our webhost and they want 2100+ Danish Marks (Dotserv - >tight "#"#"#!" - needless to say it isn't going to happen) to configure >cURL within their PHP, can't do cron

Re: [PHP] Stupid question perhaps?

2003-03-27 Thread Justin French
PHP and Apache 2 don't boogie. A lot has changed in PHP over those versions... did you read the relase/upgrade notes across those versions?? I assume quite a lot of your issues are in relation to the register_globals directive in php.ini, which now defaults to off, not on. If you switch it back,

Re: [PHP] logging ip address when submitting a form

2003-03-27 Thread Justin French
$_SERVER['REMOTE_ADDR'] will contain the remote user's IP address IF it is set by the user agent (browser). It's also worth noting that this IP address could be faked, could be rotated by their ISP on a request-by-request basis (eg all AOL users), could be that of their firewall or network gateway

RE: [PHP] Include Question

2003-03-27 Thread Jennifer Goodie
If your include is located somewhere on the site you should refer to it as $_SERVER[DOCUMENT_ROOT]/pathtofile/filename.php so that your paths don't get messed up from chaning the includes etc. -Original Message- From: Beauford.2002 [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 2

Re: [PHP] split

2003-03-27 Thread Philip Olson
This: $word = 'test'; $len = strlen($word); for ($a = 0; $a < $len; $a++) { print $word{$a} . "\n"; } Will print: t e s t Regards, Philip On Thu, 27 Mar 2003, Oden Odenius wrote: > I have $word = "test"; > And i want to split it like > t > e > s > t > > I want to make a loop.Like $a =

[PHP] Re: GD - dynamic PNG generation

2003-03-27 Thread Petter Aas
Conor McTernan wrote: Coding wise, I currently read the text in from a file, then put the text into an array, each line being a seperate entry in the array. I then create a PNG image approx 490*1848(i change the image size depending on the amount of text). I dont do anything really strange in my im

Re: [PHP] Include Question

2003-03-27 Thread Beauford.2002
Just a typo, but now I have other problems as well which I think have to do with paths and includes. If I am in the root directory on page main.html and click on a link that is in /other - because this is a restricted page I include main.html with an error (which right now doesn't display) - but n

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread Jennifer Goodie
That is because it is not saying that is all that can be in the string. The 'Re' matches that pattern. Put a ^ at the beginning to signify it must start with the pattern and a $ at the end to signify it must end there. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

RE: [PHP] redirect using header

2003-03-27 Thread Chris Shiflett
--- David Banning <[EMAIL PROTECTED]> wrote: > I have been trying to do a redirect with header; ... > I keep getting the error; > > Warning: Cannot modify header information - headers already sent by > (output started at /usr/hosting/optex/goterm/temp.html:8) in > /usr/hosting/optex/goterm/temp.ht

RE: [PHP] need a reliable PHP host

2003-03-27 Thread Clint Tredway
I currently use www.imhosted.com and have been happy with their service. Clint -Original Message- From: Doug Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 3:28 PM To: [EMAIL PROTECTED] Subject: [PHP] need a reliable PHP host Hi everyone - I need suggestions for a relia

[PHP] need a reliable PHP host

2003-03-27 Thread Doug Parker
Hi everyone - I need suggestions for a reliable PHP/mySQL host that has cURL support WITH https capability. The site is e-commerce, but is mainly a statistics site that relies on frequent mysql requests, rather than numerous transactions. The only transaction is the site subscription fee. I

RE: [PHP] split

2003-03-27 Thread Don Read
On 27-Mar-2003 Oden Odenius wrote: > I have $word = "test"; > And i want to split it like > t > e > s > t > > I want to make a loop.Like $a = "123"; //$a is One two threw not > hundred... > and i want to make for each $a then $b = $a + 2 > > The output will be. > 3 (1+2) > 4 (2+2) > 5 (3+2) > >

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread tpc
I just tried your regexp: (preg_match("/[a-z](\\')?[a-z-]+/i",$_POST[Last_Name]) and it allows the following: O' [EMAIL PROTECTED] It seems to allow any number of characters and spaces between the O' and Re On Wed, 12 Mar 2003, John W. Holmes wrote: > > > preg_match ( "/[A-Za-z-']+/", $_POST

Re: [PHP] File Upload and ftp transfer problem

2003-03-27 Thread Hugh Danaher
Thanks Jason, I'll try that, and let you know the results. Hugh - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 27, 2003 11:48 AM Subject: Re: [PHP] File Upload and ftp transfer problem > On Friday 28 March 2003 03:16, Hugh Danahe

[PHP] Connecting to a remote server

2003-03-27 Thread Roberts, Mark \(Tulsa\)
I am needing to move one of my apps to a remote secure server that I have. As I have never done this before what are the general things that I must do to make this happen. I changed my connect statement from "localhost" to the name of the server " http://www.r

Re: [PHP] Internet Explorer toolbar

2003-03-27 Thread Ray Hunter
This is why it is imperative that the user first research the topic (problem) via on-line references (search engines, docs, howtos,etc) then post to the mailing list when all these resources have been exhausted. -- Ray On Fri, 2003-03-28 at 02:43, Haseeb Iqbal wrote: > hello, > just want to sugg

[PHP] split

2003-03-27 Thread Oden Odenius
I have $word = "test"; And i want to split it like t e s t I want to make a loop.Like $a = "123"; //$a is One two threw not hundred... and i want to make for each $a then $b = $a + 2 The output will be. 3 (1+2) 4 (2+2) 5 (3+2) Any example? Btw sorry for my english -- Programmers are tools for c

[PHP] Include Question

2003-03-27 Thread Beauford.2002
Hi, First, I fixed my other problem of the stack overflow by moving the files back to the root directory (although I would rather have them in a login directory). Anyway, I have a question regarding the include function. I have a login script in a file called login.php - in this file it includes c

[PHP] Password authentication failed with pg_connect (apache2 / win32 / php4.3.1)

2003-03-27 Thread Richard Hollis
Im running apache2, php4.3.1 on win32 and everything is dandy apart from the fact that pg_connect won't connect to a server which requires encrypted passwords. I get: Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL 1: Password authentication failed for u

Re: [PHP] Internet Explorer toolbar

2003-03-27 Thread Leif K-Brooks
PHP is server-side. It runs on the server, NOT the client. It has no way to do anything to the client. Try javascript. Manuel Ochoa wrote: Is there any way of using php to launch a new browser without the IE toolbars? -- The above message is encrypted with double rot13 encoding. Any unaut

RE: [PHP] Internet Explorer toolbar

2003-03-27 Thread Jeremy Russell
Use javascript --> window.open("url","toolbar=no"); -Original Message- From: Manuel Ochoa [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 2:32 PM To: PHP General Subject: [PHP] Internet Explorer toolbar Is there any way of using php to launch a new browser without the IE toolba

RE: [PHP] redirect using header

2003-03-27 Thread Jeremy Russell
Use ---> header("Location:http://newwebpage.com";); -Original Message- From: David Banning [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 1:15 PM To: [EMAIL PROTECTED] Subject: [PHP] redirect using header I have been trying to do a redirect with header; Optex Staging and

Re: [PHP] Internet Explorer toolbar

2003-03-27 Thread Haseeb Iqbal
hello, just want to suggest something to the list manager. there should be a way to email every newly subscribed user about what php can do and what php can't this will help solve many problems.i have been subscribed to this list for 10 days or so and i have recieved more then 50% of the mails abou

[PHP] Internet Explorer toolbar

2003-03-27 Thread Manuel Ochoa
Is there any way of using php to launch a new browser without the IE toolbars?

Re: [PHP] File Upload and ftp transfer problem

2003-03-27 Thread Jason Wong
On Friday 28 March 2003 03:16, Hugh Danaher wrote: > I'm trying to get the following script to ftp transfer an uploaded image > file so as to get around a file permission problem. The upload portion of > this works without problem, the ftp portion doesn't spit out any errors > either, but the file

RE: [PHP] Return Character in a Text File?

2003-03-27 Thread Don Read
On 27-Mar-2003 Jay Paulson wrote: > I have a slight problem. Is there anyway to make a text file with a > return character that doesn't show up in windows notepad as a gibberish > character and actually puts a return in it? Right now I'm using the "\n" > for the return but it doesn't get read in

Re: [PHP] PHP Send Mail Main headers.

2003-03-27 Thread Jason Wong
On Friday 28 March 2003 03:24, Don Read wrote: We're getting way off-topic here. > Not entirely accurate. It has to do with how you connect to the MTA. > > RFC822 only applies to SMTP 'on the wire' and internal delivery formats are > outside the scope. > > There are alot of UUCP class 1 sites out

RE: [PHP] HTML mail being sent with mail() not working for some people

2003-03-27 Thread Don Read
On 27-Mar-2003 Jeff Lewis wrote: > We're sending out emails using mail() and sending it in HTML format and > while most people get it correctly a couple are not. They get the > anti-abuse > headers and then the HTML code appears as just that - HTML code in the > body > of the email. > > Sending t

RE: [PHP] redirect using header

2003-03-27 Thread Matt Schroebel
> -Original Message- > From: David Banning [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2003 2:15 PM > To: [EMAIL PROTECTED] > Subject: [PHP] redirect using header > > > I have been trying to do a redirect with header; > > > >Optex Staging and Services Inc. > > > he

RE: [PHP] Stupid question perhaps?

2003-03-27 Thread Bryan Lipscy
Anything in the apache error_log? -Original Message- From: Tom Tsongas [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Stupid question perhaps? I just recently upgraded to PHP 4.3.1 and Apache 2.0.44. I had been previously running

Re: [PHP] PHP Send Mail Main headers.

2003-03-27 Thread Don Read
On 27-Mar-2003 Jason Wong wrote: > On Wednesday 26 March 2003 23:01, -{ Rene Brehmer }- wrote: > >> > is not an overkill. That is the specs. Some MTAs (sendmail in >> >particular) will treat a single LF (\n) as a line termination as thus >> >you >> > can get away with it. >> >> On unix machines y

RE: [PHP] redirect using header

2003-03-27 Thread Jennifer Goodie
Read the manual section on headers. A header must be sent before any other output, including whitespace, so putting it in the middle of an HTML page is totally not going to work. http://www.php.net/manual/en/function.header.php -Original Message- From: David Banning [mailto:[EMAIL PROT

Re: [PHP] PHP Session in Windows - Please help...

2003-03-27 Thread Tiago Simões
YEES!! I've used: #page1.php ".$sessionID.""; ?> Next Page and #page2.php and on page2.php finally appears in all its glory: bar that reminds me. beer time! thanks a lot!! T.S. "Mike" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's much easier and wor

Re: [PHP] Stupid question perhaps?

2003-03-27 Thread Tom Tsongas
Thx for the feedback everyone. Based on what most have told me, I think I will defer to an older Apache version (1.3.x) and use that with the latest PHP. Not enough time to experiment with getting newer Apache to work with newest PHP. - Tom Evan Nemerson wrote: -BEGIN PGP SIGNED MESSAGE--

[PHP] redirect using header

2003-03-27 Thread David Banning
I have been trying to do a redirect with header; Optex Staging and Services Inc. http://newwebpage.com'); ?> Stand By For Terminal... I keep getting the error; Warning: Cannot modify header information - headers already sent by (output started at /usr/hosting/optex/goterm/temp.html:

[PHP] PHP has encountered a Stack overflow

2003-03-27 Thread Beauford.2002
Where can I find information on this (all my searches come up in non-English). This script was working fine until I changed the directory it was in - since I moved it I get this error. TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File Upload and ftp transfer problem

2003-03-27 Thread Hugh Danaher
I'm trying to get the following script to ftp transfer an uploaded image file so as to get around a file permission problem. The upload portion of this works without problem, the ftp portion doesn't spit out any errors either, but the file transfered is just the name of the uploaded temp file a

Re: [PHP] Stupid question perhaps?

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 register globals is of in newer versions of php. you can re-enable it in the php.ini.. See http://www.php.net/manual/en/configuration.directives.php#ini.register-globals On Thursday 27 March 2003 10:57 am, Tom Tsongas wrote: > I just recently upgra

Re: [PHP] Stupid question perhaps?

2003-03-27 Thread Andrew Powell
Tom: The install.txt file that came with PHP 4.3.1 states: At this time, support for Apache 2 is experimental. It's highly recommended you use PHP with Apache 1.3.x and not Apache 2. aap Tom Tsongas wrote: > I just recently upgraded to PHP 4.3.1 and Apache 2.0.44. I had been > previou

Re: [PHP] character set problem

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rawurlencode was originally intended for URLs, but all it does is encode certian characters- it can be used for anything, and if the percentage of characters is low enough, the returned string is smaller than that which is returned by base64_encode,

[PHP] Stupid question perhaps?

2003-03-27 Thread Tom Tsongas
I just recently upgraded to PHP 4.3.1 and Apache 2.0.44. I had been previously running PHP 4.0.4 and Apache 1.3.20. I had a fully enabled PHP website that I had been developing on for some time. After I upgraded, the entire website is virtually non-functional. I keep receiving 'Page cannot Displ

  1   2   3   >