Re: [PHP] Disk Usage

2001-09-22 Thread Steve Werby
they > doesn't seem to work at all for me. If you're on Linux or another un*x, try calling 'du' using system() or a similar command. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] ucwords added functionality?

2001-09-24 Thread Steve Edberg
I came up with a function to to that last month; see the PHP archives: http://marc.theaimsgroup.com/?l=php-general&m=99778991424637&w=2 -steve At 11:20 PM -0400 9/23/01, Jack Dempsey wrote: >i could roll my own, and for now will just use a str_replace after ucwords, >b

Re: [PHP-INST] PHP4 and Apache 1.3.20 DSO mode not working?

2001-09-02 Thread Steve Brazill
If Apache wasn't detecting the PHP script files your testing with (and 'loading' PHP to parse and execute it), you'd at least just have the 'text' of the script displayed in the browser. You haven't provide much detail on 'how' you installed the products or the 'config' statements you used... -

[PHP] Querying an object's functions

2001-09-24 Thread Steve Cayford
nd if so use that, otherwise use some generic object-to-html function. I could just put a member variable in the object and check for that, but it would be more elegant to be able to check for the function directly. Thanks for any suggestions. -Steve -- PHP General Mailing List (http://www.ph

Re: [PHP] Querying an object's functions

2001-09-24 Thread Steve Cayford
Thanks. Sorry for missing that. -Steve On Monday, September 24, 2001, at 05:54 PM, Rasmus Lerdorf wrote: > http://www.php.net/manual/en/function.get-class-methods.php > > On Mon, 24 Sep 2001, Steve Cayford wrote: > >> Is there any way in PHP 4.0.6 to query an obj

Re: [PHP] help with Mysql Query...

2001-09-24 Thread Steve Werby
having a query that creates a temporary table, then drop it... No temp table necessary. Use a LEFT JOIN. SELECT * FROM table_a LEFT JOIN table_b ON table_a.id = table_b.id WHERE table_b.id IS NULL -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP Genera

Re: [PHP] Problem with regex

2001-09-25 Thread Steve Edberg
want to, for example, enforce a password length of 4 to 8 characters, you can do: ereg('^[a-z][-a-z0-9\._]{2,6}[a-z]$', $TestPwd) See http://php.he.net/manual/en/function.ereg.php for more info. -steve At 5:55 PM -0700 9/24/01, Oliver Ertl wrote: >Hi,

Re: [PHP] Feature?

2001-09-25 Thread Steve Cayford
Maybe this? A bit verbose, but functional. -Steve 'hello', 'banana' => 'world')); ?> On Tuesday, September 25, 2001, at 06:25 AM, Andrey Hristov wrote: > Yeap, I know that. I thought about this bit of hack but this breaks the > conception on

Re: [PHP] Getting my head around nulls

2001-09-25 Thread Steve Cayford
> > This takes a column or literal as its first arg and if arg is null > returns > 2nd arg otherwise returns arg. In other words if the column is null it > is > replaces by arg2 otherwise it is simply returned. > Um, that's what ifnull() does. At least it works for me. -

Re: [PHP] php script ownership

2001-09-25 Thread Steve Werby
ere was a thread a few hours ago which described how to install and run in this mode. Just set the script's owner to the desired user and that's who it will run as. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://ww

Re: [PHP] display query results at random

2001-09-26 Thread Steve Werby
from $var[], removing each element after it's selected (more efficient) or adding code to ensure the same element isn't picked twice (less efficient). -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Getting my head around nulls

2001-09-26 Thread Steve Cayford
On Wednesday, September 26, 2001, at 02:48 AM, [EMAIL PROTECTED] wrote: > > > > > > > Steve Cayford <[EMAIL PROTECTED]> on 25/09/2001 17:28:57 > > > > To: [EMAIL PROTECTED] > cc: [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: Re: [PHP]

[PHP] Extract. Was Re: Feature?

2001-09-26 Thread Steve Cayford
Just looking up that extract function, the manual says it extracts into the current symbol table. I assume that means that within foo() the array would be extracted into local variables. Is that right? -Steve On Wednesday, September 26, 2001, at 06:50 AM, Alister wrote: > Follow up to

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Steve Cayford
Also look for missing semicolons and unclosed braces in the lines above 22. -Steve On Wednesday, September 26, 2001, at 09:19 AM, Derek Mailer wrote: > oops...I was going to add... > > 2) - > > $result = mysql_query($query, $mysql_link); > > doesn't require the

