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] 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] 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] 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] 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]

[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

[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

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] 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

[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: 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

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

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

[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] 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] 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 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] 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

[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] 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

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

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

[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 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

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. > How could i check for date modified on an uploaded file ? -- PHP General Mailing List (http://www.php.net/) To unsu

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] 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 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] 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 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 >

[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

[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,

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

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] 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] 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] 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] 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] 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] 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 - 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] 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 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] 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

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] 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

<    1   2