[PHP] Plugins... (like wordpress?)

2008-05-15 Thread Ryan S
Hey, Have just started screwing around with wordpress and I must say... it has a lot of really really nice bits and pieces... two of my favourites are widgets and plugins... not a hundred percent certain exactly what the diff is though! :) Anyway, was thinking it would be a great way to program

Re: [PHP] $_SESSION lost

2008-05-15 Thread Chris
> $ php -v > PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58) > Copyright (c) 1997-2007 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies This shows the php command line version, not the webserver php version. To do that, look at a phpinfo() page. They may indeed be the s

[PHP] $_SESSION lost

2008-05-15 Thread hce
Hi, I've just installed PHP 5.2.4 on a FC 7 with a web server. $ php -v PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies It seems some PHP module might be missing, I tested it with a page1.php: sess

[PHP] Re: changing order of items

2008-05-15 Thread Chris W
afan pasalic wrote: this one bugs me for a while. how to change order. I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - status value stored in mysql. I can list tasks per status or all. order number is stored in mysql too. the easiest way to change order is to have form fo

[PHP] Re: question about validation and sql injection

2008-05-15 Thread Chris W
Sudhakar wrote: A) validating username in php If you do what needs to be done to prevent sql injection, it doesn't matter what you let users have for their user name. B) preventing sql injection htmlentities this has nothing to do with sql injection it just is needed so when you prin

Re: [PHP] SCanning text of PDF documents

2008-05-15 Thread Robert Cummings
On Thu, 2008-05-15 at 20:17 -0500, Ray Hauge wrote: > > One thing you'll have to watch is that if the PDF was created by a > scanner, then the "text" on the PDF is actually just an image and cannot > be read without OCR. I got stumped on that one for a while when I was > doing something simila

Re: [PHP] SCanning text of PDF documents

2008-05-15 Thread Ray Hauge
Angelo Zanetti wrote: Hi All. This is a quick question. A client of ours wants a solution that when a PDF document is uploaded that we use PHP to scan the documents contents and save it in a DB. I know you can do this with normal text documents using the file commands and functions. Is it pos

Re: [PHP] Good HTML parser needed

2008-05-15 Thread Yi Wang
On 5/15/08, Eric Butera <[EMAIL PROTECTED]> wrote: > On Wed, May 14, 2008 at 10:56 PM, Yi Wang <[EMAIL PROTECTED]> wrote: > > Can anyone provide some code that can't be stripped by strip_tags? > > > > > > On 5/15/08, Eric Butera <[EMAIL PROTECTED]> wrote: > >> On Wed, May 14, 2008 at 11:38 AM

Re: [PHP] question about validation and sql injection

2008-05-15 Thread Chris
Dmitri wrote: > your validation looks good enough to me. If you only allow > alphanumerical chars, then your should not be worried about sql injection > also use addslashes($username) before you insert into database and you > should be fine. > > Usually addslashes is enough to prevent this, but th

Re: [PHP] question about validation and sql injection

2008-05-15 Thread Dmitri
your validation looks good enough to me. If you only allow alphanumerical chars, then your should not be worried about sql injection also use addslashes($username) before you insert into database and you should be fine. Usually addslashes is enough to prevent this, but the validation that you

[PHP] fsockopen + fputs

2008-05-15 Thread debussy007
Hello, I use fsockopen and fputs to call a distant URL, but I have the following error : The requested URL /registration/test was not found on this server. This is my code: $req = 'username=' . $usr . '&password=' . $pass . '&date_of_birth=' . $year . "-" . $month . "-" . $da

Re: [PHP] changing order of items

2008-05-15 Thread Jason Murray
On Thu, May 15, 2008 at 2:09 PM, afan pasalic <[EMAIL PROTECTED]> wrote: > this one bugs me for a while. how to change order. > > I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - > status value stored in mysql. I can list tasks per status or all. > order number is stored in

[PHP] question about validation and sql injection

2008-05-15 Thread Sudhakar
A) validating username in php as part of a registration form a user fills there desired username and this is stored in a mysql. there are certain conditions for the username. a) the username should only begin either letters or numbers, and Underscore character example = user123, 123user, u_ser123

[PHP] Re: changing order of items

2008-05-15 Thread Nathan Rixham
afan pasalic wrote: this one bugs me for a while. how to change order. I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - status value stored in mysql. I can list tasks per status or all. order number is stored in mysql too. the easiest way to change order is to have form fo