Re: [PHP] Array Elements & While Loops

2001-10-01 Thread Steve Cayford
Where is the closing brace for your while loop? -Steve On Monday, October 1, 2001, at 07:04 AM, Tom Churm wrote: > hi, > > my problem is this: i'm using a while loop to check elements in an > Array for valid email syntax. if $User[0] is a valid email address but > $User

Re: [PHP] object references lose local variables

2001-10-03 Thread Steve Strassmann
Hi, I'm the original author. I put my address in the body of the message to avoid spammers. To answer your question, nobody answered my question. However, after messing around, I found a change that did the trick. Coming from an OOP background (lisp, smalltalk, etc.) it sure seems to me that PHP h

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Steve Werby
w has a single > quote in it). Try addslashes() before executing the query and stripslashes() when retrieving data from the db. See the online manual for more details. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.ph

Re: [PHP] stripslashes

2001-10-04 Thread Steve Werby
$row[description]$row[solution] > > where would i put the stripslashes function to get the description? $var = $row[product] . '' . $row[prob_title] . '' . stripslashes( $row[description] ) . $row[solution]; -- Steve Werby President, Befriend Internet Services LLC http://ww

Re: [PHP] need phpmyAdmin but no so good

2001-10-04 Thread Steve Werby
page in the phpMyAdmin session. Or you could reinvent the wheel. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] MySQL tables are read-only

2001-10-04 Thread Steve Werby
so we can help. SELECT * FROM mysql.user WHERE user = 'yourusername'; SELECT * FROM mysql.db WHERE user = 'yourusername'; BTW, this is really a purely MySQL problem and is better suited for the mysql mailing list. See mysql.com if you'd rather take the topic there. --

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Steve Edberg
things in which are inside an if, even if the if equates >to false. Not true; require() has this behavior, but include() does not. See http://php.he.net/manual/en/function.require.php and http://php.he.net/manual/en/function.include.php -steve > >This means that th

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Steve Werby
depends on the configuration of PHP (I'm thinking magic quotes settings off-hand). From experience I know that stripslashes() can be needed when retrieving data from a db. Just today I've had to do so for clients separately using PostgreSQL and MySQL. YMMV. -- Steve Werby P

[PHP] Re: OT page load speed [was: howw do I programm a PREV & Next mechanism in PHP? Help Please!!]

2001-10-04 Thread Steve Werby
m a single PHP script by configuring Apache to point requests to this script using the AliasMatch directive so that the end user and search engines thinks the content is static and the URLs don't get cluttered with ugly query strings. However that doesn't improve speed, it actually degr

Re: [PHP] ODBC version of PHPMyAdmin?

2001-10-05 Thread Steve Werby
be able to find it at www.greatbridge.org, but Great Bridge has closed its operation so you'll probably have to look elsewhere. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Re: Submitting variables via /'s

2001-10-05 Thread Steve Werby
ialhandlingequipment-bids.com/products/pallet_rack.html If you want to browse a couple of my side projects you'll see I implement the same practices there too. http://www.sexcriminals.com/ (not an adult content site) http://www.tysonchandler.com/ HTH, -- Steve Werby President, Befriend

[PHP] Re: php & paypal

2004-07-27 Thread Steve Douville
If you have a business account there, you can use the PayPal API which does return values to you when the transaction is complete. Take a read through the PayPal docs, it's pretty well laid out there. "Mike R" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Does anyone know if it i

[PHP] Re: php inventory control software

2004-08-02 Thread Steve Douville
Take a look at www.oscommerce.com > Any one can suggest me a php template (or modules) of a > web-based inventory control software including a web-store. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] JSR223 / PHP 5 under Tomcat issue

2004-08-17 Thread Steve Wardell
s/web/php/test.php* on line *40 *Another page that uses libraries that are part of the JSR223 examples JAR are working fine. Anyone have any thoughts? This might have been experienced in the previous experimental servlet support that was in PHP 4. Thanks, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] delimiter question?

