Re: [PHP] import spreadsheet

2007-07-30 Thread Angelo Zanetti
Richard Lynch wrote: On Fri, July 27, 2007 4:01 am, Angelo Zanetti wrote: Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table t

[PHP] Wordpress Theme Switcher plugin redirect modification

2007-07-30 Thread Erik Gyepes
Hello, I would like to modify the Theme Switcher Plugin for Wordpress (http://dev.wp-plugins.org/wiki/ThemeSwitcher). When I currently request the page to switch the theme (for example: mydomain.com/?wptheme=My+Theme) I'm redirected to the index.php, but instead I would like to redirect back

[PHP] Re: Re: Rules of Engagement

2007-07-30 Thread David Robley
Colin Guthrie wrote: > Daniel Brown wrote: >> As a relatively-new contributor to this list (read: under 2 >> years), I realize that I have no business requesting a change, but >> I'll breech etiquette and hope for the best. >> >> Can we update the filters on the list to have the reply-to

[PHP] Re: Re: The Official OT "Name Tedd's Grandson" Thread

2007-07-30 Thread Michelle Konzack
Hello *, Am 2007-07-26 11:33:52, schrieb Robert Cummings: > On Thu, 2007-07-26 at 16:24 +0100, Colin Guthrie wrote: > > M. Sokolewicz wrote: > > > It's not the only, about 50% of threads have it, and another 50% don't. > > > For instance, the DOM thread does not have it, this thread has it in > >

[PHP] Unit testing

2007-07-30 Thread Emil Edeholt
Hi What (preferably open source) tools are the best for unit testing php? JUnit is not available for PHP from what I can see? Thanks for your time! -- Best Regards Emil Edeholt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rules of Engagement

2007-07-30 Thread Lester Caine
Nathan Nobbe wrote: gmail seems to consume these 'double replies' transparently w/ its 'conversations'. i never notice them :) sorry to everyone who gets hit w/ the extra mail when i hit reply-to-all. youll have to forgive my laziness, its just easier that way. Interestingly your reply is du

Re: [PHP] Unit testing

2007-07-30 Thread Thijs Lensselink
On Mon, 30 Jul 2007 13:57:08 +0200, Emil Edeholt <[EMAIL PROTECTED]> wrote: > Hi > > What (preferably open source) tools are the best for unit testing php? > JUnit is not available for PHP from what I can see? > > Thanks for your time! > > -- > > Best Regards Emil Edeholt > > -- > PHP General

[PHP] Changing URLs from Relative to Absolute

2007-07-30 Thread Tom Chubb
Dear list, I was recently trying to write a script where a user copy and pastes their HTML code to display something on a listings site and tried to find a way to change the URL of an image from relative to absolute. For example becomes http://domain.com/images/1.jpg";>. That is easy enough and I

[PHP] $HTTP_POST_FILES always produces empty value.

2007-07-30 Thread Patrik Hasibuan
Dear my friends I don't understand why $HTTP_POST_FILES always produces empty value. This is my code === //cgi/cgiprodukcatalogadmin.php "; echo "berkasgambarproduk: $berkasgambarproduk"; ?> === This is the output in my Opera internet browser: === gambarproduk: /tmp/phppd6DZy berkasgambarprod

[PHP] Re: $HTTP_POST_FILES always produces empty value.

2007-07-30 Thread David Robley
Patrik Hasibuan wrote: > Dear my friends > > I don't understand why $HTTP_POST_FILES always produces empty value. > > This is my code > === > //cgi/cgiprodukcatalogadmin.php > $berkasgambarproduk=$HTTP_POST_FILES['gambarproduk']['name']; > echo "gambarproduk: $gambarproduk"; > echo "berkasg

[PHP] Re: Changing URLs from Relative to Absolute

2007-07-30 Thread Al
In general, you must have patterns and code that deal with most common errors. As to your example, your regex pattern must not be good. Is your complete string simply: ? If so, then "%src\x20*=\x20*\"*([\w/]+\x2Ejpg)%i" should do it for you. \x20*, may have 0 or more spaces; \x2E = period; "()