Re: [PHP] changing order of items

2008-05-15 Thread robert
On May 15, 2008, at 11:58 AM, afan pasalic wrote: Eric Butera wrote: I use this: http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html This one is good too. But, actually, I need something more simple. Nothing "fancy" :D. for something very simple how about add a drop down l

Re: [PHP] changing order of items

2008-05-15 Thread afan pasalic
Eric Butera wrote: > On Thu, May 15, 2008 at 2:49 PM, afan pasalic <[EMAIL PROTECTED]> wrote: > >> Iv Ray wrote: >> >>> afan pasalic wrote: >>> this one bugs me for a while. how to change order. I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - >>

Re: [PHP] changing order of items

2008-05-15 Thread Eric Butera
On Thu, May 15, 2008 at 2:49 PM, afan pasalic <[EMAIL PROTECTED]> wrote: > > > Iv Ray wrote: >> afan pasalic wrote: >>> this one bugs me for a while. how to change order. >>> >>> I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - >>> status value stored in mysql. I can list tas

Re: [PHP] changing order of items

2008-05-15 Thread afan pasalic
Iv Ray wrote: > afan pasalic wrote: >> this one bugs me for a while. how to change order. >> >> I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - >> status value stored in mysql. I can list tasks per status or all. >> order number is stored in mysql too. >> the easiest way t

Re: [PHP] changing order of items

2008-05-15 Thread Iv Ray
afan pasalic wrote: this one bugs me for a while. how to change order. I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - status value stored in mysql. I can list tasks per status or all. order number is stored in mysql too. the easiest way to change order is to have form fo

[PHP] changing order of items

2008-05-15 Thread afan pasalic
this one bugs me for a while. how to change order. I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - status value stored in mysql. I can list tasks per status or all. order number is stored in mysql too. the easiest way to change order is to have form for each task where you

Re: [PHP] Can I install a newer version of php over an older version