2004-08-24 Thread Steve Buehler
How can I make the following work on an apache 2.0.46/php 4.3.2 installation? /dist/gogo.php/order-inventory-form.php Right now, unless it is a question mark after the gogo.php script, it will not run. Thank You Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] path info question. Was delimiter question?

2004-08-24 Thread Steve Buehler
Thank You. I didn't know where to start looking. Anyway, putting the following lines in an .htaccess file in the directory worked like a charm: AcceptPathInfo On Thanks to all who helped. Steve At 02:02 PM 8/24/2004, you wrote: > How can I make the following work on an apache 2.

Re: [PHP] xml tags interfere with php tags

2004-09-01 Thread Steve Edberg
-tags is discouraged for this, among other, reasons. -steve -- +--- my people are the people of the dessert, ---+ | Steve Edberg [EMAIL PROTECTED] | | University of California, Davis (530)754-9127 | | Progra

[PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Steve Brown
I'm using PHP to write some backup scripts. One of the scripts uses PHP to connect via FTP to a server, download some scripts and tar them up. I'm getting intermittent segmentation faults with this script, and I'm not sure what to report to troubleshoot this. Can someone tell me what would be us

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Steve Brown
> 1) Environment > a) OS > b) PHP Version > c) CLI or web-based > d) Are you running php as an apache module? I'm runnning PHP 4.3.8 in CLI on Redhat 9 in this particular case. PHP compiled with --enable-ftp (among other things). PHP is installed as an Apache2 module, but (obviou

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Steve Brown
;ve created bug #30027, so hopefully this will be addressed soon. Thanks for your help! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Steve Brown
> ...and just for clarification... after re-reading my response to you it came > to my attention that one might assume I'm somehow involved with PHP > development. You mean you won't be the person fixing this bug?? Man, I'm screwed now! j/k ;-) No worries! -- PHP General Mailing List (http://

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Steve Brown
the firewall. I'm sorry that you feel you know better than everyone on this list. Just try this and prove us wrong. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sorting multidimensional array by a second level value

2004-09-17 Thread Steve Brown
> I'd like to sort the array based on one of the values in the field > href, description, or time. Is there a canonical way of doing this? Probably easiest to write your own sort function the use usort(), http://www.php.net/usort has pretty good documentation on how to accomplish t

Re: [PHP] reading from files

2004-09-17 Thread Steve Brown
> I am wondering how to read lines from a file to a php array? I would like to > integrate a logfile into a html site. Is it possible to read line by line and to > check how many lines there are in total? I'm new here, so someone please tell me if "RTFM" is frowned upon as a response. :) http://w

Re: [PHP] mysql_connect does not connect

2004-09-20 Thread Steve Brown
> I definitely mind. I don't believe in rewarding bad behavior. It is > reasonable to contribute to the productive development of solutions, but the > attitude in this group is not productive. I have the impression that the > real reason you want answers is so that you can continue in unproductive

Re: [PHP] Virtual Host problem

2004-09-23 Thread Steve Brown
> Someone correct me if I am wrong, but haven't you just confused the > hell out of Apache? You have just declared three virtual hosts, all > listening on port 80, but apache has no way to identify them based on > the incoming packets. You need to add a "ServerName" directive to > each virtual ho

RE: [PHP] Re: php and print

2004-10-11 Thread Steve Murphy
Why not just use CSS? http://www.alistapart.com/articles/goingtoprint/ Steve -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 12:23 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: php and print Harlequin wrote: >Bruno > >

RE: [PHP] Print window function???

2004-10-15 Thread Steve Murphy
Web standards my friend. Use CSS, learn from the master: http://www.alistapart.com/articles/goingtoprint/ -Original Message- From: Tony Kim [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 3:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Print window function??? Is there a function

[PHP] Resetting result sets after looping

2004-09-29 Thread Steve Douville
I seem to be missing something. Any Ideas? TIA, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Steve Murphy
Can we start mass flaming this guy? Ok one nice one... http://www.php.net/mailing-lists.php goto the bottom of the page and unsubscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:20 AM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Create unique non-autoincrement key for 700,000 records?

2008-12-15 Thread Steve Edberg
e the uuid() function - http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#function_uuid - instead of the md5() above, eg update mytable set unique_field=uuid(); - steve On Monday, December 15, 2008, at 09:37PM, "Bastien Koert" wrote: On

