php-general Digest 12 Sep 2006 12:56:28 -0000 Issue 4343

2006-09-12 Thread php-general-digest-help
php-general Digest 12 Sep 2006 12:56:28 - Issue 4343 Topics (messages 241638 through 241656): Re: Is SOAP not really enabled? 241638 by: Ryan Creaser 241641 by: Paul Scott Help with OpenSSL Function 241639 by: Shanon Swafford Re: FUNCTION TO CHECK IMAGE

[PHP] register globals on

2006-09-12 Thread Zbigniew Szalbot
Hello again, Can I ask a general question? One of the website that we have built was constructed using register globals. Thanks to that we set the language for browsing the website by determining user's browser language and then also (I think) it is used to remember some other choices users make

Re: [PHP] register globals on

2006-09-12 Thread Chris
Zbigniew Szalbot wrote: Hello again, Can I ask a general question? One of the website that we have built was constructed using register globals. Thanks to that we set the language for browsing the website by determining user's browser language and then also (I think) it is used to remember some

Re: [PHP] register globals on

2006-09-12 Thread Zbigniew Szalbot
Hello again, On Tue, 12 Sep 2006, Chris wrote: I thought I would ask your opinion before we make any decision. Is it really so that without register globals, such things as displaying information from databases based on the initial choice of languages is not an option? I am not a

Re: [PHP] register globals on

2006-09-12 Thread Larry Garfield
On Tuesday 12 September 2006 01:16, Zbigniew Szalbot wrote: Hello again, Can I ask a general question? One of the website that we have built was constructed using register globals. Thanks to that we set the language for browsing the website by determining user's browser language and then also

Re: [PHP] register globals on

2006-09-12 Thread Chris
Zbigniew Szalbot wrote: Hello again, On Tue, 12 Sep 2006, Chris wrote: I thought I would ask your opinion before we make any decision. Is it really so that without register globals, such things as displaying information from databases based on the initial choice of languages is not an option?

Re: [PHP] register globals on

2006-09-12 Thread J R
there are many ways you can keep information. now if you must really use global. you can still use global even if the server is set to global off by using $_GLOBAL or using globals decleration. example: $test = 'i'm global'; function f1() { echo $_GLOBAL['test']; // should display i'm global

Re: [PHP] register globals on

2006-09-12 Thread J R
correction: $GLOBALS not $_GLOBAL :) cheers On 9/12/06, J R [EMAIL PROTECTED] wrote: there are many ways you can keep information. now if you must really use global. you can still use global even if the server is set to global off by using $_GLOBAL or using globals decleration. example:

[PHP] Mirror url

2006-09-12 Thread Peter Lauri
Hi, My client wants an affiliate system developed. I already have an affiliate system that works, but I need to extend it a little. My client want that the affiliate like should be something like: www.domain.com/rosegarden where rosegarden is the affiliates choosen affiliate tracking.

Re: [PHP] Mirror url

2006-09-12 Thread Stut
Peter Lauri wrote: My client wants an affiliate system developed. I already have an affiliate system that works, but I need to extend it a little. My client want that the affiliate like should be something like: www.domain.com/rosegarden where rosegarden is the affiliates choosen affiliate

RE: [PHP] Mirror url

2006-09-12 Thread Peter Lauri
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:11 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Mirror url Peter Lauri wrote: My client wants an affiliate system developed. I already have an affiliate system that

[PHP] Built-in Interface to rewrite empty() ?

2006-09-12 Thread Norbert Wenzel
Hi, I think I once knew a PHP5 interface, which forces a class to implement a function empty(). If an object $myObject implements this interface, it should be possible to call empty($myObject) as it seems to work with the interface Countable, which does the same for count(). The problem is

Re: [PHP] DOM - parse HTML document

2006-09-12 Thread Satyam
- Original Message - From: Leonidas Safran [EMAIL PROTECTED] By the way, because I found it strange to have more than one field with the same id, I looked on the famous selfhtml tutorial website http://de.selfhtml.org which says that unique id is only mandatory for css, but not for

[PHP] undefined function bindtextdomain()