2008-05-15 Thread Brady Mitchell
On May 14, 2008, at 854PM, Tony M wrote: Can I install a newer version of php over an older version ? I am new to php and am in the process of installing it and reading various tutorials. I always suggest using XAMPP (http://xampp.org) or a similar package that will install MySQL, PHP an

Re: [PHP] how do I stop Firefox doing a conditional get?

2008-05-15 Thread Per Jessen
Al wrote: > Per Jessen wrote: >> Al wrote: >> >>> Make certain your steam is compressed >>> http://www.whatsmyip.org/mod_gzip_test/ >>> >> >> The files I was having the problem with are GIFs, so already LZW >> compressed. >> > Try by not LZW compressing and the use ob_start() and flush() so you

RE: [PHP] My open source php CMS

2008-05-15 Thread admin
Page Not Found. Hello, first of all, sorry for this plug, I am looking for interested developers. I just want to let you know about my open source project that uses over 15 pear classes and uses pear installer as the primary means to install it I also wrote a web-based interface for usin

[PHP] RE:Windows Service Call from linux php server

2008-05-15 Thread admin
I used soap to perfect the Windows service call and resolved the issue so simple it kills me. Not happy with the huge upgrade of php process but happy with final results. Resolution: http://user:[EMAIL PROTECTED]/WebService/service.asmx?WSDL"; $soap = new soapclient($wsdl,"wsdl"); $soap->setCred

Re: [PHP] Flush file contents

2008-05-15 Thread Andrew Ballard
On Thu, May 15, 2008 at 11:20 AM, Mário Gamito <[EMAIL PROTECTED]> wrote: > Hi, > > How do I open a file and flush all it's contents to insert new ones and > close again ? > > I've browsed through the fopen function aguments and didn't find one that do > this (or I misunderstood one of them). > > A

Re: [PHP] how do I stop Firefox doing a conditional get?

2008-05-15 Thread Al
Try by not LZW compressing and the use ob_start() and flush() so your files are gzip compressed. I don't know if Firefox knows how to readily handle LZW on the fly. It does know how to handle gzip. Per Jessen wrote: Al wrote: Make certain your steam is compressed http://www.whatsmyip.org/mod_

[PHP] My open source php CMS

2008-05-15 Thread Dmitri
Hello, first of all, sorry for this plug, I am looking for interested developers. I just want to let you know about my open source project that uses over 15 pear classes and uses pear installer as the primary means to install it I also wrote a web-based interface for using pear installer to insta

[PHP] Flush file contents

2008-05-15 Thread Mário Gamito
Hi, How do I open a file and flush all it's contents to insert new ones and close again ? I've browsed through the fopen function aguments and didn't find one that do this (or I misunderstood one of them). Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing Li

Re: [PHP] Working with internal data formats

2008-05-15 Thread Robin Vickery
On 15/05/2008, John Gunther <[EMAIL PROTECTED]> wrote: > Iv Ray wrote: > > > John Gunther wrote: > > > What technique can I use to take an 8-byte double precision value, as > > > stored internally, and assign its value to a PHP float variable without > > > having the bytes misinterpreted as a ch

Re: [PHP] Working with internal data formats

2008-05-15 Thread Iv Ray
John Gunther wrote: > Example: I extract the 8 bytes 40 58 FF 5C 28 F5 C2 8F from > an external file You mean you "extract" "40 58 FF 5C 28 F5 C2 8F", so to speak, as a string, right? Sorry, for asking, but somehow I do not the case. -- -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Working with internal data formats

2008-05-15 Thread Robert Cummings
On Thu, 2008-05-15 at 10:33 -0400, John Gunther wrote: > Iv Ray wrote: > > John Gunther wrote: > > > What technique can I use to take an 8-byte double precision value, as > > > stored internally, and assign its value to a PHP float variable without > > > having the bytes misinterpreted as a cha

Re: [PHP] Working with internal data formats

2008-05-15 Thread John Gunther
Iv Ray wrote: John Gunther wrote: > What technique can I use to take an 8-byte double precision value, as > stored internally, and assign its value to a PHP float variable without > having the bytes misinterpreted as a character string. Does it get misinterpreted, or do you just want to be su

Re: [PHP] Re: Scripts slowing down?

2008-05-15 Thread Per Jessen
René Leboeuf wrote: > Per Jessen a écrit : >> René Leboeuf wrote: >> >>> The user sending emails is "trusted" by sendmail, and the sending >>> program is located on the sendmail machine. >>> >> >> No need to use SMTP then. You should just be calling sendmail to >> drop >> the emails into the qu

Re: [PHP] how do I stop Firefox doing a conditional get?

2008-05-15 Thread Per Jessen
Al wrote: > Make certain your steam is compressed > http://www.whatsmyip.org/mod_gzip_test/ > The files I was having the problem with are GIFs, so already LZW compressed. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Tracking down the elusive "expecting T_PAAMAYIM_NEKUDOTAYIM"

2008-05-15 Thread Daniel Brown
Since I keep getting off-list and on-list replies, apparently not everyone reads the threads as they should. As you'll see from the message below, I'm aware that it's in all languages. It was meant jokingly, but I forgot to type in the smiley face. Otherwise, thanks (to the eleven or so

Re: [PHP] Working with internal data formats

2008-05-15 Thread Iv Ray
John Gunther wrote: > What technique can I use to take an 8-byte double precision value, as > stored internally, and assign its value to a PHP float variable without > having the bytes misinterpreted as a character string. Does it get misinterpreted, or do you just want to be sure? The documenta

Re: [PHP] Validating Form input

2008-05-15 Thread tedd
At 9:48 PM -0500 5/14/08, Chris W wrote: I was wondering what others think of my approach to form validation. I know many use Java script to do various validation. However, since there is no way to be sure the data sent to the server is actually valid, you have to check it in your php code on

Re: [PHP] Re: Scripts slowing down?

2008-05-15 Thread René Leboeuf
Per Jessen a écrit : René Leboeuf wrote: The user sending emails is "trusted" by sendmail, and the sending program is located on the sendmail machine. No need to use SMTP then. You should just be calling sendmail to drop the emails into the queue. And that should not be slowing down. Ac

Re: [PHP] Good HTML parser needed

2008-05-15 Thread Andrew Ballard
On Tue, May 13, 2008 at 6:06 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Shelley wrote: > >> I want to know whether there are some good HTML parsers written in >> PHP. >> >> That is, >> the parser checks whether html tags like table, tr, td, div, dt, dl, >> dd, script, ul, li, span, h1, h2, etc. ar

Re: [PHP] how do I stop Firefox doing a conditional get?

2008-05-15 Thread Robin Vickery
On 15/05/2008, Al <[EMAIL PROTECTED]> wrote: > Make certain your steam is compressed > http://www.whatsmyip.org/mod_gzip_test/ Compressed steam can be dangerous: http://en.wikipedia.org/wiki/2007_New_York_City_steam_explosion -robin -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] how do I stop Firefox doing a conditional get?

2008-05-15 Thread Al
Make certain your steam is compressed http://www.whatsmyip.org/mod_gzip_test/ Per Jessen wrote: Robin Vickery wrote: 2008/5/14 Per Jessen <[EMAIL PROTECTED]>: The issue is - I'd like this page to appear to be as "real time" as possible, and the occasional delay caused by the conditional g

Re: [PHP] Variable Scope from child to parent

2008-05-15 Thread Andrew Ballard
Ok, I forgot to reply-all to the list. Here we go again. On Wed, May 14, 2008 at 6:33 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > I am trying to get a child class to pass an array of valid keys to it's > parent when the constructor is run, and the parent appends the data to one >> of it's array

Re: [PHP] SCanning text of PDF documents

2008-05-15 Thread Eric Butera
On Thu, May 15, 2008 at 4:19 AM, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > Hi All. > > This is a quick question. > > A client of ours wants a solution that when a PDF document is uploaded that > we use PHP to scan the documents contents and save it in a DB. > > I know you can do this with normal

Re: [PHP] Good HTML parser needed

2008-05-15 Thread Eric Butera
On Wed, May 14, 2008 at 10:56 PM, Yi Wang <[EMAIL PROTECTED]> wrote: > Can anyone provide some code that can't be stripped by strip_tags? > > > On 5/15/08, Eric Butera <[EMAIL PROTECTED]> wrote: >> On Wed, May 14, 2008 at 11:38 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> > >> > >> > On We

Re: [PHP] the class as a namespace

2008-05-15 Thread Iv Ray
Richard Heyes wrote: > That's a common use of static classes. Eg: > > HTTP::Redirect($url); > > In fact this (from the article I've read) is exactly how namespaces will > look like. So in the above example, HTTP could be either a namespace or > a class. Right. Namespaces do look similar. And PEAR