Re: [PHP] Reverse IP lookup

2009-02-16 Thread Steve Holmes
27;t know how reliable or up-to-date it is. > > > Andrew > >From my test I can say it doesn't work. I put in our web server (which has a couple of virtual hosts on it) and got 16 host names back most of which are for completely different servers - all at purdue.edu, but not even in the same department. Steve.

Re: [PHP] ltrim behavior.

2009-03-12 Thread Steve Holmes
ttp://ancientstones.com http://earthstones.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Tedd, Just because I'm a nit-picker, your comments are wrong. Exchange the right and left comments and it's right. Steve.

Re: [PHP] "/home/{user}/directory"

2009-03-18 Thread Steve Holmes
On Tue, Mar 17, 2009 at 9:51 AM, Thiago H. Pojda wrote: > On Tue, Mar 17, 2009 at 10:42 AM, George Larson > wrote: > > > In my scripts, I usually define a boolean constant DEBUG. True looks for > > local copies of includes and echoes queries as they're used. > > > > My question is: > > > > Is the

Fwd: [PHP] MySQL, MD5 and SHA1

2009-04-21 Thread Steve Holmes
Oops, meant to copy the list. -- Forwarded message -- From: Steve Holmes Date: Tue, Apr 21, 2009 at 10:13 PM Subject: Re: [PHP] MySQL, MD5 and SHA1 To: Per Jessen On Tue, Apr 21, 2009 at 1:35 PM, Per Jessen wrote: > Jan G.B. wrote: > > > A web application

[PHP] porting C code to php

2009-07-06 Thread Steve Hanselman
ns of structs work very well for this. I'm loathe to turn this code into substr's of the input line, has anybody any other ideas? Regards Steve The information contained in this email is intended for the personal and confidential use of the addressee only. It may also be privile

Re: [PHP] isset not functioning

2009-08-03 Thread Steve Brown
> if(isset($_REQUEST['firstname']) && !empty($RESULT['firstname'])) { >  $name = $_REQUEST['firstname']; >  } else { >  $name = 'Sir or Madam'; > } > > Can anyone see any problems with the code? Your conditional will never evaluate to true. What is $RESULT? Where did it come from? $RESULT is no

Re: [PHP] Holes in mysql primary key and other db issues...