2006-09-12 Thread Zbigniew Szalbot
Hello, I am trying to setup vexim (admin panel for handling domains in exim) and I am getting an error that I thought I would ask you to help me troubleshoot if possible. Namely, when I start apache and try to open vexim panel, apache shows no errors (just a blank page) but in the error log I

RE: [PHP] register globals on

2006-09-12 Thread Ford, Mike
On 12 September 2006 08:18, Larry Garfield wrote: [...] In any vaguely recent version of PHP, you get five super-global array variables: $_GET - any parameters passed in the GET string. $_POST - any parameters passed in the body of a POST query. $_REQUEST - The two above merged. I

[PHP] mail() help

2006-09-12 Thread suresh kumar
Hi, I am using php mail function to send mails to our customers.but when i send mail to them.it is getting received in customers bulk folder .i want mail to get received in customers inbox.i dont know the reason why its getting stored in bulk folder. i attached the

Re: [PHP] mail() help

2006-09-12 Thread David Tulloh
Your email is going to the bulk mail folder because the email provider believes that it's spam. It's nothing specifically wrong with your email, there is no this isn't spam flag, otherwise everyone would set it. To figure out why the email is being marked as spam, check the program that is doing

RE: [PHP] mail() help

2006-09-12 Thread Peter Lauri
What are you doing on this line: $headers .= 'From: MyADTV asureshkumar_1983'@yahoo.co.in' . \r\n; Should it not be: $headers .= 'From: MyADTV [EMAIL PROTECTED]' . \r\n; ? /Peter www.lauri.se - personal web site www.dwsasia.com - company web site -Original Message- From: suresh

RE: [PHP] register globals on

2006-09-12 Thread tedd
At 12:55 PM +0100 9/12/06, Ford, Mike wrote: Correction: $_GET - any parameters passed in the GET string. $_POST - any parameters passed in the body of a POST query. $_COOKIE - Any values sent by the browser as a cookie. $_REQUEST - The *three* above merged. I'm not sure whether

Re: [PHP] error_log does not work

2006-09-12 Thread Merlin
Chris schrieb: Merlin wrote: Hi there, I can not find a way to get this working on one server of mine. The error_log() funciton does not result in an entry to this log. The log exists and php.ini is configured to write error warnings out (so it does on system warnings). The same thing

[PHP] Going from PHP4 to PHP5

2006-09-12 Thread Brian Dunning
I'm considering upping my production server from 4 to 5. There are too many sites to test everything in 5 first. Is there a good source I can go to to find out what kinds of problems to expect? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Going from PHP4 to PHP5

2006-09-12 Thread Paul Scott
On Tue, 2006-09-12 at 08:29 -0700, Brian Dunning wrote: I'm considering upping my production server from 4 to 5. There are too many sites to test everything in 5 first. Is there a good source I can go to to find out what kinds of problems to expect? Don't really know of sites that will

