Re: [PHP] PDF - Coords

2004-02-18 Thread Juan Torres
¡Hola! Excuse me, but my english is bad :(. My problem is: When I'm writting text in a PDF document, I want to know the current position, or next position of next text to insert. I want to know when I'm near the finish page. I hope that you can help me. Thank you! Juan Torres. PD: Do you know

Fw: [PHP] Parse Error

2004-02-18 Thread Bob Eldred
Since I replied only to Edwin. - Original Message - From: "Bob Eldred" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 10:40 PM Subject: Re: [PHP] Parse Error > Yes. Of course not. That wasn't the point. The point was that the > parse error isn't caused

Re: [PHP] diskusage

2004-02-18 Thread - Edwin -
On Wed, 18 Feb 2004 21:21:45 -0500 "Chakravarthy Cuddapah" <[EMAIL PROTECTED]> wrote: > From the terminal I can do this by: > ssh [EMAIL PROTECTED] du -hs /home/user | awk '{print $1}' Hmm... that's a pretty scary setup. You can ssh as root? Without a password? I wouldn't want that kind of setup

Re: [PHP] fonts

2004-02-18 Thread - Edwin -
On Wed, 18 Feb 2004 20:36:30 -0500 "Jake McHenry" <[EMAIL PROTECTED]> wrote: > it's for my intranet, figured it might be easier this way > instead of touching every machine. All my machines are either > on 98 or XP, which both will use the same font. I've manually > installed it on 4 machines so f

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread daniel
Firstly i luv the subject mwuahhaha, you may want to check out the pear class HTTP_Request , it'll do post and get sockets. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fonts

2004-02-18 Thread - Edwin -
On Wed, 18 Feb 2004 22:09:13 -0500 "Jake McHenry" <[EMAIL PROTECTED]> wrote: [...] > Image files for the entire website? I want this to be the > standard font for the text of the site. Then why not just use standard fonts that exist on the clients? -- - E - -- PHP General Mailing List (http:

Re: [PHP] Parse Error

2004-02-18 Thread - Edwin -
On Wed, 18 Feb 2004 21:35:15 -0800 "Bob Eldred" <[EMAIL PROTECTED]> wrote: > > The error is: > > Parse error: parse error, unexpected T_VARIABLE in > > /www/htdocs/rolfvand/thinkquest/browsercheck.php on line 46 > > [/snip] > > > > All of your values are not enclosed with single quotes - the > > f

Re: [PHP] fonts

2004-02-18 Thread Paul Furman
Jake McHenry wrote: it's for my intranet, figured it might be easier this way instead of touching every machine. All my machines are either on 98 or XP, which both will use the same font. There is such a thing as embedding fonts in a web page. I don't know the specifics but it exists. -- PHP

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread John Nichel
Scott Fletcher wrote: This is what I get... --snip-- 1 Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed in /home/website/emarket/www/zz_test.php on line 4 Warning: fsockopen() [function.fsockopen]: unable to connect to www.google.com:80 in /home/website/emarket/www/zz_te

Re: [PHP] fopen errors

2004-02-18 Thread John Nichel
admin wrote: I have a PHP front end with a MySQL back end with a longblob field. Okay? I am thinking the problem exists in the PHP part. Probably not. Here is the code I am using: $fileHandle = fopen($fileUpload, "r"); $fileContent = fread($fileHandle, $fileUpload_size); $fileContent = addslashe

Re: [PHP] Is it posible to embed scripts from other server?

2004-02-18 Thread Binay
$fp =fopen("http://www.anotherserver.com/script.php","r";); then read the required information using fread or fgets functions. hope tht helps Binay - Original Message - From: "The PHP Newbie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 3:26 AM Subject:

Re: [PHP] How to detect session expiry

2004-02-18 Thread Binay
This question has been answered several times ... so search the archive ... Binay - Original Message - From: "Radek Zajkowski (Mac)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 3:25 AM Subject: [PHP] How to detect session expiry > How do I tell if sessi

Re: [PHP] fonts

2004-02-18 Thread Binay
Hi I think u need to embed particular font into ur pages and save ur self from the hassle of auto downloading of the font in case the users don have(that font). http://www.tijs.org/embed/ Read above article which will more clarify the scenario. Thanks Binay - Original Message - From: "

Re: [PHP] Parse Error

2004-02-18 Thread Bob Eldred
- Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Rolf van de Krol" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 9:06 AM Subject: RE: [PHP] Parse Error > > The error is: > Parse error: parse error, unexpected T_VARIABLE in > /www/htdocs/rolfv

[PHP] Mimetypes and image uploads

2004-02-18 Thread daniel
I just discovered something totally bizarre with file uploads and mime types, if i have the document open i am trying to upload say a word file application/octet-stream and if i close the document application/msword , why is this ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Recursive Select Box

2004-02-18 Thread Matt Palermo
No, i'm using a MySQL DB. "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Palermo wrote: > > > Hey everyone. I'm looking for assistance/suggestions/answers on how to > > build a select dropdown box from data that needs to be pulled recursively > > from a MySQL d

Re: [PHP] fonts

2004-02-18 Thread Jake McHenry
- Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 10:02 PM Subject: Re: [PHP] fonts > Ummm, if displaying just webpages and the font is so important...cant you > just make image files (ie. JPG) or >

Re: [PHP] checking users have the latest version of a file

2004-02-18 Thread Jason Wong
On Thursday 19 February 2004 09:19, [EMAIL PROTECTED] wrote: > What i'm gonna ask is, would simply checking that the new file being upload > is larger than the latest file updated work ? Only if the latest version is always larger than the previous versions. -- Jason Wong -> Gremlins Associates

Re: [PHP] fonts

2004-02-18 Thread Ryan A
Ummm, if displaying just webpages and the font is so important...cant you just make image files (ie. JPG) or am I missing something? -Ryan On 2/19/2004 2:36:30 AM, Jake McHenry ([EMAIL PROTECTED]) wrote: > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Jake McHenry" <[EMAIL PROT

Re: [PHP] diskusage

2004-02-18 Thread Chakravarthy Cuddapah
From the terminal I can do this by: ssh [EMAIL PROTECTED] du -hs /home/user | awk '{print $1}' The same does not work in php. I used system and also shell_exec. Works only on localhost. But not remote system. Appreciate any help. Original Message Follows From: "John W. Holmes" <[EMAIL

Re: [PHP] fonts

2004-02-18 Thread Jake McHenry
- Original Message - From: <[EMAIL PROTECTED]> To: "Jake McHenry" <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 8:07 PM Subject: Re: [PHP] fonts > leaving aside the obvious serious security implications of what > you're after, you're assuming that you'll be able to accurately

RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
> I dont understand what you are doing with the md5, and > > i assume YOU will know which file is the latest version. > > this is what i have to try and find out to prevent that. > How could i check for date modified on an uploaded file ? -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
> I dont understand what you are doing with the md5, and > > i assume YOU will know which file is the latest version. > > this is what i have to try and find out to prevent that. > >> [EMAIL PROTECTED] >>on Wednesday, February 18, 2004 3:42 PM said: What i'm gonna a

RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
I dont understand what you are doing with the md5, and i assume YOU will know which file is the latest version. this is what i have to try and find out to prevent that. > [EMAIL PROTECTED] >on Wednesday, February 18, 2004 3:42 PM said: > >> Hi there i am developing

[PHP] fonts

2004-02-18 Thread Jake McHenry
is there a way I can have a special font on a page, and if the viewer doesn't have that font, have it auto downloaded and installed? Thanks, Jake

RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, February 18, 2004 3:42 PM said: > Hi there i am developing a collaboration filespace, i was wondering if > there is any way either using diff or filesize to check if users have > the latest version of a file before uploading their copy

RE: [PHP] functions and session variables

2004-02-18 Thread Vail, Warren
the $_SESSION array is available everywhere. I seem to be able to access it within a function without declaring it as a global. It is customary to declare globals that you intend to access in a function (almost everything undeclared is assumed to be local to the function). Other exceptions that

[PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
Hi there i am developing a collaboration filespace, i was wondering if there is any way either using diff or filesize to check if users have the latest version of a file before uploading their copy ? Let me know thankyou. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] rewrite rule not working

2004-02-18 Thread Chris W. Parker
hi. ok so i've got two rules in a .htaccess file. both of them are valid. only one works. here are the pertinent lines in my .htaccess: RewriteEngine on RewriteBase /~cparker/ RewriteRule ^products/([a-zA-Z0-9-]+)$ product.php?id=$1 RewriteRule ^verify/([a-f0-9]+)$ verify.php?uid=$1 Here is h

[PHP] functions and session variables

2004-02-18 Thread craig
Hi, I just want to verify something that seems counterintuitive to me. Do you have to pass session variables to functions? It would seem to me that they should be available anywhere. I took a cursory look through the manual, but didn't see anything relevant. Thanks, Craig -- PHP General Mailing

RE: [PHP] Nested Loops

2004-02-18 Thread Alex Hogan
Using print_r($var) shows that the vars are returning the right values, and where they're supposed to. Right in between the error messages. Doh. alex ** The contents of this e-mail and any files transmitted with it are con

[PHP] Re: fopen errors

2004-02-18 Thread Paul Furman
Admin wrote: Here is the code I am using: $fileHandle = fopen($fileUpload, "r"); $fileContent = fread($fileHandle, $fileUpload_size); $fileContent = addslashes($fileContent); Warning: fopen("C:\\0-temp\\100_0078.jpg", "r") -No such file or directory in /var/www/testbed/httpdocs/blob/grabfile.p

RE: [PHP] Nested Loops

2004-02-18 Thread Chris W. Parker
Alex Hogan on Wednesday, February 18, 2004 2:06 PM said: > Do I have something wrong with my syntax? > > Is there an easier way to do this? i don't know the answer to either of those questions but if it's complaining of an undefined index you might want to try prin

[PHP] Nested Loops

2004-02-18 Thread Alex Hogan
Sorry..., Line 17 is: print "$row2[$rtxt]"; alex ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Justin Patrin
Gerard Samuel wrote: On Wednesday 18 February 2004 12:38 pm, Ben Ramsey wrote: I know that it may be somewhat irrelevant to solving the problem at hand (and, in fact, I think your current method is probably the best method), but I was just wondering why you needed to change the names of your keys

Re: [PHP] '

2004-02-18 Thread Justin Patrin
Mike Ford wrote: On 18 February 2004 16:24, Diana Castillo contributed these pearls of wisdom: How do I convert ' to ' before displaying it in HTML? You don't. That's the browser's job. Cheers! Mike But if you still want to do it: $text = html_entity_decode($text); -- paperCrane -- PHP Ge

[PHP] Re: htmlspecialchars... or...?

2004-02-18 Thread Justin Patrin
Tristan Pretty wrote: Hi all... I've having problems submitting information to salesforce.com... I have a system set up that allows my users here in the office, to send individual leads, to salesforce... However, if the users details contain characters such as... Ù ë ý Ñ Ã etc... htmlspecialch

[PHP] Nested Loops

2004-02-18 Thread Alex Hogan
Hi All, I've been banging my head for several hours now. I've got a mssql backend. What I want to display is; Date 1 Item 1 Item 2 Item 3 ... etc Date 2 Item 1 Item 2 Item 3 ... etc Here's the code I've been fighting with; $query = "select distinct wn_pdate

[PHP] Re: Recursive Select Box

2004-02-18 Thread Justin Patrin
Matt Palermo wrote: Hey everyone. I'm looking for assistance/suggestions/answers on how to build a select dropdown box from data that needs to be pulled recursively from a MySQL database. Basically the situation is mainly for a dicussion thread system type of thing where I have categories nested

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
P.S. The telnet part, it said... --snip-- Trying Connected to www.google.akadns.net --snip-- When I exited, I get HTML codes dumped on screen along with bad request... Scott F. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Scott Fletcher <[EMAIL PROTECTE

[PHP] Is it posible to embed scripts from other server?

2004-02-18 Thread The PHP Newbie
HI there! Hope someone can help me with this: Is it posible to run a PHP script from a different server than the one requesting the script.? I would like to know if u can do this with php, just like the Server Includes in CGI and if u have an example of how to do it. I have a script in lets

[PHP] How to detect session expiry

2004-02-18 Thread Radek Zajkowski (Mac)
How do I tell if session has expired? It would help me with providing the user with a comment such as: "your session has expired please login in again" Thanks R> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
This is what I get... --snip-- 1 Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed in /home/website/emarket/www/zz_test.php on line 4 Warning: fsockopen() [function.fsockopen]: unable to connect to www.google.com:80 in /home/website/emarket/www/zz_test.php on line 4 [13]

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Sample code is $fp = fsockopen("www.whatever.com", 443, $errno, > $errmsg); > > Error message is $errno --> 13 and $errmsg --> Permission denied I'd recommend forgetting the SSL bit for now and trying this with a regular Web server. I'm not sure wh

Re: [PHP] include (byname.php?lang=fr");

2004-02-18 Thread John Taylor-Johnston
Why didn't I think of that :) ? Thanks John, John "John W. Holmes" wrote: > From: "John Taylor-Johnston" <[EMAIL PROTECTED]> > > > I want to create a language option, so the resulting html is in French or > English, depending. But passing variables like this doesn't work: > > > > > > > > echo $l

RE: [PHP] Going a bit nuts with php/mysql structure......(maybe 0T)

2004-02-18 Thread Chris W. Parker
Ryan A on Wednesday, February 18, 2004 12:18 PM said: > I have the 3 distinct order_ids, but when I try to do a "select > *where order_id='$order_ids' " on the order_ids...I get all the > damn records. The only thing truly unique is the CNObut I have > been u

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
That's not the one, I tried it with port 80 and still get the error message, so ssl have nothing to do with it. Scott F. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sample code is $fp = fsockopen("www.whatever.com", 443, $errno, $errmsg); > > Error message is $e

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
Sample code is $fp = fsockopen("www.whatever.com", 443, $errno, $errmsg); Error message is $errno --> 13 and $errmsg --> Permission denied... I think I understand the problem. I'm using the self-created certificate without having it be signed by certificate authority. When I tried the cURL, it

[PHP] fopen errors

2004-02-18 Thread admin
I have a PHP front end with a MySQL back end with a longblob field. I am thinking the problem exists in the PHP part. Here is the code I am using: $fileHandle = fopen($fileUpload, "r"); $fileContent = fread($fileHandle, $fileUpload_size); $fileContent = addslashes($fileContent); Then it goes in

[PHP] Going a bit nuts with php/mysql structure......(maybe 0T)

2004-02-18 Thread Ryan A
Hi, Like I said before am working on a project that someone else created so dont blame me for this daft architecture. The problem is in the products table, he has the name and products in one table, this is the structure and records: cno order_id name product 1234455 ryan 123 2234455

[PHP] Re: Custom Error Handler

2004-02-18 Thread Manuel Lemos
Hello, On 02/18/2004 02:50 PM, Stuart wrote: I have a custom error handler class that's working well. My problem is that I can't find a way to find out whether a particular error has been suppressed using the @ prefix. Is there a way to do this with a custom handler? If you suppress the errors

[PHP] Re: CSV download

2004-02-18 Thread John Herren
Mark Roberts wrote: I have an application that I need to add a function to that will download a complete MySql Table in comma delineated format from a web site to a local hard drive. What is the best way to do this? Is there a function in PHP that will do this? in MySql? or do I just need to do

[PHP] Re: [Q] Howto go directly to a URL?

2004-02-18 Thread Michael T. Peterson
Thanks, everyone. Just the answer(s) I was looking for. Michael "Michael T. Peterson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have written a very straightforward user login script. Once the user > successfully logs in, I would like my PHP script to take him directly to t

RE: [PHP] CSV download

2004-02-18 Thread Roberts, Mark (Tulsa)
Is this through the fopen() and other file handling functions? Mark Roberts Sr. Systems Analyst Corporate Compliance & Governance Applications The Williams Information Technologies Office 918.573.1706 Pager 918.672.5359 Fax 918.573.0892 Email: [EMAIL PROTECTED] Email Text to pager: [EMAIL

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > It said it is set to 1 from ini_get(), it also said "on" from php.ini. In that case, you should be able to do this. Can you restate exactly what you tried (perhaps a small sample script?) and what the error message was? Chris = Chris Shiflett -

[PHP] SWFShape HOW TO DRAW ELLIPSE????

2004-02-18 Thread Rostislav Kerey
Hi all, How I can to draw ellipse with Ming functions? I have found how to draw circle but not ellipse :( Help me please!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
It said it is set to 1 from ini_get(), it also said "on" from php.ini... Scott F. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > Groan!!! I get permission denied error for fsockopen(). > > Do you know what allow_ur

Re: [PHP] SOLVED: Getting age from yyyy-mm-dd

2004-02-18 Thread Ryan A
Hey, My thanks go out to everyone who replied I finally got this: http://www.zend.com/codex.php?id=309&single=1 I used a substr to break it into 3 variables and then passed it to the above function. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Figuring out how to use a class with no documentation

2004-02-18 Thread Paul Furman
I've found this PEAR module: http://pear.php.net/package/Image_IPTC but it has no documentation and I'm a beginner so I am not figuring out how to use this. There is also a perl module that does the same thing (probably better) but again I have no clue whether I can run it with PHP. I've got per

RE: [PHP] PDF - Coords

2004-02-18 Thread Jyry Kuukkanen
On Wed, 18 Feb 2004, Jay Blanchard wrote: > [snip] > How can I know the currents coordenades of my pdf document? > [/snip] > > Use a GPS? > http://catb.org/~esr/faqs/smart-questions.html > > HTH! ¹Hola! Maybe Señor Torres wanted to know the current position of drawing text or an image, that i

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Groan!!! I get permission denied error for fsockopen(). Do you know what allow_url_fopen is set to? You should be able to use this to check: http://www.php.net/ini_get Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly

Re: [PHP] CSV download

2004-02-18 Thread Robby Russell
Roberts, Mark (Tulsa) typed this on 02/18/2004 10:33 AM: I have an application that I need to add a function to that will download a complete MySql Table in comma delineated format from a web site to a local hard drive. What is the best way to do this? Is there a function in PHP that will do this?

Re: [PHP] boolean type function ?

2004-02-18 Thread John W. Holmes
From: "Mike Mapsnac" <[EMAIL PROTECTED]> > I search on php.net. How to declare php function as type boolean? > > I tried the following declaration; > function booolean check_ip_remote() & > boolean check_ip_remote() > > But both declaration are wrong. I got the error messages Unless this is some

RE: [PHP] boolean type function ?

2004-02-18 Thread Ford, Mike [LSS]
On 18 February 2004 18:28, Mike Mapsnac contributed these pearls of wisdom: > I search on php.net. How to declare php function as type > boolean? You don't -- PHP is a dynamically typed language. Just return a Boolean value, and there you are. Cheers! Mike -- Mike Ford, Electronic Informa

Re: [PHP] boolean type function ?

2004-02-18 Thread Richard Davey
Hello Mike, Wednesday, February 18, 2004, 6:28:11 PM, you wrote: MM> I tried the following declaration; MM> function booolean check_ip_remote() & MM> boolean check_ip_remote() MM> But both declaration are wrong. I got the error messages I'm not surprised - what is it you're trying to do

Re: [PHP] include (byname.php?lang=fr");

2004-02-18 Thread John W. Holmes
From: "John Taylor-Johnston" <[EMAIL PROTECTED]> > I want to create a language option, so the resulting html is in French or English, depending. But passing variables like this doesn't work: > > > > echo $lang; // 'fr' > > Warning: main(): Failed opening '../_phpcode/byname.php?lang=fr' >

[PHP] CSV download

2004-02-18 Thread Roberts, Mark (Tulsa)
I have an application that I need to add a function to that will download a complete MySql Table in comma delineated format from a web site to a local hard drive. What is the best way to do this? Is there a function in PHP that will do this? in MySql? or do I just need to do something with fo

[PHP] boolean type function ?

2004-02-18 Thread Mike Mapsnac
I search on php.net. How to declare php function as type boolean? I tried the following declaration; function booolean check_ip_remote() & boolean check_ip_remote() But both declaration are wrong. I got the error messages __

Re: [PHP] PHP, Cache Control and Mac IE

2004-02-18 Thread Gareth Williams
Hello Roger, If you find a solution, I would also be interested to to see it. I have tried almost everything to get Mac IE to not use the cache. It just doesn't seem to accept anything. On 18 Feb 2004, at 18:58, Roger Spears wrote: Hello List, I am using the following in a PHP script: head

[PHP] include (byname.php?lang=fr");

2004-02-18 Thread John Taylor-Johnston
I want to create a language option, so the resulting html is in French or English, depending. But passing variables like this doesn't work: echo $lang; // 'fr' Warning: main(): Failed opening '../_phpcode/byname.php?lang=fr' for inclusion (include_path='.:/usr/local/share/pea

Re: [PHP] Custom Error Handler

2004-02-18 Thread Stuart
John W. Holmes wrote: You'll notice this if you do: - It is important to remember that the standard PHP error handler is completely bypassed. error_reporting() settings will have no effect and your error handler will be called regardless - however you are still able to read the current value of

[PHP] PHP, Cache Control and Mac IE

2004-02-18 Thread Roger Spears
Hello List, I am using the following in a PHP script: header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("P

Re: [PHP] Custom Error Handler

2004-02-18 Thread John W. Holmes
From: "Stuart" <[EMAIL PROTECTED]> > I have a custom error handler class that's working well. My problem is > that I can't find a way to find out whether a particular error has been > suppressed using the @ prefix. Is there a way to do this with a custom > handler? Next time start here http://us2

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Gerard Samuel
On Wednesday 18 February 2004 12:38 pm, Ben Ramsey wrote: > I know that it may be somewhat irrelevant to solving the problem at hand > (and, in fact, I think your current method is probably the best method), > but I was just wondering why you needed to change the names of your keys > at all. Why i

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
Groan!!! I get permission denied error for fsockopen(). I looked around on the Internet and it narrow down to the temporary directory like "/tmp" for unix. I don't believe that is the problem because the $_SESSION feature work great without a problem. The file permission doesn't seem to b

[PHP] Custom Error Handler

2004-02-18 Thread Stuart
I have a custom error handler class that's working well. My problem is that I can't find a way to find out whether a particular error has been suppressed using the @ prefix. Is there a way to do this with a custom handler? -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Getting age from yyyy-mm-dd

2004-02-18 Thread John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > Theres a "date_of_birth" field there that has the values in this format > -MM-DD, the client wants me to > print out the age of the person from that...looking in the manual > (http://se.php.net/manual/en/function.date.php) > I think I will need to use mktim

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
I know that it may be somewhat irrelevant to solving the problem at hand (and, in fact, I think your current method is probably the best method), but I was just wondering why you needed to change the names of your keys at all. Why is it not programmed so that the keys already have the names yo

Re: [PHP] Ideas on modifying array keys

2004-02-18 Thread Michal Migurski
>The only way I can think of is to loop through the array, copying array >values to new keys, and unsetting the old key. Yeah, that's pretty much it: foreach(array_keys($array) as $old_key) { $array[new_key($old_key)] = $array[$old_key]; unset($array[$old_k

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Gerard Samuel
On Wednesday 18 February 2004 12:03 pm, Ben Ramsey wrote: > You might be able to create some function that uses a combination of > array_keys(), array_values(), and array_combine() to do what you want. > Check the manual at http://www.php.net/array for more information on > these functions. > True

RE: [PHP] Re: how to deal with http and https directory structures?

2004-02-18 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, February 18, 2004 6:03 AM said: > What this means is that you can have a user access a certain page via > https by simply providing a link containing "https://"; as the prefix. > The down side of this solution is that users will be fre

RE: [PHP] PHP Login Page Issues

2004-02-18 Thread Chris W. Parker
Pushpinder Singh on Wednesday, February 18, 2004 7:46 AM said: > I was wondering if anyone had a chance to take a quick peek at > this code. Thanks again guys ! yes. but it's hard to read, so i just skipped it considering i haven't had a lot of time to spend in

RE: [PHP] Getting age from yyyy-mm-dd

2004-02-18 Thread Chris W. Parker
Ryan A on Wednesday, February 18, 2004 8:19 AM said: > I think I will need to use mktimebut how?? > > Any help appreciated, in URL form, hints or PHP manual references. well i think the idea is to convert the date/time of the person's birthday into a unix times

[PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
You might be able to create some function that uses a combination of array_keys(), array_values(), and array_combine() to do what you want. Check the manual at http://www.php.net/array for more information on these functions. Gerard Samuel wrote: Im looking for the fastest way to modify array k

[PHP] Ideas on modifying array keys

2004-02-18 Thread Gerard Samuel
Im looking for the fastest way to modify array keys. For example, changing -> $foo['hello_world'] = 'HELLO WORLD'; to $foo['hello'] = 'HELLO WORLD'; The only way I can think of is to loop through the array, copying array values to new keys, and unsetting the old key. Thanks for any insight you m

Re: [PHP] '

2004-02-18 Thread Adam Voigt
$string = str_replace(''','\'',$string); You don't need to, but if you want to, thats how you could do it. Adam Voigt [EMAIL PROTECTED] On Wed, 2004-02-18 at 11:24, Diana Castillo wrote: > How do I convert ' to ' before displaying it in HTML? > Thanks, > > > -- > Diana Castillo > Global Rese

RE: [PHP] '

2004-02-18 Thread Ford, Mike [LSS]
On 18 February 2004 16:24, Diana Castillo contributed these pearls of wisdom: > How do I convert ' to ' before displaying it in HTML? You don't. That's the browser's job. Cheers! Mike -- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information S

Re: [PHP] '

2004-02-18 Thread Gerard Samuel
On Wednesday 18 February 2004 11:24 am, Diana Castillo wrote: > How do I convert ' to ' before displaying it in HTML? > Thanks, > You could leave it as it is, and the browser would convert it to ' if its an HTML page... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] '

2004-02-18 Thread Diana Castillo
How do I convert ' to ' before displaying it in HTML? Thanks, -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 ext 214 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http://www.destinia.com -- PHP Gene

RE: [PHP] Weird question - environment data from windows

2004-02-18 Thread Gryffyn, Trevor
> -Original Message- > From: Martin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 18, 2004 10:26 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Weird question - environment data from windows > > When you've stopped laughing - is it at all possible to pass Windows > environment data

[PHP] Getting age from yyyy-mm-dd

2004-02-18 Thread Ryan A
Hi, I'm working on a set of scripts not written by me. Theres a "date_of_birth" field there that has the values in this format -MM-DD, the client wants me to print out the age of the person from that...looking in the manual (http://se.php.net/manual/en/function.date.php) I think I will need to

Re: [PHP] PHP REDIRECT

2004-02-18 Thread Chris Shiflett
--- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: > You have done a better job describing that situation than i did. Thank > you. No problem. :-) I found that URL I mentioned (with the browser tests). The author claims that it's all being rewritten, but most of them are listed here: http://www.

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
Whoa!! I never thought about that. Now, I'm beginning to understand this... Fortunately, I have Mozilla, so I found out about the "Live HTTP header" extension, not releted to the keywords while Google searching just recently so I installed it and saw that it is different than I thought. I saw n

Re: [PHP] About Classes and Scope

2004-02-18 Thread Phillip Jackson
u NOPE... i don't believe that nick was looking for a constant - which cannot be changed once defined. there are a few ways to do this - for one, you can declare $var global inside of the function in your class: class myclass{ function myclass(){ global $var; //do some stuff } }

Re: [PHP] DCOM , PHP on Linux

2004-02-18 Thread Raditha Dissanayake
What are the possible solutions available to me , i'm thinking one way would be to wrap the COM calls in a webservice on the linux side (SOAP?) , but that sounds like a lot of work. not if you use a tool kit / class library that is already be available. How about switching to java instead? Are

Re: [PHP] FTP (via firewall)

2004-02-18 Thread Raditha Dissanayake
- what is the firewall doing? - what are you trying to do? cant' resist a me too post. - what is the firewall doing? - what are you trying to do? -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://ww

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > I am wonder if it is possible to use the header("Location: > https://www.blah.net";) while stimulating it as a POST method/string. It is not, and if you think about that for a minute, you should be glad. You cannot force the user to submit a POST re

RE: Re[2]: [PHP] Browser Detection another page

2004-02-18 Thread Gryffyn, Trevor
> mycb> Sure, but why would a user want to fake their browser signature? > > They might do it without even knowing. Opera will identify itself as > IE6 for example if you select that in the Preferences. Other > browsers/packages can do it as standard. Although I can't give a > specific example, I

[PHP] Question about the manual content

2004-02-18 Thread janbro
p {margin: 0px}Hi List,I have a little problem I posted a couple of times now. The PHP Manual gave me the idea that the clibpdf library seemed to work with php. Well I tried some things they didn't seem to work.Well I thought I'd ask the list, maybe somebody could help me out. But what  a though

Re: [PHP] PHP REDIRECT

2004-02-18 Thread Raditha Dissanayake
Hi Chris. You have done a better job describing that situation than i did. Thank you. best regards raditha Chris Shiflett wrote: --- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: It's not often that i disagree with the other chris but one occaision where meta refresh turns out to be the only

  1   2   >