Re: [PHP] Changing URLs from Relative to Absolute

2007-07-30 Thread Richard Heyes
I was recently trying to write a script where a user copy and pastes their HTML code to display something on a listings site and tried to find a way to change the URL of an image from relative to absolute. For example becomes http://domain.com/images/1.jpg";>. That is easy enough and I created a

Re: [PHP] Re: $HTTP_POST_FILES always produces empty value.

2007-07-30 Thread Patrik Hasibuan
Hi David, it's solved. Your advise solved my problem. Thank you very much. === On Mon, 30 Jul 2007 22:03:06 +0930 David Robley <[EMAIL PROTECTED]> wrote: > Patrik Hasibuan wrote: > > > Dear my friends > > > > I don't understand why $HTTP_POST_FILES always produces empty value. > > > > T

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread David Powers
Larry Garfield wrote: copyright infringement is NOT "taking something without paying for it". Copyright infringement is duplicating "an expression of an idea that is fixed in a medium" without the permission of the copyright holder. Money doesn't enter into it. If the licence under which th

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
David Powers wrote: When somebody distributes copies of my eBooks to others, they break the terms of the licence. They also deprive me of income, as do bit torrent sites that assist in that distribution. It might not be stealing in a strict legal sense, but it results in financial harm to me. S

Re: [PHP] Re: $HTTP_POST_FILES always produces empty value.

2007-07-30 Thread Patrik Hasibuan
Hi David, it's solved. Your advise solved my problem. Thank you very much. === On Mon, 30 Jul 2007 22:03:06 +0930 David Robley <[EMAIL PROTECTED]> wrote: > Patrik Hasibuan wrote: > > > Dear my friends > > > > I don't understand why $HTTP_POST_FILES always produces empty value. > > > > T

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread tedd
At 8:50 PM -0500 7/29/07, Larry Garfield wrote: You can call whatever you want anything you want, but that doesn't make it true. For instance, no, copyright infringement is NOT "taking something without paying for it". Copyright infringement is duplicating "an expression of an idea that is fixe

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread David Powers
Stut wrote: This conversation is getting pointless guys. I agree that it's going round in circles, and is best left alone. * Nobody thinks copyright infringement is a good thing and nobody is denying that it causes harm to every layer of the commercial chain that exists to create and publish

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
tedd wrote: At 8:50 PM -0500 7/29/07, Larry Garfield wrote: If copyright infringement were "taking something without paying for it", then anyone who's ever installed PHP is guilty of copyright infringement unless they sent Rasmus a check. That is, of course, nonsense. No, it's not nonsense

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
tedd wrote: But, the importance here is one of euphemism. Calling the act of stealing something more palatable, such as copyright infringement, simply makes it easier to do. Conversely, calling the act of copyright infringement something less palatable, such as stealing, simply makes it hard

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread tedd
At 3:14 PM +0100 7/30/07, Stut wrote: This conversation is getting pointless guys. The argument being had is about whether copyright infringement should be called stealing or theft. Personally I don't believe it should, but going back and forth on a public mailing list is not going to do anyone

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Crayon Shin Chan
On Monday 30 July 2007 23:49, tedd wrote: > The opposite of BUYING is STEALING I think you meant SELLING. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread tedd
At 12:50 AM +0800 7/31/07, Crayon Shin Chan wrote: On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. -- Crayon Crayon: No, if you want something that you don't have -- you have three choices: a) go without; b) BUY it; c) STEAL it.

[PHP] Reading registry values

