Re: [PHP] Is there a way to un include a file

2007-03-12 Thread Richard Lynch
No. You could perhaps wipe out *EVERYTHING* in $_GLOBALS, which would be the included file and anything in the main file[s] that went before. If you need an environment that is that "pure" for testing or something, you can run a different PHP process on each file. Otherwise, you simply have to a

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Edward Vermillion
http://rpmfind.net/linux/RPM/ Has all the rpm's for all the distros. How did you get FC4 on the computer? The disks should have the base rpm's for all of this, or you can download the ISO's from the fedora site. I *think* there's a gnome program in there somewhere that's kinda like the Wind

Fw: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
anyone else have anything to add? thanks, Jake On 3/12/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Anyone know of anything I can check? I've been trying different things all afternoon and I'm still getting the wrong date from strtotime. date() works fine. Thanks, Jake - Original M

Re: [PHP] server error or script error

2007-03-12 Thread Richard Lynch
On Thu, March 8, 2007 3:38 am, Ross wrote: > > include ('../phpscripts/connect.php'); > $id = $_GET['id']; > > $query = "SELECT * FROM mypdfs WHERE id =$id"; > > $result= mysql_query($query) or die('Error, query failed'); > > if (!mysql_num_rows($result)) > { >die("No matching records were fou

Re: [PHP] $35 to the first person who can do this XML-parsing PHP script

2007-03-12 Thread Richard Lynch
On Mon, March 12, 2007 8:05 pm, Myron Turner wrote: > Richard Lynch wrote: >> For something that simple in PHP4, I didn't even bother with the >> 50-line expat lib solution... >> >> A couple preg matches, or even just strtok and call it done... >> >> //assume file_get_contents is too "new"... >> //

Re: [PHP] Creating variable names from values

2007-03-12 Thread Richard Lynch
On Mon, March 12, 2007 7:57 pm, Robert Cummings wrote: > On Mon, 2007-03-12 at 19:30 -0500, Richard Lynch wrote: >> On Thu, March 8, 2007 11:56 am, Otto Wyss wrote: >> > From an arry I create a table like >> > >> >foreach ($persons as $key => $pers) { >> > echo " >> >... >> >

Re: [PHP] Monitoring download, detecting completion?

2007-03-12 Thread Richard Lynch
On Wed, March 7, 2007 6:02 pm, Skip Evans wrote: > I have a need to monitor a download from the > server to the client's machine. > > I'm not familiar with any mechanisms for doing so. > > If anyone has any hints to point me towards I'll > get a' researching. You cannot achieve 100% certainty here

Re: [PHP] Enclosing fields in MySQL queries with `" or '

2007-03-12 Thread Richard Lynch
On Wed, March 7, 2007 1:22 pm, Dotan Cohen wrote: >> A backtick (`) on the other hand is a mysql-ism. It allows you to >> use >> keywords as field names (eg `index`) amongst other things (including >> quoting strings). I *think* that this is actually SQL-92 specification, but don't quote me on tha

Re: [PHP] help with script needed

2007-03-12 Thread Richard Lynch
You could also just use: if (($i % 15) === 0) echo "FooBar"; elseif (($i % 3) === 0) echo "Foo"; elseif (($i % 5) === 0) echo "Bar"; 15 works because 3 and 5 are mutually prime or whatever it's called. The order matters, though, as moving the 15 "after" the other if tests would fail, as 3 and/or

Re: [PHP] php and javascript error

2007-03-12 Thread Richard Lynch
When you install IE, I think there is an option to get the developer JS tools that give better error messages... And there's some kind of setting in the preferences about showing JS errors. And maybe a JS console. Havent' used IE for so long, I forget what all there is, but I suspect you can wri

Re: [PHP] php and javascript error

2007-03-12 Thread Richard Lynch
On Thu, March 8, 2007 7:17 pm, jekillen wrote: > Yes I have been around the bend with Netscape and now, Fire Fox > javascript consoles. > Before I got it that I need to format web content text for Unix, I > went > crazy trying to interpret > Netscape console messages and the line numbers it said th

RE: [PHP] php and javascript error

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 9:21 am, tedd wrote: > At 5:28 PM +0100 3/7/07, [EMAIL PROTECTED] wrote: >> > PS: If you want your code to validate, change the & to & Add >> the >>> closing tag too. >>> PPS: It's advisable not to use the short tags, use >> of >in such a cases I usually use instead . >

Re: [PHP] stream_get_contents() quite slow

2007-03-12 Thread Nicholas Yim
Hello Francois Aichelbaum, mainly due to the slow network speed Best regards, === At 2007-03-13, 04:02:41 you wrote: === >Hi guys, > >I'm using stream_get_contents() to parse content of an HTTP session I >opened with fsockopen. My requests headers is just fine and transmission

Re: [PHP] Save and Continue

2007-03-12 Thread Richard Lynch
On Wed, March 7, 2007 10:39 am, Dan Shirah wrote: > I am trying to think through my new forms process. I want to allow a > customer to submit multiple orders using the same credit card. At > the > bottom of my form I will have a "Save" link and a "Save and Submit > Additional" link/checkbox. > >

Re: [PHP] Save and Continue

2007-03-12 Thread Richard Lynch
On Wed, March 7, 2007 11:31 am, Tijnema ! wrote: > But ofcourse you could add a lot of things to a shopping cart and > checkout > once > > btw, it's safer to use things like Paypal... Unless PayPal arbitrarily decides they don't like you, and shuts down your account, holding all your money in

Re: [PHP] create and save file to folder

2007-03-12 Thread Richard Lynch
On Wed, March 7, 2007 8:36 am, Ross wrote: > I am trying to create a file with php. I want to enter the value of a > string > into it and then browse (if possible) and save to a specified folder > with > the filename/extension (.php/.txt) entered in the dialog box. You can't do anything in PHP to

Re: [PHP] Class and subclass

2007-03-12 Thread Richard Lynch
I think he's claiming that if you typed it correctly, it should work. You haven't told us anything about the "not working" part... var_dump $this->myotherclass and see what's in it. On Wed, March 7, 2007 8:45 am, Alain Roger wrote: > Yes, for sure. > > On 3/7/07, Tijnema ! <[EMAIL PROTECTED]> wr

Re: [PHP] namespace equivalent in PHP

2007-03-12 Thread Richard Lynch
On Wed, March 7, 2007 8:03 am, Alain Roger wrote: > Coming from C++ world, i would like to know what in PHP, is the > equivalent > of namespace in C++ ? Nothing. Closest we have is wrapping yet another class around everything. PHP is a "simple" language, on purpose. C++ is a lot of things, but

Re: [PHP] Can i use DateTime Object with an timestamp as referenceinstead of an formated string.

2007-03-12 Thread Richard Lynch
Personally, I'd log it in GMT or UTC or whatever it is, and then only change time-zones on display. Logging various different time-zones within the actualy data is just going to be confusing, probably... Depends on what you are doing, though, I guess... YMMV On Wed, March 7, 2007 7:12 am, Mathi

Re: [PHP] Hive Dekoder

2007-03-12 Thread Richard Lynch
On Fri, March 9, 2007 5:07 pm, Richard Lynch wrote: > Short Version: > Anybody got a good quick clean hack to "crack" Hive Logic Enkoder? > > CC me off-list on this one, please. Somebody posted that they had no idea what Hive Logic is. It is an email obfuscator which is generated with random perm

[PHP] Re: Limiting speed when using CURL functions

2007-03-12 Thread Manuel Lemos
Hello, on 03/12/2007 09:14 AM Tijnema ! said the following: > Hi, > > Is there any way i can limit the transfer speed when using CURL? > > I'm uploading a file to a server, and i don't want the script to f*** up > all > bandwidth. This is a an unusual question. I don't know how can you do that

[PHP] Re: Redirecting in a PHP script

2007-03-12 Thread Haydar Tuna
Hello, In my many projects, I have used PHP header function for redirecting any URL so you can use like a following command. I haven't got any problem with this command until now :) header("Location: http://www.domain.com";); -- Haydar TUNA Republic Of Turkey - Ministry of National Educa

[PHP] Re: Posting variable outside of the post form

2007-03-12 Thread Haydar Tuna
Hello, If your variable is not most important for your application security, you should use HTML hidden form field but If your variable is most important for your application security, you should use session variable. I think in your HTML form, you use GET method. In this method, all H

<    1   2