Re: [PHP] Classes and Functions

2005-11-03 Thread Jochem Maas
Robert Cummings wrote: On Thu, 2005-11-03 at 12:15, Jasper Bryant-Greene wrote: On Wed, 2005-11-02 at 19:05 -0500, Unknown Unknown wrote: Oh thanks again and what does RTFM mean? Read The [insert your favourite word beginning with F here] Manual. Fondu?? *licks lips* you missed an

Re: [PHP] Issue with curl and ssl

2005-11-03 Thread Jochem Maas
Dan Rossi wrote: Hi there, I am trying to test out the new installed curl extension to connect to a site via ssl and auth basic. However everytime i try to connect with the browser , in ie it says cannot find server and in mac safari is says could not load any data etc. If i run the same

Re: [PHP] Issue with curl and ssl

2005-11-03 Thread Dan Rossi
Just a standard php 4.3.11 and apache 1.3 ?? It works via php cli wierdly enough but not the apache module ? On 03/11/2005, at 7:17 PM, Jochem Maas wrote: Dan Rossi wrote: Hi there, I am trying to test out the new installed curl extension to connect to a site via ssl and auth basic. However

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-03 Thread Richard Heyes
Curt Zirzow wrote: On Wed, 02 Nov 2005 21:19:24 +0100, Jochem Maas wrote: I totally agree with Richard. about the need for a php func for checking a correct email addr. given that php 'is all about the web', idealogically (still?) pragmatic and dynamically typed: is_email_addr() or

Re: [PHP] whitch class can I read EXCEL .xls file

2005-11-03 Thread M
Manish Marathe wrote: On 11/2/05, bala chandar [EMAIL PROTECTED] wrote: Hi, On 11/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear all: whitch class can I read EXCEL .xls file I want to read data from a excel's .xls file on Linux use php,please tell me way. There is a

RE: [PHP] Classes and Functions