[PHP] Neural Networks API (C#, PHP)

2006-09-12 Thread hintea_dan
Hi everyone, For those of you that are interested, I wrote a Neural Networks Application Programming Interface (API), for now versions in C# and PHP. The API contains classes for creating and manipulating NNs, for backpropagation and for data normalization. For details, documentation and free

[PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B
Hello, I need to copy, open or manipulate a gif images that is hosted in a https server. But when i try to do this, i recive a warning like this: *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream: Invalid argument in . I recive a similar message if i use:

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread Robert Cummings
On Tue, 2006-09-12 at 12:27 -0600, R B wrote: Hello, I need to copy, open or manipulate a gif images that is hosted in a https server. But when i try to do this, i recive a warning like this: *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream: Invalid argument

Re: [PHP] DOM - parse HTML document

2006-09-12 Thread Leonidas Safran
Hello Satyam, That is correct but it is not complete. Everything that relies on a unique id would fail, CSS amongst others(which is what this article covers), but not the only one. Basically there are two functions to get elements by id or name: getElementById and getElementsByName.

Re: [PHP] mail() help

2006-09-12 Thread Christopher Weldon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 suresh kumar wrote: Hi, I am using php mail function to send mails to our customers.but when i send mail to them.it is getting received in customers bulk folder .i want mail to get received in customers inbox.i dont know the reason why

[PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
Ave, I¹m getting really frustrated with this. How do I get PHP to open/read a file which is on a Share, mounted on Mac OS X. My Mac OS X is connected to a Windows 2003 Server... A Shared Folder remains mounted on my Mac OS X and I need PHP to read a file off that share. But it won¹t! I just

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
On Tuesday 12 September 2006 16:27, Rahul S. Johari wrote: Ave, I¹m getting really frustrated with this. How do I get PHP to open/read a file which is on a Share, mounted on Mac OS X. My Mac OS X is connected to a Windows 2003 Server... A Shared Folder remains mounted on my Mac OS X and I

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread John Nichel
Rahul S. Johari wrote: Ave, I¹m getting really frustrated with this. How do I get PHP to open/read a file which is on a Share, mounted on Mac OS X. My Mac OS X is connected to a Windows 2003 Server... A Shared Folder remains mounted on my Mac OS X and I need PHP to read a file off that share.

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B
It's not a syntaxis problem. On 9/12/06, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2006-09-12 at 12:27 -0600, R B wrote: Hello, I need to copy, open or manipulate a gif images that is hosted in a https server. But when i try to do this, i recive a warning like this: *Warning*:

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
In my Windows 2003 Server I've given the Mac OS X user all the permissions possible for that Share. Is there something I have to do in php as far as permissions are concerned? On 9/12/06 5:31 PM, John Nichel [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: Ave, I¹m getting really

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
On Tuesday 12 September 2006 16:33, Rahul S. Johari wrote: In my Windows 2003 Server I've given the Mac OS X user all the permissions possible for that Share. Is there something I have to do in php as far as permissions are concerned? On 9/12/06 5:31 PM, John Nichel [EMAIL PROTECTED] wrote:

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
Permissions have been set on the Windows Server for the Mac user... And all permissions have been given to him. This is my code.. ?php #Check is DBF Exists $filename = /Volumes/foresight/2qc0831.dbf; if (file_exists($filename)) { echo brbr$filename exists; } else { echo brbrThe file

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
If I hit 'Get Info' on the share folder, a file within that folder, or even the DBF I'm trying to open... Mac OS X tells me that I have 'Read Write' access to it. Basically All permissions have been provided to the Mac OS X user for that share. This is the error I get: Warning: dbase_open()

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread John Nichel
Rahul S. Johari wrote: Permissions have been set on the Windows Server for the Mac user... And all permissions have been given to him. This is my code.. ?php #Check is DBF Exists $filename = /Volumes/foresight/2qc0831.dbf; if (file_exists($filename)) { echo brbr$filename exists; } else {

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
On Tuesday 12 September 2006 16:45, Rahul S. Johari wrote: If I hit 'Get Info' on the share folder, a file within that folder, or even the DBF I'm trying to open... Mac OS X tells me that I have 'Read Write' access to it. Basically All permissions have been provided to the Mac OS X user for

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
As a matter of fact... I'm trying to do file_exists...and it says the file does not exist in the given location... And that's because my path isn't correct. I just don't know what path I need to specify for a shared server folder on a mac os x. On 9/12/06 5:53 PM, Ray Hauge [EMAIL PROTECTED]

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
You're talking about the DBF Exists function... It echo's out that the file does not exist. Which is the whole problem. I've tried specifying different kinds of files that are in that folder... Any file I specify... It gives out that the file does not exist. That's because I can't get my path to

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
Hmmm... That's odd. I would use your terminal program, then change directory to the location of the file, and do pwd. That should give you your working directory. If you can get to it on OSX, and PHP is on OSX, then PHP should be able to see the file in the same path. -- Ray Hauge

[PHP] Filter MS Word Garbage

2006-09-12 Thread Kevin Murphy
I have a web form where trusted people will be inputing information that they usually copy/paste out of MS Word. While the people are trusted... MS Word isn't. I keep getting garbage characters in there, usually associated with Smart Quotes. If I take the content out of the DB, throw it

Re: [PHP] DOM - parse HTML document [solved]

2006-09-12 Thread Leonidas Safran
Hello all, I have found a way... $doc = new DomDocument(); $doc-loadHTMLFile($source[url]); $elements = $doc-getElementsByTagName(tr); $i = 0; while( $elements-item($i) ){ if( $elements-item($i)-hasAttributes() preg_match(/td[0|1]/,$elements-item($i)-getAttribute(id)) 0 ){ echo

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
I did exactly that... Used Terminal to find the correct path. Did pwd in terminal window where my file is located. And this is what I got: /Volumes/foresight Which is what I have used in php to specify the path. But it still says file doesn't exist. On 9/12/06 6:05 PM, Ray Hauge [EMAIL

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B
I think it's a security https problem. I was reading that with IIS, you can't use fopen in a https server... I think i have this problem also with copy... Some ideas? On 9/12/06, R B [EMAIL PROTECTED] wrote: It's not a syntaxis problem. On 9/12/06, Robert Cummings [EMAIL PROTECTED]

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
You could try getting a directory listing with PHP to see if you can see what files are in there, or if you can access that directory through PHP. http://us2.php.net/manual/en/function.opendir.php -- Ray Hauge Programmer/Systems Administrator American Student Loan Services

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Stephen Edberg
Is PHP configured to allow access to /Volumes directory? Check doc_root, open_basedir in your php.ini: http://us3.php.net/manual/en/ini.php steve On Tue, 12 Sep 2006, Rahul S. Johari wrote: I did exactly that... Used Terminal to find the correct path. Did pwd in terminal

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
My doc_root is empty and I don't have a open_basedir specified in my php.ini What should their values be set to for me to do what I'm trying to do? Thanks! On 9/12/06 6:19 PM, Stephen Edberg [EMAIL PROTECTED] wrote: Is PHP configured to allow access to /Volumes directory? Check doc_root,

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
That was a good idea. I tried that... It was showing nothing for /Volumes/foresight ... But it did show the contents of /Volumes... And interestingly, 'foresight' was also listed there, but it's filetype was blank... Others had like dir or link or file But foresight's filetype had nothing in

Re: [PHP] undefined function bindtextdomain()

2006-09-12 Thread Chris
Zbigniew Szalbot wrote: Hello, I am trying to setup vexim (admin panel for handling domains in exim) and I am getting an error that I thought I would ask you to help me troubleshoot if possible. Namely, when I start apache and try to open vexim panel, apache shows no errors (just a blank page)

Re: [PHP] Going from PHP4 to PHP5

2006-09-12 Thread Chris
Brian Dunning wrote: I'm considering upping my production server from 4 to 5. There are too many sites to test everything in 5 first. Is there a good source I can go to to find out what kinds of problems to expect? Do a search on google - there are tons of blog posts about problems / issues

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread J R
i'm just going to guess. check your settings if it allows to open external files, especifically allowed to fopen url. http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen hth, john On 9/13/06, R B [EMAIL PROTECTED] wrote: I think it's a security https problem. I was reading

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Chris
Rahul S. Johari wrote: That was a good idea. I tried that... It was showing nothing for /Volumes/foresight ... But it did show the contents of /Volumes... And interestingly, 'foresight' was also listed there, but it's filetype was blank... Others had like dir or link or file But foresight's

Re: [PHP] Filter MS Word Garbage

2006-09-12 Thread Paul Scott
On Tue, 2006-09-12 at 15:02 -0700, Kevin Murphy wrote: Is there some way I can filter/convert this information before it gets to the mysql database? Best way to do this is to send it through catdoc. Not sure if the Word upload is HTML(ish) or a Word doc, but if the latter, then catdoc is

Re: [PHP] Filter MS Word Garbage

2006-09-12 Thread Michael B Allen
On Tue, 12 Sep 2006 15:02:08 -0700 Kevin Murphy [EMAIL PROTECTED] wrote: I have a web form where trusted people will be inputing information that they usually copy/paste out of MS Word. While the people are trusted... MS Word isn't. I keep getting garbage characters in there, usually

[PHP] Affiliate system

2006-09-12 Thread Peter Lauri
Hi guys, I am reviewing an affiliate system that I created a while ago. I am using a very simple method to do this, but I am curious if there is any better system (better I mean less missed affiliate purchases). 1. User click on affiliate link http://thedomain.com/?a=1234 2. The if $_GET['a'] is