[PHP] Working with internal data formats

2008-05-15 Thread John Gunther
What technique can I use to take an 8-byte double precision value, as stored internally, and assign its value to a PHP float variable without having the bytes misinterpreted as a character string. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Can I install a newer version of php over an older version

2008-05-15 Thread Iv Ray
Tony M wrote: > Can I install a newer version of php over an older version? Perhaps what you need is this - "Upgrading PHP with the Install To upgrade, run the installer either graphically or from the command line as normal. The installer will read your current install options, remove your ol

Re: [PHP] Using SVN w/ Zend Studio for Eclipse

2008-05-15 Thread Iv Ray
> I do not want to copy the project into a new > directory as the existing directory is where Apache's DocumentRoot is > set. And although that's simple to change, I really don't think any > IDE should mandate where I set my project's directory on the > filesystem. I use PDT, and there is no prob

Re: [PHP] SCanning text of PDF documents

2008-05-15 Thread Frank Arensmeier
A reliable solution depends partly on the pdf document itself. Consider if your pdf document contains roted text or text that spans about several different blocks/pages. My experience with ps2acsii and other ghostscript related tools is that sometimes it works quite well, sometimes the outp

[PHP] the class as a namespace

2008-05-15 Thread Iv Ray
Is there a notion of the class as a namespace? My understanding is that the namespaces are intended to help organize the classes in large projects (and are not perfect). Is it considered good style to use a class simply to box related functions? For instance, a class called "files", contains

[PHP] Re: Using SVN w/ Zend Studio for Eclipse

2008-05-15 Thread Colin Guthrie
Steve Finkelstein wrote: If any of you have run into similar frustrations, I'd love to hear it. So far I've spent the better part of the evening fiddling with extremely rudimentary features which no IDE in any programming environment I've ever worked with has imposed on me. Perhaps this thing i

Re: [PHP] SCanning text of PDF documents

2008-05-15 Thread David Otton
2008/5/15 Angelo Zanetti <[EMAIL PROTECTED]>: > A client of ours wants a solution that when a PDF document is uploaded that > we use PHP to scan the documents contents and save it in a DB. > > I know you can do this with normal text documents using the file commands > and functions. > > Is it

[PHP] SCanning text of PDF documents

2008-05-15 Thread Angelo Zanetti
Hi All. This is a quick question. A client of ours wants a solution that when a PDF document is uploaded that we use PHP to scan the documents contents and save it in a DB. I know you can do this with normal text documents using the file commands and functions. Is it possible with PDF documents