[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

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

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

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

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

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] Javascript and PHP interaction

2007-03-12 Thread Richard Lynch
What you *COULD* do is this: Use .htaccess to force your .css files to *really* be PHP files: ForceType application/x-httpd-php [NOTE: Depending on your server configuration, the application/x-httpd-php part could be *ANYTHING* the sysadmin felt was appropriate...] Inside your CSS, you now

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

2007-03-12 Thread Myron Turner
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"... //probably wrong, but be safe $xml = implode('', file('www.librarytools.c

Re: [PHP] why did it stop working?

2007-03-12 Thread Richard Lynch
On Thu, March 8, 2007 4:57 am, Ross wrote: > > Can someone explain to me why this used to work but then stopped > > header("Content-length: $size"); > header("Content-type: $type"); > header("Content-Disposition: attachment; filename=$name"); > > and this now works > > header("Content-length: ".$si

Re: [PHP] Creating variable names from values

2007-03-12 Thread Robert Cummings
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 " > >... > >} > > > > so each checkbox field has its own name created fro

Re: [PHP] Oracle XMLTYPE column truncates

2007-03-12 Thread Richard Lynch
DB truncation could be either of the following: #1. The column is not large enough to hold that data. Research LONGTEXT and BLOB #2. The query buffer is not large enough to pass the data in. Re-configure your db/php setup. Note that cramming all that XML into the DB seems kinda silly to me, unl

Re: [PHP] Joke of the day problem

2007-03-12 Thread Richard Lynch
create table alljokes (joke_id int unsigned auto_increment unique not null primary key, joke text); create table daily (whatdate date unique not null primrary key, joke_id int); Run a daily cron job that does this: Your web page then just does: Joke of the day$joke\n"; ?> YMMV On Thu, March 8,

Re: [PHP] Intro to PHP question

2007-03-12 Thread Richard Lynch
You have managed to confuse the isntallation process and the way Perl works with the way PHP works. If you want to write a custom CGI script for each and every PHP, and prepend #!/usr/local/bin/php, you just MIGHT be able to do it the way you're doing it... But don't do that. :-) Configure Apach

Re: [PHP] Intro to PHP question

2007-03-12 Thread Richard Lynch
You sure you don't have something like: . . . Or, perhaps, if you are usin CGI, and you have JUST set it up, and you have the wrong command line flags to execute the input as PHP directly somehow... Does work? On Thu, March 8, 2007 11:43 am, Jonathan Kahan wrote: > Hi all, > > I am using a l

Re: [PHP] Creating variable names from values

2007-03-12 Thread Richard Lynch
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 " >... >} > > so each checkbox field has its own name created from $key. Yet how can > I > access these fields (names) later on? > >for

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

2007-03-12 Thread Richard Lynch
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"... //probably wrong, but be safe $xml = implode('', file('www.librarytools.com/events/sampledata.tx

Re: [PHP] Image from a secure site

2007-03-12 Thread Richard Lynch
Instead of trying to re-invent the authentication wheel, just use http://php.net/curl On Thu, March 8, 2007 4:51 pm, Manolet Gmail wrote: > hi, i install 4 IP cameras and i want to extract the images from their > web interface that is protected be a username and password (HTTP AUTH) > and show i

Re: [PHP] Passing a class through an array

2007-03-12 Thread Richard Lynch
If line 140 is the $name1->name part, then you probably haven't written your constructor correctly to cram 'Toon1' into the name field... On Thu, March 8, 2007 11:51 pm, Jeff Taylor wrote: > Hey all, > I'm very new to programming and PHP. > I want to pass instances of a class through an array, an

RE: [PHP] FW: looking for two remote functions

2007-03-12 Thread Richard Lynch
If PHP is returning that goofy Windows 'size on disk' number, I want to see your script... Because, no, I don't think it does that... On Sat, March 10, 2007 4:42 am, Riyadh S. Alshaeiq wrote: > Actually if right click on any file or folder on a machine you will > see that > there are two values (

Re: [PHP] php, oci8 and oracle

2007-03-12 Thread Richard Lynch
PHP runs in the sandbox of the HTTP apache server, but I don't think it inherits all of its Env variables... At any rate, the answer you probably want is: NOTE: I began as "the answer guy" on this mailing list back when I realized that the dude answering this same dang ORACLE_HOME question ever

Re: [PHP] name of the variable

2007-03-12 Thread Richard Lynch
On Fri, March 9, 2007 4:27 am, Cefull Lo wrote: > Hi everyone, > Is there any function that return the name of the variable?? > i.e. > > $foo='abc'; > $bar=somefunc($foo); // $bar='foo' here No. And there cannot be, as any given variable could have multiple references and be passed around through

Re: [PHP] RE: looking for two remote functions

2007-03-12 Thread Richard Lynch
It seems MUCH more likely to me that the filesize() is being used on some kind of URL that does a re-direct -- and the filesize() may not follow the re-direct for you... The size is the size, in bytes. Overhead in the local OS for block management is not something PHP will be able to predict for

Re: [PHP] looking for two remote functions

2007-03-12 Thread Richard Lynch
On Fri, March 9, 2007 5:15 am, Riyadh S. Alshaeiq wrote: > I am looking for an HTTP function for getting remote filesizes. > Keeping in > mind that I am NOT interested in getting the "size on disk" figure, I > need > the actual size of the files when downloaded to a local machine. > Please let > m

Re: [PHP] DB_DataContainer

2007-03-12 Thread Richard Lynch
If you are using PHP 5.0.0 or greater, use the one class, other wise, use the other. The 'eval' BS is to avoid the PHP compiler complaining that you have the same class defined twice. Frankly, it's pretty ugly, if you ask me... On Fri, March 9, 2007 7:08 pm, php trainer wrote: > Could someone ex

Re: [PHP] Variable variables and references

2007-03-12 Thread Richard Lynch
On Sat, March 10, 2007 6:28 am, Dave Goodchild wrote: > Hi guys, I have just read 'Programming PHP' (O'Reilly) and although I > think > it's a great book, I am confused about variable variables and > references - > not the mechanics, just where you would use them. > > The subject of variable variab

Re: [PHP] Back to security

2007-03-12 Thread Richard Lynch
On Sat, March 10, 2007 12:41 pm, Alain Roger wrote: > I'm continuing to work on securing my administration part of the > website. > based on previous posts and reading materials, I was thinking to use > the > following process : Think of HTTPS as like a bank vault in the basement of a branch bank.

Re: [PHP] Array mysteries

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 2:57 pm, Edward Vermillion wrote: > Would the array lookup be faster for a lesser-used option/key in a > situation where there were quite a few options? (you wouldn't have to > go through the whole switch to get to the option at the end (?) or > would you? I have no idea how

Re: [PHP] Array mysteries

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 12:02 pm, Edward Vermillion wrote: > > On Mar 11, 2007, at 10:02 AM, tedd wrote: > >> At 3:05 PM +0100 3/11/07, Tijnema ! wrote: >>> On 3/11/07, tedd <[EMAIL PROTECTED]> >>> wrote: >>> >>> At 10:05 AM +0100 3/11/07, Tijnema ! wrote: - You c

Re: [PHP] Why won't this query go through?

2007-03-12 Thread Stephen Johnson
> From: Richard Lynch <[EMAIL PROTECTED]> > On Sun, March 11, 2007 11:24 am, Mike Shanley wrote: >> I am just not understanding what I could have possibly done wrong with >> this query. All of the variables are good, without special characters >> in >> any sense of the word... So why isn't it impor

Re: [PHP] xml parsing

2007-03-12 Thread Myron Turner
Richard Lynch wrote: I don't think that's valid XML, because you are mixing your content with your XML tags in a way that will confuse the two... If you can FIX the XML by using the CDATA stuff, or htmlentities encoding the HTML or something, that would be best. If you are STUCK with this bogus

Re: [PHP] Array mysteries

2007-03-12 Thread Richard Lynch
Read the manual again, especially the part about "variable scope" near the beginning. On Sun, March 11, 2007 3:51 am, Otto Wyss wrote: > I want to convert weekdays with a simple function like > >$wdays = array > (0 => "Sonntag" > ,1 => "Montag" > ,2 => "Dienstag" > ,3 =>

Re: [PHP] Why won't this query go through?

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 11:24 am, Mike Shanley wrote: > I am just not understanding what I could have possibly done wrong with > this query. All of the variables are good, without special characters > in > any sense of the word... So why isn't it importing anything? > > Thanks! > > $q = "INSERT INT

Re: [PHP] different and logic between PHP4 and PHP5

2007-03-12 Thread Richard Lynch
On Mon, March 12, 2007 1:53 pm, Vieri wrote: > The following code: > > $b=""; > $c="df"; > $a=($b and $c); Why in the world would you use 'and' on two strings? What is that supposed to even mean?... Type-cast them to numbers if you want to use 'and' -- Some people have a "gift" link here. Kno

Re: [PHP] RE: looking for two remote functions

2007-03-12 Thread Jim Lucas
Riyadh S. Alshaeiq wrote: Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in, I need the actual size that when you download a file to a machine you will get.. Riyadh -Origin

Re: [PHP] Stream Functions

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 1:15 pm, [EMAIL PROTECTED] wrote: > Can anyone suggest why the connection might be refused? My first guess would be that you have a firewall blocking the connection. PHP can't poke holes in your firewall for you. -- Some people have a "gift" link here. Know what I want? I

RE: [PHP] Using array_search I get error

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 6:00 pm, Richard Kurth wrote: > > > Richard Kurth wrote: >> >> >> -Original Message- >> From: Stut [mailto:[EMAIL PROTECTED] >> Sent: Sunday, March 11, 2007 2:53 PM >> To: Richard Kurth >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] Using array_search I get er

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Jonathan Kahan
Your point are well taken. I was ale to follow directions from the mysql website to start getting mysql to work instead of the linux site which was the basis for my original post. Does anyone know where I can go to download (aside from the red hat site where i would need to gather license info)

Re: [PHP] PHP 5.2 + IE 7 = HTTP 304 in login procedure

2007-03-12 Thread Richard Lynch
Perhaps try sending various no-cache headers and a Date-Modified with the current time-stamp in it. You never know with IE what's actually going to work, and you could mess up other browsers, though, so do lots of browser tests... On Sun, March 11, 2007 6:01 pm, Yannick Warnier wrote: > Hello, >

Re: [PHP] php 4 and 5

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 7:14 pm, [EMAIL PROTECTED] wrote: > What different between 4 and 5 ? -1 -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (ht

Re: [PHP] xml parsing

2007-03-12 Thread Richard Lynch
I don't think that's valid XML, because you are mixing your content with your XML tags in a way that will confuse the two... If you can FIX the XML by using the CDATA stuff, or htmlentities encoding the HTML or something, that would be best. If you are STUCK with this bogus XML, you could probabl

Re: [PHP] Data Types Problem

2007-03-12 Thread Richard Lynch
By definition, all HTTP data is of type 'string' because that's the ONLY data type HTTP supports. PHP will cheerfully typecast it to whatever it needs to be later, but when it first comes in from the GET (or POST or COOKIE or whatever) data, it's going to start its life as a string, no matter how

Re: [PHP] Limiting speed when using CURL functions

2007-03-12 Thread Richard Lynch
On Mon, March 12, 2007 7:14 am, Tijnema ! wrote: > 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. I don't recall ever seeing that in curl, but check on the curl site, linked from here:

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Edward Vermillion
You've either got path problems or up2date is not installed. That's what 'command not found' means, it can't find the 'up2date' command. Do you just want to start the MySQL server? Or are you trying to update the MySQL rpm? You should be able to start the server with a '/etc/init.d/mysql

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread Richard Lynch
APC is getting rolled into PHP 6, allegedly. So that's kind of a no-brainer to choose, imho, as then you can be forwards-compatible with something that turns into the PHP Dev Teams' maintenance work instead of your own. Zend Cache may still be faster, as they got the jump on the PHP code caching

Re: [PHP] PHP URL issues

2007-03-12 Thread Richard Lynch
On Mon, March 12, 2007 7:50 am, Don Don wrote: > I've got the following url rewriting problem. > > on page 1 i've got this > > See > > > and on page 2 i've got this > > $messageID = $_REQUEST["messageId"]; > $userID = $_REQUEST["userId"]; You switched from Id to ID (capital 'D') and pro

Re: [PHP] Extract url from string

2007-03-12 Thread Richard Lynch
The problem is that "URL" has a very specific meaning, and includes a BUNCH of complexities you may or may not need... Download "The Regex Coach" and play around with some sample inputs until you find what works for your needs, which is not a full-blown URL detector, since that would be very compl

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

2007-03-12 Thread Richard Lynch
Use sessions. http://php.net/session_start On Mon, March 12, 2007 2:12 pm, Otto Wyss wrote: > I submit a form back to itself with > >action="" methode="get" > > yet I've a large PHP variable which I'd like to access afterwards as > well. Is this possible somehow? > > O. Wyss > > -- > PHP Gene

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Richard Lynch
You also may want to consider just using an 'include' instead of bouncing the poor user around like a basketball in re-directs. Each re-direct sends traffic back and forth over the network, which could be slow/flaky. Plus you are chewing up HTTP connections on your web-server, and that's an expen

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Robert Cummings
On Mon, 2007-03-12 at 22:43 +0100, Satyam wrote: > The only way to actually go back in > those is to open the dropdown list for the back button and skip over one > item. I've found clicking really fast can get you back :) > That does not happen when using the header() PHP function. That is my

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Satyam
- Original Message - From: "Larry Bradley" <[EMAIL PROTECTED]> To: Sent: Monday, March 12, 2007 9:02 PM Subject: [PHP] Redirecting in a PHP script I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not lo

Re: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
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 Message - From: "Jake McHenry" <[EMAIL PROTECTED

Re: [PHP] My help with adding captcha

2007-03-12 Thread Joker7
In news: [EMAIL PROTECTED], Chris said: >> Joker7 wrote: >>> Hi- as you know I have been working on adding a captcha image to my >>> guestbook. >>> Well I have managed to get a very basic one working ;) but !I have >>> been trying to get one that would make it more easy to use ,I have >>> it worki

Re: [PHP] My help with adding captcha

2007-03-12 Thread Tijnema !
On 3/12/07, Joker7 <[EMAIL PROTECTED]> wrote: In news: [EMAIL PROTECTED], Chris said: >> Joker7 wrote: >>> Hi- as you know I have been working on adding a captcha image to my >>> guestbook. >>> Well I have managed to get a very basic one working ;) but !I have >>> been trying to get one that wo

Re: [PHP] dst and strtotime

2007-03-12 Thread Tijnema !
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 Message - From: "Jake McHenry" <[EMAIL PROTECTED]> To

Re: [PHP] My help with adding captcha

2007-03-12 Thread Joker7
In news: [EMAIL PROTECTED], Chris said: >> Joker7 wrote: >>> Hi- as you know I have been working on adding a captcha image to my >>> guestbook. >>> Well I have managed to get a very basic one working ;) but !I have >>> been trying to get one that would make it more easy to use ,I have >>> it worki

Re: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
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 Message - From: "Jake McHenry" <[EMAIL PROTECTED]> To: "PHP-General" Sent: Monday, March 12, 2007 12:2

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Alberto Ferrer
I gonna suggest something very cool: Apache Friends. http://www.apachefriends.org/en/xampp-linux.html Its the best option on lamp packs. Regards. 2007/3/12, Jonathan Kahan <[EMAIL PROTECTED]>: http://www.die.net/doc/linux/man/man8/yum.8.html I checked the above page on 'Yum" and see no up2da

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Jonathan Kahan
http://www.die.net/doc/linux/man/man8/yum.8.html I checked the above page on 'Yum" and see no up2date command as you point out. However when I tried update in the format suggested in the link, it still gives a command not found error. "Brad Bonkoski" <[EMAIL PROTECTED]> wrote in message n

RE: [PHP] Installing php and mysql on linux

2007-03-12 Thread Jim Moseby
> I am attempting to start the mysql rpm in Red hat as a first > step prior to > downloading and activating the php-mysql rpm. I was > attempting to follow > steps based on the link below. the php rpm is loaded and > activated as I have > been able to execute php scripts. When I attempt to fo

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Brad Bonkoski
I think up2date is *not* up2date ;-) Google for 'yum' and all its flags for usage... -B Jonathan Kahan wrote: Hi all, I am attempting to start the mysql rpm in Red hat as a first step prior to downloading and activating the php-mysql rpm. I was attempting to follow steps based on the link be

[PHP] Installing php and mysql on linux

2007-03-12 Thread Jonathan Kahan
Hi all, I am attempting to start the mysql rpm in Red hat as a first step prior to downloading and activating the php-mysql rpm. I was attempting to follow steps based on the link below. the php rpm is loaded and activated as I have been able to execute php scripts. When I attempt to follow th

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Tijnema !
On 3/12/07, Larry Bradley <[EMAIL PROTECTED]> wrote: I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, usi

[PHP] Redirecting in a PHP script

2007-03-12 Thread Larry Bradley
I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, using the following Javascript code: $locat

[PHP] stream_get_contents() quite slow

2007-03-12 Thread Francois Aichelbaum
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 is OK : (0.0007s) But when I read the HTTP answer with stream_get_contents(), it lasts about 2.5s ! The webpage is about 5 kB. The connect

Re: [PHP] different and logic between PHP4 and PHP5

2007-03-12 Thread Martin Marques
Vieri escribió: Hi The following code: Change here: echo "A = " . (int)$a; -- select 'mmarques' || '@' || 'unl.edu.ar' AS email; - Martín Marqués | Programador, DBA Centro de Telemática| Administrador

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

2007-03-12 Thread Satyam
- Original Message - From: "David Giragosian" <[EMAIL PROTECTED]> To: "Otto Wyss" <[EMAIL PROTECTED]> Cc: Sent: Monday, March 12, 2007 8:18 PM Subject: Re: [PHP] Posting variable outside of the post form On 3/12/07, Otto Wyss <[EMAIL PROTECTED]> wrote: I submit a form back to itse

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

2007-03-12 Thread David Giragosian
On 3/12/07, Otto Wyss <[EMAIL PROTECTED]> wrote: I submit a form back to itself with action="" methode="get" yet I've a large PHP variable which I'd like to access afterwards as well. Is this possible somehow? O. Wyss Cookie, session variable, session cookie, database layer... David

Re: [PHP] Re: php 4 and 5

2007-03-12 Thread Martin Marques
Robert Cummings escribió: On Mon, 2007-03-12 at 14:18 -0300, Martin Marques wrote: But it was quite crappy. Don't blame the tool. I've never had a problem with the amount of OOP support in PHP4. That's just taste. I started feeling very comfortable when I got to use constructors, destructor

[PHP] Posting variable outside of the post form

2007-03-12 Thread Otto Wyss
I submit a form back to itself with action="" methode="get" yet I've a large PHP variable which I'd like to access afterwards as well. Is this possible somehow? O. Wyss -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] different and logic between PHP4 and PHP5

2007-03-12 Thread Vieri
Hi The following code: yields: A = 0 in PHP 4 and A = in PHP 5 How can I get the same behavior in PHP5 as in PHP4 without changing the source code? Is there an option in php.ini I'm missing? Expectin

Re: [PHP] Re: php 4 and 5

2007-03-12 Thread Robert Cummings
On Mon, 2007-03-12 at 14:18 -0300, Martin Marques wrote: > Robert Cummings escribió: > > On Mon, 2007-03-12 at 10:21 +0200, Haydar Tuna wrote: > >> Hello, > >> Most important change is Object Oriented Features. PHP 5 support > >> Object Oriented programming features. > > > > I think you m

Re: [PHP] Re: php 4 and 5

2007-03-12 Thread Martin Marques
Robert Cummings escribió: On Mon, 2007-03-12 at 10:21 +0200, Haydar Tuna wrote: Hello, Most important change is Object Oriented Features. PHP 5 support Object Oriented programming features. I think you mean supports "more" OOP features. PHP4 had plenty of OOP support also. But it wa

RE: [PHP] Extract url from string [SOLVED]

2007-03-12 Thread Brad Fuller
On 3/12/07, Brad Fuller <[EMAIL PROTECTED]> wrote: > I tried this: > > preg_match("/http(s)?:\/\/(*.?)\s/", $stringUrl, $matches) > > But my pattern syntax is messed up cuz I get this error: > > Warning: preg_match() [function.preg-match]: Compilation failed: > nothing to repeat at o

Re: [PHP] php 4 and 5

2007-03-12 Thread Martin Marques
tedd escribió: At 8:14 AM +0800 3/12/07, [EMAIL PROTECTED] wrote: Dear All, What different between 4 and 5 ? Edward. 1 No! -1 :-D Unless we are talkaing about absolute difference (distance between). -- select 'mmarques' || '@' || 'unl.edu.ar' AS email; --

RE: [PHP] Extract url from string

2007-03-12 Thread Brad Fuller
> -Original Message- > From: Tijnema ! [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 1:10 PM > To: Brad Fuller > Cc: php-general@lists.php.net > Subject: Re: [PHP] Extract url from string > > On 3/12/07, Brad Fuller <[EMAIL PROTECTED]> wrote: > > > > Hey guys, > > > > I've been

[PHP] Re: Troubles from the newb again

2007-03-12 Thread Steve
The way I see it, you have two ways to avoid that error: 1) If you want to preserve indexes: foreach ($array as $index => $name) { if ($name->currentHP >0) { $newarray[$index] = $name; } } 2) If you don't care about indexes at all foreach ($array as $name) { if ($name-

