Re: [PHP] News Reader

2003-07-21 Thread Steve
David Goodchild wrote: Could someone advise me of a good news reader. I'm using MS Outlook at the moment, and if I reply to any post it sends it to the users email and not to the news server. Plus, its not that great in general terms. XNews, slrn, Fortitude and of course Thunderbird (Gecko client)

[PHP] lurker awakes

2003-03-20 Thread steve
hell of a backdoor to leave on our server. Steve Soars www.i-redlands.net Interactive Redlands Shop 2 Cleveland Town Square Cnr Queen & Bloomfield Sts Cleveland QLD 4163 [p] 07 3821-5800 [f] 07 3821-5811 &

Re: [PHP] lurker awakes

2003-03-20 Thread steve
Mike/Matt, thanks for the promp response for reference our system: Slackware 8.1, mySQL 3.23.51, apache 1.37 all the passwords look like they are kept in the mysql.users table and the passwords are encrypted (at least in phpMyAdmin 2.4) Steve - Original Message - From: "Mike&quo

[PHP] chill out

2003-04-02 Thread steve
to make the poster feel like an idiot. We all know your smarter than the rest of us ;-) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Cyber Cafe software

2002-06-04 Thread Steve
might try squid. Cheers, -Steve Ellermann -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] linux: how can I check if php/mysql is working properly?

2002-06-18 Thread Steve
Link: http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/page1.html -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 12:37 PM To: [EMAIL PROTECTED] Subject: [PHP] linux: how can I check if php/mysql is working properly? i have so

RE: [PHP] HTTP1.1

2002-06-27 Thread Steve
I have used this in the past... Foo http://www.foo.com/";> and as Cal mentioned, use somefile -Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Generating Barcodes and printing