2005-11-03 Thread Shaw, Chris - Accenture
STFW -Original Message- From: Unknown Unknown [mailto:[EMAIL PROTECTED] Sent: 03 November 2005 00:05 To: Jasper Bryant-Greene Cc: php-general@lists.php.net Subject: Re: [PHP] Classes and Functions Oh thanks again and what does RTFM mean? This

Re: Fwd: [PHP] question regarding Reflection

2005-11-03 Thread Jochem Maas
Manish Marathe wrote: On 11/2/05, Jochem Maas [EMAIL PROTECTED] wrote: Manish Marathe wrote: Sorry for spamming but I didn't mean to reply you privately :( I did it myself by accident 2 minutes ago :-) no probs. Thanks I am sorry if I have hurted anyone's feelings here but by

Re: [PHP] Re: question regarding Reflection

2005-11-03 Thread Jochem Maas
4 things you need to look into: 1. is_file() and is_readable() 2. $argv (contains what was passed along with the cmdline) 3. __autoload() 4. include_path (.ini setting) I trust that you capable of STFW and RTFM well enough to take those 4 and make a start at creating something that resembles

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-03 Thread Marcus Bointon
On 3 Nov 2005, at 04:32, viraj wrote: does PHP really needs a function to validate an email address!! i doubt. because PHP is a language which provides number of string functions with regex capabilities to develop what ever pattern matching you want. Writing a regex for RFC2822 is not easy -

Re: [PHP] Issue with curl and ssl

2005-11-03 Thread Dan Rossi
Here is my code i am using, ive tried and tried, im still getting a no data sent error in the browser. ? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, https://mydomain/Default.asmx;); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch,

Re: [PHP] Issue with curl and ssl

2005-11-03 Thread Jochem Maas
can you get it to work without SSL? Dan Rossi wrote: Here is my code i am using, ive tried and tried, im still getting a no data sent error in the browser. ? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, https://mydomain/Default.asmx;); curl_setopt($ch, CURLOPT_VERBOSE, 1);

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-03 Thread Richard Heyes
Marcus Bointon wrote: The PEAR rfc822 class is pretty good, but it should be noted it's designed for parsing entire to, cc, bcc fields which may contain multiple addresses, and it's not quite as simple as asking it 'is this address ok'. News to me... if

[PHP] Re: ampersand in dom with utf-8

2005-11-03 Thread n.g.
seems that `DomDocument-createTextNode()' accepts only utf-8 string, try encode the text before pass it to that function. in browser side, you can view document property, browser generally allow you to specify any encoding used to view a page, try get familar with you browser first. On 11/3/05,

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-03 Thread Marcus Bointon
On 3 Nov 2005, at 14:16, Richard Heyes wrote: It even has a method specifically for normal email addresses of the form [EMAIL PROTECTED] Ah, well, that's good news. It's been a while since I looked at it. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL

[PHP] performance suggestions

2005-11-03 Thread James Benson
Dear group, can someone suggest the best way to do the following without writing some lengthy script that (possibly) could lead to performance issues, I have three DB fields in MySQL, each has a unique ID, I cannot think of any ways other than pulling each tables record then looping through

Re: [PHP] Issue with curl and ssl

2005-11-03 Thread Dan Rossi
Yes there somehow seems to be an issue with ssl. Does the curl extension rely on any ssl module in apache to work ? On 04/11/2005, at 12:34 AM, Jochem Maas wrote: can you get it to work without SSL? Dan Rossi wrote: Here is my code i am using, ive tried and tried, im still getting a no data

[PHP] PHP MYSQL Dynamic Select Boxes: Please Help

2005-11-03 Thread Adele Botes
I have 2 tables: products table product_id (INT 11 AUTOINCRE PRI) product_name (VARCHAR 255) product_desc (VARCHAR 255) color table color_id (INT 11 AUTOINCRE PRI) color (VARCHAR 255) image (VARCHAR 255) product_id (INT 11) I would like to create the first select box (pulling the options from

[PHP] PHP from the command line

2005-11-03 Thread Robbert van Andel
I run a linux webserver with Apache and PHP5. Does anyone out there know why a php script would work from the command line but fail when running it through a web browser? In particular, I'm trying to get a connection to an MSSQL server but PHP fails to connect when I run the script with a web

[PHP] SSL normal sessions stored differently?

2005-11-03 Thread Jesse Guardiani
Hello, I'm running php-4.3.2-19.ent under httpd-2.0.46-44.ent on Red Hat Enterprise Linux ES release 3 (Taroon Update 4). Here is my Session section of php.ini: -- [Session] session.save_handler = files session.use_cookies = 1 session.name = PHPSESSID

[PHP] if statement help

2005-11-03 Thread Jason Gerfen
I am trying to determine if it is worth my time to attempt a if statement similar to the following. I am asking because I have not found any references to something like this: if( ( !empty( $var1 ) ) || ( if( !empty( $var2 ) ) ( !empty( $var3 ) ) ) || ( $var1 == something ) ) { // do

Re: [PHP] if statement help

2005-11-03 Thread Brent Baisley
You only need one if. The parenthesis will evaluation order. if( ( !empty( $var1 ) || ( !empty( $var2 ) !empty( $var3 ) ) || $var1 == something ) On Nov 3, 2005, at 10:13 AM, Jason Gerfen wrote: I am trying to determine if it is worth my time to attempt a if statement similar to the

Re: Re: [PHP] PHP from the command line

2005-11-03 Thread php
Sorry, I failed to mention that I ran the command line script as the apache user. Robbert [EMAIL PROTECTED] wrote on 11/03/2005, 04:25:40 PM: the most obvious is db permissions -- but you should be able to get php to report a decent error so you know more precisely what the issue is. for

Re: [PHP] PHP and MSSQL on Linux

2005-11-03 Thread Rick Emery
Quoting [EMAIL PROTECTED]: Thanks for your help. I'd love to hear if you have any success with the RPMs. Unfortunately (?) everything worked for me out-of-the-box. On a fresh FC4 box, I installed httpd and php, then downloaded and installed the freetds and php-mssql rpms. I copied an

Re: [PHP] PHP and MSSQL on Linux

2005-11-03 Thread Rick Emery
Quoting [EMAIL PROTECTED]: An interesting development. I found some reference to running my PHP script from the command line to take Apache out of the picture. Lo and behold, the script worked. I was able to connect to the server. So the issue seems to be related with Apache. Any idea

Re: Re: [PHP] PHP and MSSQL on Linux

2005-11-03 Thread php
Yes, it was as the apache user. Sorry I failed to mention that. Rick Emery [EMAIL PROTECTED] wrote on 11/03/2005, 04:43:03 PM: Quoting [EMAIL PROTECTED]: An interesting development. I found some reference to running my PHP script from the command line to take Apache out of the

[PHP] Re: PHP MYSQL Dynamic Select Boxes: Please Help

2005-11-03 Thread James Benson
Try asking in a newsgroup or forum specific to javascript, that has nothing to do with PHP Adele Botes wrote: I have 2 tables: products table product_id (INT 11 AUTOINCRE PRI) product_name (VARCHAR 255) product_desc (VARCHAR 255) color table color_id (INT 11 AUTOINCRE PRI) color (VARCHAR

Re: [PHP] PHP and MSSQL on Linux

2005-11-03 Thread php
Well, I don't know why it didn't work on my test server, but when I installed the RPMs on my live server (I know, not the smartest thing to do, but I was desperate), the connection worked like a charm. Thanks to everyone who gave me some of their time. Robbert [EMAIL PROTECTED] wrote on

[PHP] Re: SSL normal sessions stored differently?

2005-11-03 Thread James Benson
Could it be you have two differnt domain names, PHP could be using a different cookie/session for each one. Jesse Guardiani wrote: Hello, I'm running php-4.3.2-19.ent under httpd-2.0.46-44.ent on Red Hat Enterprise Linux ES release 3 (Taroon Update 4). Here is my Session section of

[PHP] Pictureupload

2005-11-03 Thread twistednetadmin
I have made this script to upload pictures into a picturegallery on a website. The script works just as I expected, but with one huge flaw. It doesn't work from every users computer. I can upload pictures with no problem, but another user get's an errormessage. the other user emailed the picture

RE: [PHP] Pictureupload

2005-11-03 Thread Jay Blanchard
[snip] I have made this script to upload pictures into a picturegallery on a website. The script works just as I expected, but with one huge flaw. It doesn't work from every users computer. I can upload pictures with no problem, but another user get's an errormessage. the other user emailed the

Re: [PHP] Pictureupload

2005-11-03 Thread Richard Davey
Hi twistednetadmin, Thursday, November 3, 2005, 4:50:33 PM, you wrote: I have made this script to upload pictures into a picturegallery on a website. The script works just as I expected, but with one huge flaw. It doesn't work from every users computer. I can upload pictures with no

Re: [PHP] Pictureupload

2005-11-03 Thread twistednetadmin
The errormessage is from this part of the script. echo Result:br\n; echo Now that didn't seem to work... br\n Did you try a wrong format or size? br\n File that failed-- (.$_FILES['guildimage']['name '].)br; So it seems that the file is wrong type or size, but as it works with the same picture

RE: [PHP] Pictureupload

2005-11-03 Thread Jay Blanchard
[snip] The timeout part I have to check before I answer to, but I have 4mb connection and the last user it failed for has a 2mb connection. 300kb shouldn't make the script time out? Or could it? Where do I check the timeout settings btw? PHP.ini? Or can I run phpinfo() on it? [/snip] Check your

[PHP] Re: SSL normal sessions stored differently?

2005-11-03 Thread Jesse Guardiani
James Benson jb at jamesbenson.co.uk writes: Could it be you have two differnt domain names, PHP could be using a different cookie/session for each one. Yeah, but I'm setting the session_id manually. I've checked my session storage path and only one file is created with that session id.

[PHP] Re: SSL normal sessions stored differently?

2005-11-03 Thread Jesse Guardiani
Jesse Guardiani jesse at wingnet.net writes: James Benson jb at jamesbenson.co.uk writes: Could it be you have two differnt domain names, PHP could be using a different cookie/session for each one. Yeah, but I'm setting the session_id manually. I've checked my session storage

[PHP] Re: Pictureupload

2005-11-03 Thread James Benson
twistednetadmin wrote: I have made this script to upload pictures into a picturegallery on a website. The script works just as I expected, but with one huge flaw. It doesn't work from every users computer. I can upload pictures with no problem, but another user get's an errormessage.

[PHP] Can figure out whats wrong

2005-11-03 Thread Anders Gjermshus
I have I strange problem /bug in my function and I hoping someone can tell me whats wrong. This function return the timestamp for midnight Monday on the given week number. Its working fine, but on week 44 and week 45 it misses with 3600 seconds (1 hour) I wounder if it's a bug in strtotime() or

Re: [PHP] Re: Pictureupload

2005-11-03 Thread twistednetadmin
As I'm not the serveradmin I have only checked the phpinfo wich says: mysql.connect_timeout60 default_socket_timeout60 Keep-Alive 300 HTTP_KEEP_ALIVE 300 Timeouts Connection: 300 - Keep-Alive: 15 Wich of these I should work out from and what they all have to say, I'm not sure of though since

[PHP] Convert fake Unicode to real UTF-8

2005-11-03 Thread Andreas Jakl
I've been searching for quite some time now and tried several functions, but didn't find a solution. I hope somebody can point me in the right direction. The problem: Russian text is entered through a web form. It's a rather badly administrated external webserver with old versions of everything,

Re: [PHP] Can figure out whats wrong

2005-11-03 Thread Jochem Maas
freudian slip in the subject me thinks. Anders Gjermshus wrote: I have I strange problem /bug in my function and I hoping someone can tell me whats wrong. This function return the timestamp for midnight Monday on the given week number. Its working fine, but on week 44 and week 45 it misses

Re: [PHP] Convert fake Unicode to real UTF-8

2005-11-03 Thread Minuk Choi
Have you tried feeding that through htmlentities()? e.g. echo htmlentities(#1043;#1072;); see if that outputs what you want on the page. -Mk Andreas Jakl wrote: I've been searching for quite some time now and tried several functions, but didn't find a solution. I hope somebody can point me

[PHP] Re: Pictureupload

2005-11-03 Thread James Benson
twistednetadmin wrote: I have made this script to upload pictures into a picturegallery on a website. The script works just as I expected, but with one huge flaw. It doesn't work from every users computer. I can upload pictures with no problem, but another user get's an errormessage. the other

[PHP] small windows odd problem

2005-11-03 Thread matt VanDeWalle
hello all, I have just installed php-4.4.0 on my windows xp system and added the directory to the path c:/php-4.4.0-Win32 but I am having problems with the cli version of php. I can get into the program but after i type a bit of code, I try the following keys to get output but it never parses

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-03 Thread Philip Hallstrom
Sorry, as a follow-up, I just realized that from 'cat' I AM finally getting an error in the log file, which will perhaps help trace the issue: cat: stdout: Broken pipe Could be wrong, but I think you're getting that error because you are closing $pipes[0] which well, closes the pipe and

[PHP] Re: small windows odd problem

2005-11-03 Thread James Benson
If you mean entering code directly onto the command line then you dont need the opening/closing PHP tags, use something like... php -r echo 'hello world'; matt VanDeWalle wrote: hello all, I have just installed php-4.4.0 on my windows xp system and added the directory to the path

[PHP] Classes and Functions and If's (Problems Again)

2005-11-03 Thread Unknown Unknown
Hi everyone, i have some code that proccesses a login form. i have an object $DB which works only in SOME areas, this is the code: ?php require_once(Include.php); global $DB; $Username= $_REQUEST['Username']; $Password= $_REQUEST['Password']; $SQL= SELECT * FROM members WHERE Username='$Username'

Re: [PHP] Classes and Functions and If's (Problems Again)

2005-11-03 Thread Jasper Bryant-Greene
On Thu, 2005-11-03 at 18:37 -0500, Unknown Unknown wrote: Hi everyone, i have some code that proccesses a login form. i have an object $DB which works only in SOME areas, this is the code: ?php require_once(Include.php); global $DB; There is no need to global $DB here. You are already in

Re: [PHP] Classes and Functions and If's (Problems Again)

2005-11-03 Thread Robin Vickery
On 11/4/05, Unknown Unknown [EMAIL PROTECTED] wrote: Hi everyone, i have some code that proccesses a login form. i have an object $DB which works only in SOME areas, this is the code: [...] $DB=membersp; $SQL=SELECT ID FROM membersonline WHERE ID='$ID' ; $DB-Query($SQL); [...] i get an

Re: [PHP] Re: Pictureupload

2005-11-03 Thread comex
if (isset($_POST['submit'])) //If you push the submit-button Maybe the user pressed ENTER instead of clicking the button. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] client server question

2005-11-03 Thread bruce
hi... a rather basic question. i'm looking for examples of client/server apps. i'm also looking for input as to what's the best way to implement the underlying messaging protocols. i've started looking at soap/rpc, but i'm not sure as to how these protocols would fit/work.. the client/server

[PHP] to the freelancers!!

2005-11-03 Thread bruce
Hi, Just a quick question. Had a conversation with a person who works for a non-profit, and she was describing some of her dealings with obtaining grants for the development of 'open source' apps.Got me to thinking. If a company sponsored the initial development of an 'open source' kind of app

RE: [PHP] Re: Email Validation built-in? RFC

2005-11-03 Thread bruce
just to add my 0.02 worth to this conversation after throwing things at the wall regarding email verification/validation, i finally decided to cheat. i went with using the perl/cpan email function (can't recall right now) and created a wrapper around it. the perl function has been around alot

Re: [PHP] PHP from the command line

2005-11-03 Thread David Tulloh
Many linux distributions use a different php config file for the apache and cli versions. Using two different configurations might explain the problems you are seeing. David Robbert van Andel wrote: I run a linux webserver with Apache and PHP5. Does anyone out there know why a php script

RE: [PHP] PHP from the command line

2005-11-03 Thread bruce
what's the error that you're getting from the web php app... also, what do you get from the php_info() for the web app? this tells you a great deal of information regarding your php/web setup (if you didn't already know!) get us the information and we can help track down your issue... also, is

RE: [PHP] PHP from the command line

2005-11-03 Thread Robbert van Andel
From the web, all I get is that the connection failed. Nothing more useful than that. PHP_INFO tells me that it sees the MS SQL ini file and the MS SQL configuration settings are displayed further down the list. The username and password work in the script because I am able to connect using the

RE: [PHP] PHP from the command line

2005-11-03 Thread bruce
ok.. show us the connection code you're using to access the db.. -bruce -Original Message- From: Robbert van Andel [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 8:37 PM To: [EMAIL PROTECTED]; 'David Tulloh' Cc: php-general@lists.php.net Subject: RE: [PHP] PHP from the

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-03 Thread Curt Zirzow
On Thu, 03 Nov 2005 13:14:48 -0800, Philip Hallstrom wrote: ... Anyway, on FreeBSD 5.4 running CLI PHP 5.0.5 with your previously sent script I get output of: 10240 10240 anyway, thought that might be helpful... ... The output is: 10240 6144 which makes up exactly the

[PHP] Re: Convert fake Unicode to real UTF-8

2005-11-03 Thread n.g.
UTF-8. In the MySQL-Table the text gets converted to something like #1043;#1072; as an ASCII text. where did you see this, phpmyadmin or mysql cli ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP from the command line

2005-11-03 Thread Jasper Bryant-Greene
On Thu, 2005-11-03 at 20:58 -0800, bruce wrote: ok.. show us the connection code you're using to access the db.. I think you're on the wrong track. The connection code is known good because it works in CLI mode. What I would like to see is any notable differences between the output of