Re: [PHP] Extract url from string

2007-03-12 Thread Tijnema !
On 3/12/07, Brad Fuller <[EMAIL PROTECTED]> wrote: Hey guys, I've been banging my head against the wall trying to figure out the right pattern to use to extract a URL from a string using preg_match(). I've been STFW for a while now, and all the examples that I find are for extracting URLs from

Re: [PHP] PHP 5.2 + IE 7 = HTTP 304 in login procedure [SOLVED]

2007-03-12 Thread Tijnema !
On 3/12/07, Doctorrock <[EMAIL PROTECTED]> wrote: 2007/3/12, Yannick Warnier <[EMAIL PROTECTED]>: > > The problem wasn't quite there. The 304 response was correct and didn't > really cause a problem in IE7. > > In fact, the problem was somewhere else. As mentioned by someone in the > PHP doc com

Re: [PHP] PHP 5.2 + IE 7 = HTTP 304 in login procedure [SOLVED]

2007-03-12 Thread Doctorrock
2007/3/12, Yannick Warnier <[EMAIL PROTECTED]>: The problem wasn't quite there. The 304 response was correct and didn't really cause a problem in IE7. In fact, the problem was somewhere else. As mentioned by someone in the PHP doc comments (http://be.php.net/manual/en/ref.session.php#64125 ), I

Re: [PHP] Using array_search I get error

2007-03-12 Thread Tijnema !
On 3/12/07, Richard Kurth <[EMAIL PROTECTED]> wrote: -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 1:16 AM To: Richard Kurth Cc: Stut; php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error On 3/12/07, Richard Kurth <[EM

RE: [PHP] Using array_search I get error

2007-03-12 Thread Németh Zoltán
2007. 03. 12, hétfő keltezéssel 09.21-kor Richard Kurth ezt írta: > > -Original Message- > From: Tijnema ! [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 1:16 AM > To: Richard Kurth > Cc: Stut; php-general@lists.php.net > Subject: Re: [PHP] Using array_search I get error > > O

Re: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
yepper date Mon Mar 12 12:25:33 EDT 2007 - Original Message - From: "Peter Lauri" <[EMAIL PROTECTED]> To: "'Jake McHenry'" <[EMAIL PROTECTED]>; "'PHP-General'" Sent: Monday, March 12, 2007 5:23 PM Subject: RE: [PHP] dst and strtotime Is your system time correct? Best regards, Pe

RE: [PHP] Using array_search I get error

2007-03-12 Thread Richard Kurth
-Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 1:16 AM To: Richard Kurth Cc: Stut; php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error On 3/12/07, Richard Kurth <[EMAIL PROTECTED]> wrote: > > > > Richard Kurth wrote: >

  1   2   >