2007-03-05 Thread Steve Edberg
of queries should do the trick, though (untested; need to doublecheck edge cases of max/min id, 0 & 0.99 random #'s): select max(id) from your_table into @max_id select * from your_table where id > ceil(rand() * @max_id) limit 1 For more info, see: h

Re: [PHP] Back to security

2007-03-10 Thread Steve Edberg
SSLRequireSSL for the directories that should be SSL-secured. steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMA

Re: [PHP] Array mysteries

2007-03-11 Thread Steve Edberg
time.php I think you'll find your work has been at least partially done for you. And, see http://php.he.net/manual/en/language.variables.scope.php for more information on variable scope. steve -- +--- my people are the people of the dessert, -

[PHP] Reading files in PHP 5.3.0

2009-09-10 Thread Steve Brown
d preclude the code below from working? Am I going crazy? Or did Apple f...@# something up in this release? Thanks, Steve BEGIN CODE == function parseResponseHeaders($header_file) { $http_found = $error_found = false; $http_reponse = $error_message = NULL;

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Steve Brown
>> function parseResponseHeaders($header_file) { >>     $http_found = $error_found = false; >>     $http_reponse = $error_message = NULL; >> >>     $response = array(); >>     $response['ResponseCode'] = NULL; >>     $response['ErrorMessage'] = NULL; >> >>     if (!is_file($header_file) || >> !is_r

[PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
Can anyone point me in the right direction to fix this? Have you ever seen this before? Thanks, Steve Marquez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
ot;"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { extract ( $line ); $LimitChars = substr("$prayer", 0, 65); echo "$view - $date"; } echo ""; ?> I downloaded and installed the iPhone SDK to develop some iPhone apps.This form has worked f

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
Strangest thing... it just started working again. Odd. Is there an easy way to view the error logs? As you can tell, I am still a novice at this. I am on Apache2 Thanks for your help. -- Steve Marquez Marquez Design e-mail: smarq...@marquez-design.com web: http://www.marquez-design.com phone

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
I am on Mac OS 10.6 I found the logs using the console. It was pretty easy and displays nicely. I am reviewing the entries now. Thanks for your help. -- Steve Marquez Marquez Design e-mail: smarq...@marquez-design.com web: http://www.marquez-design.com phone: 479-648-0325 On Jun 3, 2010, at

[PHP] Standalone WebServer for PHP

2010-09-10 Thread Steve Staples
own "web server" even if apache is installed. i want to be able to run it on like port 8880 or something... just looking out there fro something... TIA! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Standalone WebServer for PHP

2010-09-10 Thread Steve Staples
OH, i forgot to mention, if it ran on windows or linux, and required no "install", just ran as an executable or something. Steve. On Fri, 2010-09-10 at 16:37 -0400, Steve Staples wrote: > Ok, here it goes... > > I am building an app, that requires a web interface. I am us

Re: [PHP] Standalone WebServer for PHP

2010-09-13 Thread Steve Staples
o go with XAMPP, and remove all the stuff i dont need, and trim some fat, and remove all the hard links to the /opt/lampp directory in linux, and figure out what it is in windose later... anyway, thanks for all the ideas. Steve. On Sun, 2010-09-12 at 22:37 -0400, Paul M Foster wrote: > On

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Steve Staples
here's a silly idea... put the database on his computer (or the entire app). that way, when he's *there* he is logged in. if the computer is off, he's not there, the app wont work (and the database). Steve On Mon, 2010-09-13 at 11:26 +0100, Richard Quadling wrote: > On 12

Re: [PHP] Install library

2010-09-17 Thread Steve Staples
ordan > If i can suggest an alternative, FPDF.org is a pdf creator class. I've used it on the majority of my projects, and it works great. It has a lot of plug-ins that can simplify the creation of PDF's even easier. and with it being a class, you dont have to "install" it

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Steve Staples
other people deal with this? > > Thanks, > Alex > Have you thought about SMARTY templates? easy to use, it's just a class, and you write your html in template files, which are easier to read than in your php files. Just a thought... i personally LOVE smarty template. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Heredocs, print_r() and newline "\n" and fnmatch() - curious failures ...

2010-09-24 Thread Steve Staples
(but i use smarty templates instead)), I always wrap them in curly braces {} as that is "suggested" (and I personally think should be required). Steve On Thu, 2010-09-23 at 21:47 +0200, YAD(YetAnotherDavid) wrote: > This code is 95% cut and paste from the PHP manual examples - >

RE: [PHP] if/elseif being treated as if/if

2010-09-24 Thread Steve Staples
does work in PHP. :-) > All you have to remember, and same as with this switch, is that the first match, will stop processing the rest of the stuff. Steve. > Cheers, > > tedd > > -- > --- > http://sperling.com/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting a mysql date value

2010-09-29 Thread Steve Staples
ere, rather than in your PHP... and you can change the date_format in your query via PHP if you need to change it on the fly... if the dates were in UNIX TIME, you can do it like: SELECT DATE_FORMAT(FROM_UNIXTIME(`field_name_in_unix_timestamp`),'%b %d %Y %h:%i %p'); Steve On Wed, 20

Re: [PHP] New to PHP and struggling with the basics

2010-10-04 Thread Steve Staples
st it didn't used to) Steve On Mon, 2010-10-04 at 13:51 +0100, Col Day wrote: > Hi Kranthi, > > No, I just literally get the "HTML" line shown but absolutely nothing > beneath it. > > "kranthi" wrote in message > news:aanlktin2xnthqm-pp7qwtgo=s

[PHP] open .zip from memory...

2010-10-04 Thread Steve Staples
_name, zip_entry_filesize and obviously zip_close. Can this be done, or should I just forget it, and use the /tmp dir? Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] open .zip from memory...

2010-10-04 Thread Steve Staples
On Mon, 2010-10-04 at 10:12 -0700, Jim Lucas wrote: > Steve Staples wrote: > > Not sure if my subject is misleading or not, but anyway, here it goes... > > > > I am trying to download a file using file_get_contents($url) which > > happens to be a .zip file. > >

Re: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-05 Thread Steve Staples
web server software is) to have it spit back to a web browser client. Hopefully this makes sense, it is early here, i am just getting into work :(, and it made sense while i was typing it... but my coffee intake has not had time to work it's wonderful magic with me yet, so my thoughts may be sca

Re: Fw: [PHP] Connecting to MySql with PHP

2010-10-05 Thread Steve Staples
On Tue, 2010-10-05 at 13:35 +0100, sueandant wrote: > - Original Message - > From: sueandant > To: a...@ashleysheridan.co.uk > Sent: Monday, October 04, 2010 10:29 PM > Subject: Re: [PHP] Connecting to MySql with PHP > > > Thanks Ash > > Where do I find the PHP mysql module? I have

RE: Fw: [PHP] Connecting to MySql with PHP

2010-10-05 Thread Steve Staples
On Tue, 2010-10-05 at 14:02 +0100, Jason wrote: > >-Original Message- > >From: Steve Staples [mailto:sstap...@mnsi.net] > >Sent: 05 October 2010 13:55 > >To: php-general > >Subject: Re: Fw: [PHP] Connecting to MySql with PHP > > > >On Tue,

Re: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-05 Thread Steve Staples
that he is getting the php to work when he uses the localhost, but when he tries to open a php file from say his desktop, he doesn't see the php stuff... which is exactly as designed since running form your desktop, php does not execute the code... i am guessing that he just needs to use his localhost directory. Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] which one is faster

2010-10-05 Thread Steve Staples
; plan to run a line like that in a loop or something hundreds of > thousands of times, you probably won't notice any difference. > Thanks, > Ash > http://www.ashleysheridan.co.uk > > to be proper, shouldn't it technically be $c = "{$a}{$b}"; ?? Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] which one is faster