2007-07-30 Thread \"Crash\" Dummy
I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? Also, is it possible to use ActiveX objects with PHP? The above mentioned script

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread carlton . whitehead
So, when a person travels to some unfamiliar place, and said person wants to have a car for private transportation purposes and does not have one nearby, said person must: a) go without; b) BUY it; c) STEAL it. What I'm trying to say here is: "Kindly stop polluting my mailbox with this ridicul

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Robert Cummings
On Mon, 2007-07-30 at 14:08 -0400, tedd wrote: > At 12:50 AM +0800 7/31/07, Crayon Shin Chan wrote: > >On Monday 30 July 2007 23:49, tedd wrote: > > > >> The opposite of BUYING is STEALING > > > >I think you meant SELLING. > > > >-- > >Crayon > > Crayon: > > No, if you want something that you do

RE: [PHP] Reading registry values

2007-07-30 Thread Jay Blanchard
[snip] I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? [/snip] PHP is server-side and cannot read client side info. You would nee

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
Crayon Shin Chan wrote: On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. I think he meant alternative not opposite. I'd laugh for years if someone tried to defend the position that stealing is the opposite of buying. Then I'd send the

Re: [PHP] Reading registry values

2007-07-30 Thread Stut
Jay Blanchard wrote: [snip] I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? [/snip] PHP is server-side and cannot read client s

Re: [PHP] Reading registry values

2007-07-30 Thread tg-php
I'm not sure that there's actually anything you'd need to access in the server registry (and certainly no registry in Linux if you're also transitioning from Windows to Linux). And depending on what the ActiveX control your ASP pages accessed actually does, it may be better to recreate it in P

Re: [PHP] Reading registry values

2007-07-30 Thread \"Crash\" Dummy
> PHP is server-side and cannot read client side info. You would need to > use something client-side, like JavaScript. JavaScript cannot read the > registry either. It's a security thing. ASP is also server side and the registry I want to read is on the server platform. I am not trying to read the

Re: [PHP] Reading registry values

2007-07-30 Thread \"Crash\" Dummy
> "Crash": The COM extension (http://php.net/com) should let you do that > in essentially the same way ASP does. Thank you. More stuff to confuse me! :-) -- Crash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Reading registry values

2007-07-30 Thread Richard Davey
Hi, Monday, July 30, 2007, 7:40:52 PM, you wrote: > I'm not sure that there's actually anything you'd need to access in > the server registry (and certainly no registry in Linux if you're > also transitioning from Windows to Linux). And depending on what the > ActiveX control your ASP pages acces

Re: [PHP] Reading registry values

2007-07-30 Thread Andrew Ballard
I'm assuming you are intending to read the web server registry for configuration purposes, not the client's registry. Look at the section on COM in the manual. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
tedd wrote: At 5:46 PM +0100 7/30/07, Stut wrote: tedd wrote: But, the importance here is one of euphemism. Calling the act of stealing something more palatable, such as copyright infringement, simply makes it easier to do. Conversely, calling the act of copyright infringement something les

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread tedd
At 5:46 PM +0100 7/30/07, Stut wrote: tedd wrote: But, the importance here is one of euphemism. Calling the act of stealing something more palatable, such as copyright infringement, simply makes it easier to do. Conversely, calling the act of copyright infringement something less palatable,

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread tedd
At 5:43 PM +0100 7/30/07, Stut wrote: Copyright exists to prevent unauthorised *usage* of material. It does not exist to prevent the unauthorised taking of instances of that material - that's what the laws regarding theft are for. Well, when I *use* my neighbor's car without his authorization

Re: Re[2]: [PHP] Reading registry values

2007-07-30 Thread tg-php
Yeah, that could be one thing that the ASP/ActiveX combo need to access the registry for.. but if he's replacing ASP with PHP and if the ActiveX control doesn't do anything he can't re-create in PHP, then there's no need to verify that anything relating to ASP or ActiveX is registered and genui

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread tedd
At 2:30 PM -0400 7/30/07, Robert Cummings wrote: On Mon, 2007-07-30 at 14:08 -0400, tedd wrote: At 12:50 AM +0800 7/31/07, Crayon Shin Chan wrote: >On Monday 30 July 2007 23:49, tedd wrote: > >> The opposite of BUYING is STEALING > >I think you meant SELLING. > >-- >Crayon Crayon:

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we have. There is no truth in perception. T

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread tedd
At 7:37 PM +0100 7/30/07, Stut wrote: Crayon Shin Chan wrote: On Monday 30 July 2007 23:49, tedd wrote: The opposite of BUYING is STEALING I think you meant SELLING. I think he meant alternative not opposite. I'd laugh for years if someone tried to defend the position that stealing is the