2002-06-27 Thread Steve
Along with the Goggle search suggested by Dan, you need to know what format you need for your barcode label. Think of them as fonts. If you already have your barcode scanning hardware, see what barcode format was included. -Steve -- PHP General Mailing List (http://www.php.net/) To

[PHP] Exec() wont run program

2003-10-10 Thread steve
I want to start up a program through a php page. For example, gedit. I found that the user is apache by running this: - passthru('whoami'); since apache might not have access to run a certain command, I'll use sudo. I edited the sudoers file in /etc/sudoers and underneath the line: #

[PHP] Re: Exec() wont run program

2003-10-10 Thread steve
Curt Zirzow wrote: What is gedit? it looks like the gnu text editor command. most X applications wont run from the webserver in most cases. gedit is a simple text editor - I think it stands for Gnome Edit echo shell_exec("sudo gedit"); might give some answers, Curt. Tried echo shell_exec("sudo

[PHP] Re: Exec() wont run program

2003-10-13 Thread steve
where that explains why most X applications wont run from the webserver? Thanks. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting fields from a fixed length text file intoan array

2001-05-06 Thread steve
ed\n"); if(!ftp_login($ftp,"test","none")) { print("unable to login!\n"); exit; } ftp_get($ftp,"/tmp/test.jpg","test.jpg",FTP_IMAGE); print("done\n"); ftp_quit($ftp); ?> Any

[PHP] Problem trying to get "ftp_get" to work connected to FreeBSD

2001-05-06 Thread steve
ot;test","none")) > { > print("unable to login!\n"); > exit; > } > > ftp_get($ftp,"/tmp/test.jpg","test.jpg",FTP_IMAGE); > print("done\n"); > > ftp_quit($ftp); > > ?> > > > > > > Any idea why? > > TIA > > Steve > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] check if a variable is in a number of states.

2001-05-12 Thread Steve
You could also try using a regular expression to get out whatever you need (if it's a string). Something like the following: preg_match_all("/[abc|def|ghi]/",$type, $matches); - Steve ""DRN"" <[EMAIL PROTECTED]> wrote in message 9dkhdr$nog$[EMAIL PRO

[PHP] References

2001-05-12 Thread Steve
/// Has anyone attempted anything like this before or can anyone think of a reason that this will not work? Thank you! - Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] validate form with javascript

2001-05-13 Thread Steve
What is the particular error you're getting? ""Chris Mason"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a form in which I validate the email address using a php function > then alert the operson if the email address is not correct. However, I would

Re: [PHP] Search engines and mod_rewrite

2001-05-13 Thread Steve
ers/username is converted into something.pl?user=username and they get indexed, so I can't think of any reason you're case would be any different. - Steve "Tom Carter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all, >

[PHP] session VS scope

2001-05-14 Thread Steve
Can anyone point at this and tell me why it SHOULD NOT happen? Does anyone have an elegant work-around for me that negates the need for $LOCALS? If not, I would feel OK passing this off towards the development team and working with them on it to improve the language. please CC your reply to

Re: [PHP] How to check "aBc" different from "abc" ?

2001-05-15 Thread Steve
$st1 = "abc"; $st2 = "abc"; strcmp($st1, $st2);// 0 if equal, -1 or 1 if not equal (depending on which one is larger) ""Bass¨Ð¦õªv"" <[EMAIL PROTECTED]> wrote in message 9ds76j$9mv$[EMAIL PROTECTED]">news:9ds76j$9mv$[EMAIL PROTECTED]... > thx ^_^ > > > > -- > PHP General Mailing List (http:/

RE: [PHP] Mail responders

2002-04-26 Thread Steve
m Monitoring and Control' by Bob Dilworth. On the down side of your question, the article describes how Perl and Sendmail is used to execute commands, not PHP. This should give you some ideas on how to approach it though. -Steve -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Re: 1024X760 or 800x600

2002-04-07 Thread Steve
My reccomendation is to design it for optimization on 800*600..as that to me is the lowest common denominator.it will still look good in 1024*760 therefore covering both resolutions nicely Ron Allen wrote: > > Is there a way with PHP to determine screen resolution size??? -- PHP Gener

[PHP] Sites for contracts?

2002-04-07 Thread Steve
Does anyone here know of any good sites where there are companies looking for contract employees listed on them? Other then main stream sites like Monster, Dice and so on? Thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP MySQL Hosting services

2002-04-14 Thread Steve
Jennifer Check out Hub.Org Networking services http://www.hub.org They have Virtual Machine that can be configured to your NEEDS without affecting other clients and vice versa. and MANY other features including ssh, ftp, cgi/perl and I believe they have also added MySQL 3.23 to the list. Not

[PHP] image retrival from db?

2001-06-18 Thread Steve
Anyone have a pointer to a script or documentation on how to retrieve an image that is stored in a database? I can insert the image, but unable to display the image once retieved, i apparently am missing something. Thanks Steve

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Steve
try stripslashes()! http://www.php.net/manual/function.stripslashes.php - Original Message - From: Marcus James Christian <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 11:18 PM Subject: [PHP] Filtering out \ when a ' is user entered? > Hello, > > I'm pretty

[PHP] php & aol

2001-07-09 Thread Steve
well, but no data shows up in the database and the link is not sent via email. Is there something special that is required for AOL users to be able to use or view php pages? and the input to be passed to other php pages or to a database? Thanks Steve -- PHP General Mailing List (http://www.php.net

[PHP] Problem with sybase_get_last_message

2009-01-10 Thread Steve
fails, sybase_get_last_message will return "Command has been aborted" rather than the real error message. -- This bug is from 2001 and still occurs in PHP 4.4.9. Does anyone know how to get the real message out of sybase? Thanks, Steve -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Re: Zend Framework and IIS

2009-02-05 Thread steve
See this blog entry: http://2bits.com/articles/high-php-execution-times-drupal-and-tuning-apc-includeonce-performance.html On Fri, Jan 30, 2009 at 12:49 PM, Robert Cummings wrote: > On Fri, 2009-01-30 at 15:42 -0500, Andrew Ballard wrote: >> On Fri, Jan 30, 2009 at 12:46 PM, Andrew Ballard wrot

Re: [PHP] isset question

2009-06-18 Thread Steve
Use !empty($_POST['mort']) instead of isset() for form input since the form will still set an empty value if left blank. Gary wrote: I have a form that gives the submitter a choice or either one set of questions, or another. I am still getting the message even if the input was left blank. So

Re: [PHP] DOMDocument saveHTML() configurable?

2009-07-10 Thread Steve
Michael A. Peters wrote: The $dom->saveHTML() function does a pretty good job of knowing what tags are not closed - IE it does , , , etc. correctly. Is there a way to add a tag without children to it's database? Specifically I'm talking about the new tag from HTML 5 that is being used to emb

Re: [PHP] Re: PHP 5.3.0 Released!

2009-08-03 Thread steve
On Thu, Jul 2, 2009 at 3:54 AM, Michael A. Peters wrote: > Nick Cooper wrote: >> >> Does anyone have any further information on the PECL Binaries for 5.3, >> will >> they be released? > > I don't, but I suspect it is just a matter of compile + test. We develop on Windows and deploy on Linux, so wi

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-04 Thread Steve
Daniel Brown wrote: Just as a heads-up, in case you guys weren't yet aware (cross-posting): Elance.com was the victim of an SQL injection attack earlier this summer (they apparently missed our billions of threads on sanity). According to their folks, only names, company names, phone numb

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Steve
Ashley Sheridan wrote: On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote: 2009/8/26 Ashley Sheridan : On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: I've been playing about more and now I have the following code: $folder ){ echo "\n"; //Don't need folders as they're s

Re: [PHP] Catch STDERR

2007-02-20 Thread steve
What are your speed requirements? You can use the ssh functions can ssh2_exec into yourself. You can get the error stream separately then... After the connection is open, it is basically as fast as exec. But there is a hit on connection. I wouldn't use this in webpage environment, but I do use it

Re: [PHP] Session problems with 4.4.5?

2007-02-22 Thread steve
Yes... I think the test version of it goes out today. On 2/22/07, alex handle <[EMAIL PROTECTED]> wrote: On 2/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Ken Williams wrote: > > Is anyone else having problems with session in 4.4.5? I'm under apache > > 1.3.27 in linux 2.4.34 and all my we

Re: [PHP] Safari 2.0.4 / PHP 4.3.7 / Apache 2.0.44 Isuue with HTTP Headers

2007-02-22 Thread steve
I've see that before. Update the PHP (and Apache while you are at it). Also disable the server from showing the Apache and PHP versions. Why are they broadcasting to the world that they are easy prey to remote exploits? Also check if the server has been compromised. On 2/22/07, Ron Stiemer <[EMAI

Re: [PHP] Re: how to display images stored in DB

2007-02-28 Thread steve
> >> The web browser sees an image as a single HTTP request. Invoking the PHP > >> script engine, parsing the script, and executing a SQL query to retrieve > >> the image from the database is less efficient than letting the web > >> server > >> just send the file. In a simple setup, that is pro

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread steve
> To follow up with Ted, nobody said using the filesystem is bad, No, it is the most efficient way. Not in my environment. All db servers have RAID 10 over 8 SCSI 15K disks. Pulling from them is always faster than a webserver pulling from its SATA drive. Also, there is issue of going to the da

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread steve
> Not in my environment. All db servers have RAID 10 over 8 SCSI 15K > disks. Pulling from them is always faster than a webserver pulling > from its SATA drive. That's not exactly an apples to apples comparison. That is true, and sort of the point. However, the whole thing started because some

Re: [PHP] best framework (pear vs zend framework)

2007-03-02 Thread steve
There is PRADO. On 3/1/07, Larry Garfield <[EMAIL PROTECTED]> wrote: On Thursday 01 March 2007 3:17 am, Edward Kay wrote: > Personally, I like Qcodo (http://www.qcodo.com) - but only because it fits > with both my mindset and the applications I'm developing at the moment. > > Edward I looked i

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread steve
> But storing them in the DB invariably ends up with too many issues > involving DB storage size and query buffer size, compounded by data > escaping/security issues. This on the other hand... I'm a newbie, whatever your saying, BUT and it is a big one; The data has to be escaped anyway, the bina

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread steve
It is funny, but most people don't get the fact that SQL databases are not the best way to store data. They are designed to select algebraic relationships from a data set. They are designed to ensure accuracy of the relationships and the integrity of the data. Like blobs in separate files, this

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread steve
> I'm making assumptions about the layout again. The database will > likely already have the table files opened, but will need a seek to > get the data. The webserver will have to do an additional seek (I was > assuming on a far slower drive system, and likely twice for stat and > read). I'm not

Re: [PHP] Re: how to display images stored in DB

2007-03-03 Thread steve
Also, when you hit the 1024 image limit you have to think about directory schema to store the images, as the linux filesystem (and also on other 32 bit systems) will start getting slow, until things like ls will just give you an error. We have a system (I didn't work on it, just maintaining it) t

[PHP] Problem with APC

2007-03-07 Thread steve
Hi, I upgraded to PHP 4.4.6 and APC 3.0.13 at the same time. Every day at some point, it starts having a problem and the load on that machine styrockets. It does not happen with the opcode cache in Zend Platform for PHP 4.4.6. Also, in the error log I see a lot of things like this: [apc-warnin

[PHP] Re: Problem with APC

2007-03-08 Thread steve
No one else having problems? On 3/7/07, steve <[EMAIL PROTECTED]> wrote: Hi, I upgraded to PHP 4.4.6 and APC 3.0.13 at the same time. Every day at some point, it starts having a problem and the load on that machine styrockets. It does not happen with the opcode cache in Zend Platform f

[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] PHP URL issues

2007-03-13 Thread Steve
This may or may not help, but here's a few things to note: 1) I would avoid placing variable output in double quoted strings. While not important for smaller scripts, doing a large number of outputs like this causes a decent performance hit. In fact, I wouldn't use double quotes ever in php. In

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Steve
For your filter to return only/no digits, I would recommend doing a bit of reading on preg_replace ( http://us2.php.net/preg_replace ) while noting the following flags: \d Matches any decimal digit; this is equivalent to the class [0-9]. \D Matches any non-digit character; this is equivalent to

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
Instead of trying to call specific $_GET values, try printing out the entire $_GET variable. echo ''; print_r($_GET); echo ''; Anything else there? "Don Don" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $query_string = 'testId='. urlencode(trim($tmpTestId)) . '&userId=' . > u

Re: [PHP] PHP URL issues

2007-03-14 Thread Steve
teach yourself to do subconsciously, then I feel it's definitely worthwhile to pursue. ""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, March 13, 2007 9:31 am, Steve wrote: >> This may or may not help, but here's a f

[PHP] Re: How to get class constants with there value?

2007-03-23 Thread Steve
Doesn't that destroy the entire reason for having variables within a class in the first place? Why not set them as private and use accessors and mutators to mess with their values? If you aren't going to use those, why not just create global variables and functions? You basically lose your enti

[PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Steve
I read something (I think on Slashdot) a while back about another method that could be used to avoid CAPTCHAs. Basically on top of your standard form field, you place some input fields in a javascript hidden div around your page conveniently named things like "email", "address", or "phone." Bec

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Steve
along and doesn't see the field name. They fill in their username and password and hit submit. The information passed looks like: $_POST['name'] = 'steve'; $_POST['password'] = 'mypassword'; $_POST['lastname'] = ''; All of the fields a

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Steve
Sorry for the really rough example. I just re-read my message and realized how much stuff (closing tags, etc) I forgot to include. The general idea should be fairly clear, though. ""Steve"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The point

[PHP] Re: storing functions

2007-04-04 Thread Steve
The way I organize my stuff is that I have all of my object code, functions, and what not in a specific folder within their own separate files. If there is enough of a certain category of files to flood the directory, I will place those in their own subdirectory. I have separate grouping files t

[PHP] Re: finding a particular record within a MySQL result set

2007-04-04 Thread Steve
Maybe I'm way off here, but when you're looking for his numbered place in the record set, can't you just count the people before him? ID NAME STATE DATE 1 JoeMaine 2006-02-12 2 JimMaine 2006-01-12 3 James Maine 2006-03-12 4 John Maine 2005-05-12 5 Jordan Maine 2006-02-11 Pse

[PHP] Re: Curious Problem with $_POST

2007-04-10 Thread Steve
Is it possible that your zip file is bigger than your max filesize allots? Most likely isn't the problem, but worth doublechecking. "Stephen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a form for uploading files. It is intended to upload photos. I have >it listed at the

[PHP] Re: PHP editor

2007-04-11 Thread Steve
You could always opt to use emacs or vi. ""Jonathan Kahan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I beleive this is in the realm of php (I have learned my lesson from last > time). Does anyone have recomendation for any free (I.E. permanently free > not 30 d

[PHP] Re: Question on Portfoilo's

2007-04-11 Thread Steve
If you're working under an NDA or on code that doesn't belong to you, you'll most likely need to hit up the hobbiest side of programming to build your portfolio. Sit down, plan some app that would make your life easier (or someone else's), go through the design process, and then code it to impl

[PHP] PHP 5.3 & PECL & WINDOWS: Compile | VirtualPC | VirtualBox

2009-09-12 Thread steve
Since it has been about a year with no PECL extensions for windows, and I don't think theire ever will be, and I want to move to 5.3, there are tough choices. A: I can try downloading from source and compiling the pecl binaries on windows. No experience compiling on windows, but I guess I can go t

Re: [PHP] getcsv error

2009-10-25 Thread Steve
Brian Hazelton wrote: Brian Hazelton wrote: Brian Hazelton wrote: I have a script which uploads csv data into a database. This works well and has worked in every instance so far. However what I am noticing is that today, even if I escape the data before putting it into mysql it will not enter

Re: [PHP] Two Parser Passes

2009-10-31 Thread Steve
Daniel Kolbo wrote: Hello, Is it possible to get a list (array) of classes not found in a script before the fatal error exits the parser. I realize that PHP parses the script twice. It would be nice at the end of the first parsing pass to check to see which classes haven't been defined (yet),

Re: [PHP] $_POST is empty , but were are the variables posted??

2009-12-17 Thread Steve
On 12/17/2009 1:21 PM, gato chlr wrote: Hi, sorry for ask this again, but i really can't solve it. It must be easy but i can't find the solution this is my code: //form.php name : //and this is the mail.php $name = $_POST["myname"]; var_dump($name); and the result is: NULL i'm usi

Re: [PHP] How to change the first line of a text file

2010-06-12 Thread Steve
On 6/12/2010 2:10 PM, Richard Kurth wrote: I have around 6000 text files and I need to change the first line on every one of them. The first line is the title of the article and I need it look like this the name of the article every file has the first line and the it starts the article on

Re: [PHP] Re: PHP - Header ERROR

2010-06-13 Thread Steve
On 6/13/2010 9:37 AM, Shawn McKenzie wrote: On 06/13/2010 08:43 AM, Don Wieland wrote: Hello, I have a contact form with three fields, name, email, and comment, and a CAPTCHA I am doing some basic validation for empty fields but am getting a PHP error when trying to redirect back to the or

Re: [PHP] the state of the PHP community

2010-07-29 Thread Steve
On 7/28/2010 10:36 PM, Nathan Rixham wrote: Hi All, I find myself wondering about the state of the PHP community (and related community with a PHP focus), so, here's a bunch of questions - feel free to answer none to all of them, on list or off, or add more of your own - this isn't for anyth

[PHP] pcntl_fork() hangs with FUTEX_WAIT

2005-02-16 Thread Steve
futex(0x471cb0, FUTEX_WAIT, 2, NULL" The program runs on PHP 5.0.3-cli and Linux 2.6. Has anyone an idea what could be the reason for that hang? Thanks in advance, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Password Protection

2005-02-17 Thread Steve
Kevin Javia wrote: I am experimenting on my site and I want to make it password protected like www.realsolution.com. If any one enters correct user name and password, only then they will be able to enter into my site. How can I do that in PHP? Any ideas? Thanks a ton in advance. Try this: functio

Re: [PHP] pcntl_fork() hangs with FUTEX_WAIT

2005-02-17 Thread Steve
Well, but I don't use multithreading? PHP is running as CLI exec, not compiled into Apache... That's my configure command: ./configure --enable-pcntl --with-curl --with-mysql Or do I have to care for thread safety anyway? Regards, Steve Richard Lynch wrote: Steve wrote: I have a pro

[PHP] ./configure APC problems with 3.0.16 and what happened to --enable-apc-pthreadmutex???

2008-01-07 Thread steve
When configuring APC 3.0.16 I see this, which I don't recall seeing before: checking dlfcn.h presence... no configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: dlfcn.h: proceeding with the compiler's result checking for dlfcn.h... yes Also --en

[PHP] Re: ./configure APC problems with 3.0.16 and what happened to --enable-apc-pthreadmutex???

2008-01-07 Thread steve
I take it back.. if I use --enable-apc-pthreadmutex I get file locks, but if I don't use the option at all, I get pthreadmutexes. I'm guessing pthead became the new default? On Jan 7, 2008 1:59 PM, steve <[EMAIL PROTECTED]> wrote: > > When configuring APC 3.0.16 I see this

[PHP] ereg help!

2008-01-08 Thread steve
I have a dir of html files that link to websites, i would like to read the dir and print a list of those files as a link. Which the script i have does. I would like to take this one step further and replace the ".html" extension with ".com" so it winds up being: website.com instead of website.ht

Re: [PHP] ereg help!

2008-01-08 Thread steve
s like xyz.php.txt . >(otherwise I'd just use a straight str_replace). Thanks Guess i was just trying to over think it. Have not done much with files. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] APC & FastCGI != upload progress ?

2008-03-26 Thread steve
We can get upload progress to work with the APC extension for PHP 5.2.x only on machines that are not using FastCGI. (Apache2.2 if it matters). Does anyone have a suggestion where to look? Will it even be possible? Thanks in advance, -s -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] APC & FastCGI != upload progress ?

2008-03-30 Thread steve
ument that. FastCGI is also breaking Apache's deflate module, but that is another issue... -s On Wed, Mar 26, 2008 at 6:35 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > steve wrote: > > We can get upload progress to work with the APC extension for PHP > > 5.2.x only

Re: [PHP] APC & FastCGI != upload progress ?

2008-04-03 Thread steve
(reconnect) or does it stream using script tags? What goes on in the server? Does it push the buffer of blank data that WebKit requires? Is it a PHP daemon process running as a simple HTTP server? On Wed, Apr 2, 2008 at 12:09 AM, Manuel Lemos <[EMAIL PROTECTED]> wrote: > Hello, > >

Re: [PHP] APC & FastCGI != upload progress ?

2008-04-09 Thread steve
On Sat, Apr 5, 2008 at 7:44 PM, Manuel Lemos <[EMAIL PROTECTED]> wrote: > on 04/04/2008 03:16 AM steve said the following: > > FastCGI is *the* way to run PHP, but I think Apache is not the > > platform for it anymore. > > If need more than one server, Apache p

Re: [PHP] Threads PHP

2008-05-16 Thread steve
> The word "experimental" makes me shudder. If you can (ie you're using *nix), > you could also investigate the pcntl extension - http://php.net/pcntl And it should. I used the ssh lib for php a long time ago, and now it is nothing more than a set of problems... -- PHP General Mailing List (http

[PHP] Re: Send HTML from PHP scripts ...

2007-05-18 Thread Steve
Might want to put a small bit of effort in first... http://us.php.net/manual/en/function.mail.php Example 1075 ""Kuldip Mond"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I am looking to send a HTML page via a PHP script. The currentl method I use is : mail(

[PHP] Re: showing source

2007-05-18 Thread Steve
Not that it really matters in this scenario, but if you rename a file to .phps you should be able to navigate to it in a web browser and have nice, highlighted syntax. It's pretty nice for internally viewing a file, but obviously I wouldn't recommend doing this with live files that contain sens

[PHP] Re: Too many records to display in one web page

2007-05-29 Thread Steve
The way I handle it: Step 1- Add SELECT SQL_CALC_FOUND_ROWS to the front of your initial query and add the pagination limit to the end (LIMIT 200, 400 or whatever range you want to display.) Step 2- Do a 2nd query: SELECT FOUND_ROWS() immediately after. What does this do? It will return your

Re: [PHP] Re: Too many records to display in one web page

2007-05-30 Thread Steve
Very true. I completely forgot to mention that :( "Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Steve wrote: >> The way I handle it: >> >> Step 1- >> Add SELECT SQL_CALC_FOUND_ROWS to the front of your initial query and add &g

Re: [PHP] Streaming download to IE doesn't work

2007-06-02 Thread Steve
That's why you comment your code. Take the extra time and put a bit of effort into explaining yourself. Add in a paragraph explaining what's going on, link to whatever solution you found on the web (who knows it might still exist), and just outright bloat it with comments. You might find it anno

[PHP] call_user_func_array on STATIC method

2006-08-18 Thread steve
Does anyone know of a way to call a static method with an array of objects? I thought for sure this would work, but it does not: $v = call_user_func_array("$class::$method",$params); Do I have to resort to eval()??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] Where to download APC for windows?

2006-08-23 Thread steve
I used to have a bookmark on where to download APC for windows. Anyone have a link? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Where to download APC for windows?

2006-08-23 Thread steve
tro. If it is not, I am stuffed if I can remember where I got it from (blush). AJ steve wrote: > I used to have a bookmark on where to download APC for windows. Anyone > have a link? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Microsoft Partners With Zend

2006-11-01 Thread steve
On 11/1/06, Daevid Vincent <[EMAIL PROTECTED]> wrote: Personally I'm unsure. I would like to think that Zend is smart enough to realize M$ tactics of embrace/extend and will not allow that to happen. MS added a FastCGI module to IIS. Thats the big thing. The real question is, why doesn't Apach

[PHP] APC and PHP 5.1.2

2006-03-02 Thread steve
I can't get APC 3.0.8 to work on anything, at all. On Windows, it crashes the server, and on Linux, it can't handle objects. For example: Gives: NULL Any idea on what is going on? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] APC and PHP 5.1.2

2006-03-02 Thread steve
gt;getTest(); echo "Test \$one->Test: "; echo $one->Test; echo "Test with eval: "; eval ('$result = $one->Test; '); echo $result; echo "Testing done."; On 3/2/06, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > steve wrote: > > I can't

Re: [PHP] APC and PHP 5.1.2

2006-03-02 Thread steve
:) On 3/2/06, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > steve wrote: > > OK, will try. Does this work in the CVS version? > > > > > error_reporting(E_ALL); > > class A > > { > > public $_t = 'something'; > > public

Re: [PHP] APC and PHP 5.1.2

2006-03-02 Thread steve
f always happen to me? Without APC it runs fine. I'm using Fastcgi version if that matters. -steve-- On 3/2/06, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > steve wrote: > > I can't get APC 3.0.8 to work on anything, at all. On Windows, it > > crashes the server, and

Re: [PHP] APC and PHP 5.1.2

2006-03-02 Thread steve
ng FastCGI & APC-dev) (if this even helps): 5.1.2 -- Failed 5.1.1 -- Failed 5.0.5 -- Success -steve-- On 3/2/06, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > It probably does. I have never tried it against the Fastcgi sapi. Try > it with the Apache module version to rule this

Re: [PHP] Re: APC and PHP 5.1.2

2006-03-03 Thread steve
s to make everything more compatible with their other products, but I bet there is some interal reason why that won't happen. On 3/2/06, Jens Kleikamp <[EMAIL PROTECTED]> wrote: > steve wrote: > > You know not what you ask!! I'm going to have to wait a bit before I > >

Re: [PHP] Re: APC and PHP 5.1.2

2006-03-03 Thread steve
enable-inline-optimization' '--enable-memory-limit' '--enable-exif' '--enable-fastcgi' '--enable-force-cgi-redirect' '--without-pear' Can you check yours? Maybe there is a conflict with the modules compiled in and APC's optimizer (though tha

[PHP] Fwd: one more php opcode cacher for your choice

2006-04-04 Thread steve
Is anyone aware of how this compares? -- Forwarded message -- From: Xuefer <[EMAIL PROTECTED]> Date: Apr 3, 2006 10:04 PM Subject: one more php opcode cacher for your choice To: Lighttpd List <[EMAIL PROTECTED]> http://blog.lighttpd.net/articles/2006/04/04/one-more-opcache-for-ph

[PHP] PDO on Win2000Server

2006-04-17 Thread Steve
Hi I'm having trouble getting PDO to work on Windows 2000 Server with PHP 5.1.2. I've enabled the extensions in php.ini, which was all I thought I had to do. Is there anything else? I thought PDO would show up in phpinfo(), but it doesn't. In my code, when I call: new PDO(...); I get an erro

[PHP] Creating an OO Shopping Cart

2006-04-20 Thread Steve
Hi I'm creating my own Object Oriented PHP Shopping Cart. I'm confused about the best way to call the functions of the class given the "static" nature of the web. For example, if I have a function addItem($code), how will this be called from the catalog or product description pages where the

Re: [PHP] Creating an OO Shopping Cart

2006-04-20 Thread Steve
aking the time to respond and assist me. Do you have any specific shopping carts that you would recommend I take a look at? Any that ARE well written. Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Creating an OO Shopping Cart

2006-04-20 Thread Steve
, the checkout, or catalog pages, at the top of the code I always need to check if files are being added, deleted or changed qty. Is this correct? This is my biggest concern. What's the best way to interact with the Cart class when adding/removing items? Thanks Steve addItem($_GET['add

  1   2   3   4   5   6   7   8   9   10   >