2010-10-05 Thread Steve Staples
On Tue, 2010-10-05 at 20:53 +0100, Ashley Sheridan wrote: > On Tue, 2010-10-05 at 15:46 -0400, Steve Staples wrote: > > > On Tue, 2010-10-05 at 20:35 +0100, Ashley Sheridan wrote: > > > On Tue, 2010-10-05 at 15:28 -0400, chris h wrote: > > >

Re: [PHP] which one is faster

2010-10-06 Thread Steve Staples
to figure out why you did it the way you did :) (documentation is essential for deciphering code the next day) If you're worried about I/O processes, and have to constrain yourself to using 1 or 2 more I/O processes, then you should do a lot of benchmarking to determine for yourself which is more efficient on your hardware. again, just my $0.02. Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class mysqli not found

2010-10-06 Thread Steve Staples
e it here for us to trouble shoot (if it is the apache->php->mysql connection problem) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-07 Thread Steve Staples
c3ac in the past, I set up coppermine for a friend of mine, and he said it works ok... but like I said, there are lots out there, and maybe consider using one of them for now, so you can spend more time with your new baby :) Steve. On Thu, 2010-10-07 at 09:00 +0100, a...@ashleysheridan.co.u

Re: [PHP] [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

2010-10-08 Thread Steve Staples
rain... LOL on a side note, where would you even get this info? is there a set formula for sunrise/set? Steve > -- > > Network Infrastructure Manager > Documentation, Webmaster Teams > http://www.php.net/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] poll of 'public framework or roll your own'

2010-10-13 Thread Steve Staples
mes phpmailer) jquery that is about all I use for every site i develop now. I am still fine tuning my classes/functions so that everything is more manageable and stream lined. my custom "switchboard/index" uses mod-rewrites, and does prolly a lot more than it needs to do, but i find

Re: [PHP] Re: Zip files: generate text file in archive on the fly

2010-10-18 Thread Steve Staples
-04 at 10:12 -0700, Jim Lucas wrote: > Might see if this page will glean you any information > http://us3.php.net/manual/en/wrappers.php.php > > I think the php://temp or php://memory will work for you instead of a > file on the file system. maybe this will help you create a

Re: [PHP] Formatting an ECHO statement.

2010-10-18 Thread Steve Staples
> want to have the HTML output italicized, you must surround the term with > the proper code. And in this case, the proper code is actually '', > not ''. The '' code is being deprecated. > > Paul > > -- > Paul M. Foster > Another option: echo 'Other Comments: '. $other .''; or create a style sheet, with a class definition for italic. Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mytr...@mail.us auto responder