Re: Re[2]: [PHP] Reading registry values

2007-07-30 Thread \"Crash\" Dummy
> I can't think of anything that a PHP app is going to need access to > the registry for, so I'm trying to verify that there actually is a need > for him to access the registry and/or use ActiveX via PHP. I'm > guessing that he doesn't need to at all. I don't _need_ it for anything in the scripts

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Robert Cummings
On Mon, 2007-07-30 at 15:06 -0400, tedd wrote: > At 2:30 PM -0400 7/30/07, Robert Cummings wrote: > >On Mon, 2007-07-30 at 14:08 -0400, tedd wrote: > >> At 12:50 AM +0800 7/31/07, Crayon Shin Chan > > > > "Render unto Caesar the things which are Caesar's, and > > unto God the things that

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread tedd
At 8:23 PM +0100 7/30/07, Stut wrote: tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous state). But illusion all we hav

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Robert Cummings
On Mon, 2007-07-30 at 20:23 +0100, Stut wrote: > tedd wrote: > > At 2:30 PM -0400 7/30/07, Robert Cummings wrote: > >> Ownership is an illusion... What you have may be taken away at anytime > >> by the state (be it your own state or a victorious state that just > >> subjugated your previous state).

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
Robert Cummings wrote: On Mon, 2007-07-30 at 20:23 +0100, Stut wrote: tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Robert Cummings
On Mon, 2007-07-30 at 20:35 +0100, Stut wrote: > Robert Cummings wrote: > > On Mon, 2007-07-30 at 20:23 +0100, Stut wrote: > >> tedd wrote: > >>> At 2:30 PM -0400 7/30/07, Robert Cummings wrote: > Ownership is an illusion... What you have may be taken away at anytime > by the state (be it

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Robert Cummings
On Mon, 2007-07-30 at 15:33 -0400, tedd wrote: > At 8:23 PM +0100 7/30/07, Stut wrote: > >tedd wrote: > >>At 2:30 PM -0400 7/30/07, Robert Cummings wrote: > >>>Ownership is an illusion... What you have may be taken away at anytime > >>>by the state (be it your own state or a victorious state that j

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread tedd
> >Don't expect that only one living > >entity can envision such a permutation. Don't expect anyone with our limitations to be capable to determine the truth of that statement. The phone was independently envisioned by two distinct humans at the same time. The same is true of calculus. So

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
tedd wrote: > >Don't expect that only one living > >entity can envision such a permutation. Don't expect anyone with our limitations to be capable to determine the truth of that statement. The phone was independently envisioned by two distinct humans at the same time. The same is true of

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Robert Cummings
On Mon, 2007-07-30 at 15:44 -0400, tedd wrote: > > > >Don't expect that only one living > > > >entity can envision such a permutation. > >> > >> Don't expect anyone with our limitations to be capable to determine > >> the truth of that statement. > > > >The phone was independently envisioned by

[PHP] audio recorder

2007-07-30 Thread John Pillion
Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio recorder applets or similar that can easily be integrated with php?

Re: [PHP] audio recorder

2007-07-30 Thread Tijnema
On 7/31/07, John Pillion <[EMAIL PROTECTED]> wrote: > Not exactly a php question. but I'm doing the project in php, so does that > count? ;-) > > > > A client of mine wants a simple audio recorder for users to record a short > clip/message for other users. anyone recommend any simple audio recorder

RE: [PHP] audio recorder

2007-07-30 Thread John Pillion
> -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > Sent: Monday, July 30, 2007 4:25 PM > To: John Pillion > Cc: php-general@lists.php.net > Subject: Re: [PHP] audio recorder > > On 7/31/07, John Pillion <[EMAIL PROTECTED]> wrote: > > Not exactly a php question. but I'm doing

[PHP] Re: Reading registry values -Solved!

2007-07-30 Thread \"Crash\" Dummy
The bad news is that there are no intrinsic PHP functions for accessing the registry and my third party registry object is not a compatible COM object. The good news is that I can run an external VBS script with the Exec command that does everything I want and feeds the results back to the PHP scr

Re: [PHP] audio recorder

2007-07-30 Thread Tijnema
On 7/31/07, John Pillion <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Tijnema [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 30, 2007 4:25 PM > > To: John Pillion > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] audio recorder > > > > On 7/31/07, John Pillion <[EMAI

Re: [PHP] audio recorder

2007-07-30 Thread M. Sokolewicz
Tijnema wrote: On 7/31/07, John Pillion <[EMAIL PROTECTED]> wrote: Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio r

[PHP] Re: need insights on encrypting and uploading ASCII file using PHP

2007-07-30 Thread Dan
There's a lot of things you could do. You could use ssl and some sort of PGP on the server side hooked into the ssl, and a whole mess of other things. But that still won't guarentee who sent the file, as all the PGP stuff is done server side, digital signatures wouldn't mean anything. The bes

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Larry Garfield
On Monday 30 July 2007, David Powers wrote: > Larry Garfield wrote: > > copyright infringement is NOT "taking something > > without paying for it". Copyright infringement is duplicating "an > > expression of an idea that is fixed in a medium" without the permission > > of the copyright holder. Mo

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Tijnema
On 7/31/07, Larry Garfield <[EMAIL PROTECTED]> wrote: > On Monday 30 July 2007, David Powers wrote: > > Larry Garfield wrote: > > > copyright infringement is NOT "taking something > > > without paying for it". Copyright infringement is duplicating "an > > > expression of an idea that is fixed in a

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Larry Garfield
On Monday 30 July 2007, tedd wrote: > Our entire legal system is built on allowing (granting permission) > certain actions and not allowing (not granting permission) other > actions. > > You do not have permission to steal. And if someone has not granted > you the permission to use their whatever

[PHP] Re: Pirate PHP books online? - ENOUGH ALREADY

2007-07-30 Thread Chris Aitken
ong as > they've > been humans. Can we stick to facts when making logical arguments rather > than > completely made up nonsense? > > -- > Larry GarfieldAIM: LOLG42 > [EMAIL PROTECTED] ICQ: 6817012 > > "If nature has mad

Re: [PHP] Re: Pirate PHP books online? - ENOUGH ALREADY

2007-07-30 Thread Tijnema
gt; > > are just absurd. > > > > This from the man who just claimed that perpetual copyright for all > > decedents > > of an artist was a fundamental part of human existence for as long as > > they've > > been humans. Can we stick to facts when making l

Re: [PHP] audio recorder

2007-07-30 Thread Geoff Nicol
A service called AudioGenerator provides an online recording capability like you are describing via Flash. Their flash app is at: http://upload.audiogenerator.com/audio_recorder.swf Normally called with the code: http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#versi

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Crayon Shin Chan
On Tuesday 31 July 2007 02:08, tedd wrote: > No, if you want something that you don't have -- you have three > choices: a) go without; b) BUY it; c) STEAL it. Rubbish. You can borrow, lease, hire purchase, rent, and there are probably other options as well. -- Crayon -- PHP General Mailing L

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Crayon Shin Chan
On Tuesday 31 July 2007 02:45, tedd wrote: > Well, when I *use* my neighbor's car without his authorization it's > called "stealing" If your intention was not to keep the car on a permenant basis then you would probably be prosecuted for joyriding rather than stealing. > >How? Nobody is not bei

Re: [PHP] audio recorder

2007-07-30 Thread Richard Lynch
>> > On 7/31/07, John Pillion <[EMAIL PROTECTED]> wrote: >> >> Not exactly a php question. but I'm doing the project in php, so >> does >> that >> >> count? ;-) >> >> >> >> A client of mine wants a simple audio recorder for users to >> record a >> short >> >> clip/message for other users. anyone re

RE: [PHP] Reading registry values

2007-07-30 Thread Richard Lynch
On Mon, July 30, 2007 1:32 pm, Jay Blanchard wrote: > [snip] > I want to convert some ASP pages to PHP to go along with a transition > from IIS > to Apache. One of the ASP script functions involves reading data from > the > Windows registry. How does one read from the registry with PHP? > [/snip] >

Re: [PHP] Re: Changing URLs from Relative to Absolute

2007-07-30 Thread Richard Lynch
> Tom Chubb wrote: >> Dear list, >> I was recently trying to write a script where a user copy and pastes >> their >> HTML code to display something on a listings site and tried to find >> a way to >> change the URL of an image from relative to absolute. >> For example becomes http://domain.com/ima

Re: [PHP] $HTTP_POST_FILES always produces empty value.

2007-07-30 Thread Richard Lynch
On Mon, July 30, 2007 7:00 am, Patrik Hasibuan wrote: > I don't understand why $HTTP_POST_FILES always produces empty value. php.ini might have long names turned off. Try just $_FILES -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http:/

Re: [PHP] Wordpress Theme Switcher plugin redirect modification

2007-07-30 Thread Richard Lynch
On Mon, July 30, 2007 4:48 am, Erik Gyepes wrote: > I would like to modify the Theme Switcher Plugin for Wordpress > (http://dev.wp-plugins.org/wiki/ThemeSwitcher). When I currently > request > the page to switch the theme (for example: > mydomain.com/?wptheme=My+Theme) I'm redirected to the index.

Re: [PHP] Bizarre array create error

2007-07-30 Thread Richard Lynch
On Sun, July 29, 2007 5:49 pm, Ken Tozier wrote: > I'm trying to assign two fields of an object returned from a MySQL > query and have stumbled upon the most bizarre PHP bug where I can't > create two arrays in succession. > > Here's the MySQL query with two dummy fields to be filled in later > > s

Re: [PHP] $HTTP_POST_FILES always produces empty value.

2007-07-30 Thread Patrik Hasibuan
Thank you very much for your help, Richard. It's solved. On Tue, 31 Jul 2007 00:47:51 -0500 (CDT) "Richard Lynch" <[EMAIL PROTECTED]> wrote: > Try this: > > echo "_FILES:\n"; > var_dump($_FILES); > echo "\nHTTP_POST_FILES\n"; > var_dump($HTTP_POST_FILES); > > On Mon, July 30, 2007 7:00 am,

Re: [PHP] Objects

2007-07-30 Thread Richard Lynch
On Sun, July 29, 2007 12:45 pm, Nathan Nobbe wrote: > one of the hardest parts about using design patterns in reality is you > have > to be able to recognize a certain > problem and then you can begin to understand how to apply a particular > pattern or set of patterns to your > solution. Or, in m

Re: [PHP] Dealing with ImageMagick from PHP

2007-07-30 Thread Richard Lynch
On Sun, July 29, 2007 12:49 am, Eric Holt (PHP List) wrote: > Right now, I call ImageMagick from a "exec" call in PHP. When I first > > Now, after that long rambling... My question is this: Would I see a > big > speed improvement by using the ImageMagick extension built into PHP > (MagicWand, is

Re: [PHP] PHP Rating system

2007-07-30 Thread Richard Lynch
On Sun, July 29, 2007 1:41 pm, Chris Carter wrote: > I am trying for a php rating code that can utilized for a restaurant > requirement. First of all I am not sure if there is database that is > obvious > with rating system. In case it is or even if its not, is there some > site and > code availabl

Re: [PHP] Bizarre array create error

2007-07-30 Thread Tom Ray [Lists]
Paul Novitski wrote: At 7/29/2007 09:59 PM, Ken Tozier wrote: /*--*/ /* Next two lines are where the problem starts */ /* If I comment either of them out the script runs */ /* but