2010-10-18 Thread Steve Staples
am, please open the following link: http://www.mytrash.mail.ua/confirm/1287409388.H34971P12680.mx.mail.ua After that your address will be automatically added into my address book and you will be able to send me messages from "Steve Staples" without any additional checks. You can also us

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Steve Staples
to use this (as the script takes a few seconds to finish, and there are people hitting the back button, or soemthign else that is screwing the submission. I haven't implemented it (life has been busy) yet, but it seems to be what I was looking for, which may be what you're lookin

RE: [PHP] Questions from a Newbie - Please Help

2010-10-19 Thread Steve Staples
i am pretty sure i read it on here already... but your PHP code looks wrong. ORIGNAL CODE: /* * Create Database test22 */ FIXED CODE: END FIXX firstly... you are missing your ending ; AFTER the " on most of your lines... and i've seen this before, where it wont throw the err

RE: [PHP] Questions from a Newbie - Please Help

2010-10-19 Thread Steve Staples
On Tue, 2010-10-19 at 11:18 -0700, Tommy Pham wrote: > > -Original Message- > > From: Steve Staples [mailto:sstap...@mnsi.net] > > Sent: Tuesday, October 19, 2010 11:07 AM > > To: Ethan Rosenberg > > Cc: php-general@lists.php.net > > Subject: RE: [PHP] Q

[PHP] Printing....

2010-10-22 Thread Steve Staples
know it is friday afternoon... ;) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Character encoding hell

2010-10-26 Thread Steve Staples
e the page... ThisPage.php was the same as thispage.php... when we moved it to linux, non of the damned links worked...so we had to do a bunch of changes... Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fwd: Mail delivery failed: returning message to sender

2010-11-02 Thread Steve Staples
On Tue, 2010-11-02 at 11:10 +, Nathan Rixham wrote: > Ben Brentlinger wrote: > > it could be that you tried a cheap hosting account with a company that > > have a bulk mailing script meant for sending spam. I can imagine a spammer > > hijacking your site to send malware from it, one of the more

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Steve Staples
On Thu, 2010-11-04 at 00:00 +0800, David Nelson wrote: > Hi Thijs, :-) > > On Wed, Nov 3, 2010 at 20:38, Thijs Lensselink wrote: > > I re-read your original post. And noticed you include the function inside > > your child action.php > > Is there a special reason for that? You want to overwrite th

Re: [PHP] php-general-digest-unsubscr...@lists.php.net not working?

2010-11-04 Thread Steve Staples
On Thu, 2010-11-04 at 12:34 -0400, Daniel P. Brown wrote: > On Thu, Nov 4, 2010 at 12:33, Daniel P. Brown > wrote: > > > >If you continue to have issues, let me know and I will remove you. > > From the list, that is, to be clear. Not the Earth. > i lol'd. -- PHP General Mailing Li

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-04 Thread Steve Staples
milar channels for other distros. > > still though, update the locate database and see if you just need to enable > sockets in a cli specific ini file. > > -nathan is there a PEAR module you can install that will do this? I know there are a lot of PEAR modules out there... ju

[PHP] read smb drive

2010-11-05 Thread Steve Staples
p would be appreciated... Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] read smb drive

2010-11-05 Thread Steve Staples
On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: > > > Hey guys (and gals) > > > > I am writing something that needs to connect to a SMB server... can this > > be done easliy? > > > > I copie

Re: [PHP] read smb drive

2010-11-05 Thread Steve Staples
On 5 November 2010 16:30, Nathan Nobbe wrote: > >>> > >>> > >>>> On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples > >>>> > >>>> > >>> wrote: > >>> > >>> > >>>> On Fr

Re: [PHP] Template engines

2010-11-08 Thread Steve Staples
lazy to change now ;) ) all of my projects now consist of smarty, pear mdb2, phpmailer, jquery, fpdf (if needed), and pchart (again, if needed). these are my personal choices, and I have been happy with them so far ;) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Chat

2010-11-09 Thread Steve Staples
On Tue, 2010-11-09 at 16:51 +0100, Dušan Novaković wrote: > Hello there, > > I have to make chat for website that has around 10 000 users (small > social network). So before I start, I would like to hear different > opinions. Important thing is to have in mind that in one moment you > can have ove

<    7   8   9   10   11   12   13   14   15   16   >