Re: [PHP] PhpMyAdmin Help Needed

2002-10-16 Thread Stuart
is being generated by Apache and is therefore nothing to do with the phpMyAdmin configuration file. My guess is that you have the case wrong. Try http://localhost/~pgarcha/phpMyAdmin/index.php -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Free compiler for Win

2002-10-30 Thread Stuart
/zend-accelerator.php I hope that helps. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regular expression problem

2002-11-01 Thread Stuart
e. A sizable chunk of the text at the start of the variable has been lost and I cannot figure out why. Can anyone give me any pointers? Thanks. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Outputting multiple images

2002-11-07 Thread Stuart
absolute path to the image on the server, not URL. Is there a way to get the script to load in the new photos? When you create the src tag in for the image, add a random number query string - that will cause the browser to request the image instead of using the cached version. I.e... echo &#

Re: [PHP] Other Notice problem...

2002-11-08 Thread Stuart
ay nothing. If i have register_globals=on, then the echo command displays the value buy this way is deprecated. How can i run the script without problems having register_globals=off? p02.php code: ... ... echo $_GET['pp']; ... ... -- Stuart -- PHP General Mailing List (http://www.php.

Re: [PHP] Other Notice problem...

2002-11-08 Thread Stuart
ster_globals on. -- Stuart p02.php code: ... ... echo $_GET['pp']; ... ... -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Other Notice problem...

2002-11-08 Thread Stuart
okies, etc). You can use other variables in the same way as you ever did. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini

2002-11-08 Thread Stuart
won't probably find it there, you'll have to copy it there yourself. The easiest way to find out where PHP expects your php.ini to be is to create a page that calls phpinfo() - the configuration file location is near the top of the output. -- Stuart -- PHP General Mailing List (http://w

Re: [PHP] catching a robot or spider

2002-11-20 Thread Stuart
cript containing extra URL's for the robot. The best way I've found of doing this is to include the links as 1x1 transparent gifs on the index page. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Windows Environment Variables

2003-11-26 Thread Stuart
Rodney Green wrote: $blah = shell_exec ("echo %ComputerName%"); Eww, evil. Try http://php.net/getenv -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wrong output with a - PLEASE HELP

2003-11-27 Thread Stuart
A. Mikkelsen wrote: But when I ECHO 'new_loc_path' in a function I get S:\\Script\\License\\ But I want go get S:\Script\License\ http://php.net/strip_slashes You might also want to look into the magic_quotes_gpc option in php.ini. -- Stuart -- PHP General Mailing

Re: [PHP] Wrong output with a - PLEASE HELP

2003-11-27 Thread Stuart
Stuart wrote: http://php.net/strip_slashes http://php.net/stripslashes (oops, sorry) -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changing User Agent for fopen

2003-12-05 Thread Stuart
how big the file will be. Try the following... http://www.google.com/search?q=php'; $fp = fopen($url, "r"); while (!feof($fp)) { $buffer = fread($fp, 1024); echo $buffer; } ?> -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changing User Agent for fopen

2003-12-05 Thread Stuart
Nick Wilson wrote: * and then Stuart declared 2) If you want to query google you're better off using the google SOAP API - it's legal for a start. See the following for more info... http://www.google.com/apis/ http://www.devshed.com/Server_Side/PHP/GoogleAPI/page1.html

Re: [PHP] How to use anchor with php post string to jump to a page???

2003-12-12 Thread Stuart
ery string, like so... http://www.yourserver.com/yourpage.htm?color=red#RowNum3 target="doc">Jump -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] enable_trans_sid problem

2003-12-12 Thread Stuart
Ewald Geschwinde wrote: The problem is the /> at the end. Has anyone seen this before? What can I do against it? Why do you want to get rid of it? It's there to make it valid XHTML. It shouldn't cause any problems. -- Stuart -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] PHP LDAP query - need to add Exchange fields

2003-12-18 Thread Stuart
of the fields in Exchange are exposed through LDAP (this is from experience, I have no reference to back this up but would appreciate it if someone else has any info on the LDAP implementation in Excahnge 5.5+). I would guess from your question that 'office' is one of the fields th

Re: [PHP] _ENV

2004-01-09 Thread Stuart
7;DOCUMENT_ROOT'] -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] deamon / server

2004-01-09 Thread Stuart
Decapode Azur wrote: Is it possible to make php scripts working like deamons and build something like a server? Yes. http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-answers.html -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Fw: Intermitent problems retreiving PDF's from a MySQL database.

2004-01-10 Thread Stuart
internet explorer. There are no error messages in the apache log or the mysql log. Does anyone have any idea what is going on?!? This is most likely an issue with the client-side (i.e. the Acrobat IE plugin) and not PHP given that restarting IE (i.e. restarting the plugin) solves it. -- Stuart

Re: [PHP] picturing webpage

2004-01-10 Thread Stuart
n display thumbs of pages on your site in its reports. It runs on Windows and appears to load the page in and embedded IE instance then takes a screenshot. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Uplaod

2004-01-11 Thread Stuart
the default value of 2MB. Try setting it and see what happens. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php doesn't work in html files

2004-01-11 Thread Stuart
you either need to rename index.html to index.php or tell the web server to run .html files through PHP (refer to the PHP manual for details on how to do this). -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] picturing webpage

2004-01-11 Thread Stuart
bed at some later date and is then periodically updated unless no requests are made for it after a certain period. But I'm just making a slightly educated guess. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array Key Test

2004-01-12 Thread Stuart
Cameron B. Prince wrote: How would I go about determining if a specific key exists in an array? http://php.net/isset I want to see if $conf['hOpt'] is defined. is_array only works at the $conf level. I tried count(array_keys($conf, 'hOpt')), but always get 0. if (isset($conf[

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Stuart
";, "r"); $contents = fread($fp); print $contents; fclose ($fp); print '' . "\n"; ?> fread takes 2 parameters: the file pointer and the number of bytes to read. See http://php.net/fread for full info. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to compare between two values?

2004-01-16 Thread Stuart
that will introduce you to the fundamentals of PHP. There is a list of titles here: http://php.net/books -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Schedule an Event with PHP

2004-01-16 Thread Stuart
thods like running a PHP script as a daemon and getting web requests to check each time but neither of those are anywhere near as reliable or efficient as cron. Why don't you want to use cron? -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is wrong with these Codes!!!!???

2004-01-20 Thread Stuart
file of the database No you didn't... which is actually a good thing. Feel free to include snippets of code, ideally 3-4 lines before and after the line specified in the error message, but I (and I'm sure many others) on this list would prefer it if you didn't send attachments - I g

Re: [PHP] Cookie Guestion

2004-01-20 Thread Stuart
27;t forget the effect media hype had on their reputation. Cookies were portrayed as bad guys. As John says, they're not if they're used correctly, but it only takes one high-profile example of improper use to tarnish a reputation forever. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running PHP as a CGI, chasing my own tail....

2004-01-20 Thread Stuart
p/ "c:/php/" AddType application/x-httpd-php .php .phtml Action application/x-httpd-php "/php/php.exe" See here: http://uk.php.net/manual/en/install.apache.php If Apache 2, I'm not sure what they steps are, but I ask again, why can't you use the module? [1] http://uk.php.net

Re: [PHP] Running PHP as a CGI, chasing my own tail....

2004-01-21 Thread Stuart
ch case you can have both the module and the CLI version running at the same time. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Suggestion on executing external programs from within php

2004-01-21 Thread Stuart
cess_file file2'); system('/usr/local/bin/process_file file1 &'); system('/usr/local/bin/process_file file2 &'); Should work in theory. Haven't test it though. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie issues with control structures & HTML form

2004-01-22 Thread Stuart
Jonno Agnew wrote: if ($guessnumb) { Try $_GET['guessnumb'] or $_POST['guessnumb'] if the form is posted. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird problem with objects

2004-01-23 Thread Stuart
$this->database = & new database(); $this->accessory = & new accessory(); $this->order = & new order(); -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: RE : [PHP] Weird problem with objects

2004-01-23 Thread Stuart
it's actually creating 2 database objects one of which will get deleted at the end of the function. By assigning the reference (that's what the & gets) only one object is created. Does that make sense now? -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Suggestion on executing external programs from within php

2004-01-23 Thread Stuart
sure that the output of that program is redirected to a file or some other output stream or else PHP will hang until the execution of the program ends." So try this... system('/usr/local/bin/process_file file1 > /dev/null &'); system('/usr/local/bin/process_file file2 >

Re: [PHP] Shared mod_php doesn't always load php.ini

2004-01-23 Thread Stuart
olved) problem? I may be way off base here (I am far from an expert on apache), but I think when you use mod_php, the php.ini is only loaded one time, right when apache starts up. Some of the other posters can probably tell you if I am correct or not. Yup, that's correct. -- Stuart -- PHP Gener

Re: [PHP] Why we love Microsoft (0t)

2004-01-24 Thread Stuart
er the similarity or the publicity from the action MS would take. The lucky fscker got the latter. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Stuart
2008/12/19 Gary Maddock-Greene : > Thanks Stuart, > > Logs are no enabled and I generate this line: > > #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port > cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status > time-taken > > Sorry this

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Stuart
7;t try your suggestion php -1 ... not sure how to!! Fair enough, just use the error log. -Stuart -- http://stut.net/ > "Stuart" wrote in message > news:a5f019de0812190516r3cdcdacana356320f39a8d...@mail.gmail.com... >> >> 2008/12/19 Gary Maddock-Greene : >>> >

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Stuart
urning of 0 results) That line is not valid code. I'm guessing it's part of a comment that has mistakenly been broken across 2 lines. -Stuart -- http://stut.net/ > "Stuart" wrote in message > news:a5f019de0812190516r3cdcdacana356320f39a8d...@mail.gmail.com... >> &

Re: [PHP] Since I speak with some of you more than people I see in person....

2008-12-30 Thread Stuart
ulent and difficult, but nothing worthwhile comes easy and I know it's gonna be worth it! Anyone got an interesting resolution beyond the usual drinking/smoking/eating less? I intend to spend less non-work hours sat in front of a computer and blog/twitter more. Those two are probably mutual

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-05 Thread Stuart
e fields are limited to 255 chars (IIRC) in length. text: for all intents and purposes these have unlimited length (4GBish IIRC). There is a page in the MySQL manual that explains all of the data formats. Google for mysql data formats and you'll likely get it. -Stuart -- http://stut.ne

Re: [PHP] Request A Collection of YouTube Videos From Multiple User Accounts using YouTube API

2009-01-07 Thread Stuart
g to do with PHP. I suggest you try the YouTube developers site - I'm sure there's a resource there that can help you... http://youtube.com/dev -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Request A Collection of YouTube Videos From Multiple User Accounts using YouTube API

2009-01-07 Thread Stuart
ity of a third party API. -Stuart -- http://stut.net/ > On Jan 7, 2009, at 4:40 AM, Stuart wrote: > >> 2009/1/7 L. Herbert : >>> >>> Does anyone know if it is possible to get a collection of YouTube videos >>> from multiple user accounts? If so, can you pr

Re: [PHP] Remote File Variable Injection Safety?

2009-01-07 Thread Stuart
the end of the URL in the require call that should also work, but is easily copied. You could randomise "safe_flag" and the value to make it more difficult, but checking the IP is far better IMHO. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Stuart
2009/1/7 Ross McKay : > Oh, and for a column with a limited range of values, enum beats 'em all! Got anything to back that up? http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/ -Stuart -- http://stut.net/ -- PHP General Mail

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Stuart
host has upgraded the server software which has broken the site. It needs work and they need to pay for it. If they object tell them you can work around the issue but it means potentially exposing the site to potentially fatal security risks. -Stuart -- http://stut.net/ -- PHP General Mailing

Re: [PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Stuart
>> question. > > local.php > > > $safe_flag = 1; > require_once("http://otherhost.com/remote.php";); > > ?> If the remote side is returning the code rather than running it then anyone can see exactly what to do to get it to work. There is no security there. OP: Does otherhost.com run the code or return it? -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini

2009-01-14 Thread Stuart
il server? > > I am not sure what you mean by that... They mean not using sendmail but instead talking SMTP with a remote mail server. I believe PHPMailer supports this - check it out... http://phpmailer.codeworxtech.com/ -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic Authentication

2009-01-14 Thread Stuart
nothing more complicated than that. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Stuart
is otherwise Type > Hinting would never have been introduced. Type hinting is the happy medium between untyped and strongly typed variables. Also, PHP is procedural with OO capabilities due to its history and the engine developers commitment to maintaining backwards compatibility whenever possible. > PHP could easily be a one for all language and AFAIK the only major > functionality missing is static typing..? I'm not trying to knock PHP, > simply expand it's functionality and scope by having additional *optional* > functionality implemented - like namespaces, if you don't like 'em don't use > 'em. Namespaces have a distinct and discrete advantage for all PHP users... they will allow code to insure against naming clashes. All IMHO - PHP FTW!! -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Stuart
enhancements have unexpected side effects that make them anything but simple, especially when you need to maintain BC as much as possible. Also, ignore Tony... PHP won't get better without people making suggestions, even if they turn out to be impractical or unpopular, so don't ever "LEAVE PHP ALONE"!! ;-) -Stuart -- http://stut.net/

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Stuart
2009/1/17 Nathan Rixham : > Stuart wrote: >> >> 2009/1/17 Nathan Rixham : >>> >>> Tony Marston wrote: >>>> >>>> "Nathan Rixham" wrote in message >>>>> >>>>> a: Optional Static Typing >>>>&

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Stuart
between untyped and strongly typed >>>> variables. >>> >>> yup-ish, could do with that type hinting on vars, properties and return >>> types too (infact if you had it on vars and properties you could forget >>> return types theoretically, wouldn'

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Stuart
e feasible to change > PHP so that it can be switched between dynamic typing to static typing at > the flick of a switch. PHP is dynamicly typed, so either get used to it or > switch to a different language. I don't recall seeing anyone say it's not feasible, just that it comes

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Stuart
7;ll quickly lose a valuable source of ideas. I'm done with this now as you're clearly set in your ways and it's not adding value to the discussion. Nathan: I see you've taken this over to the internals list. I wish you luck with your suggestions. Keep 'em coming. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple queries in PHP

2009-01-25 Thread Stuart
pitfalls I might face when doing something like this? It's a security feature to prevent SQL injection. AFAIK you'll have no problems so long as all calls to mysql_query happen on the same DB connection so you might want to start using the linkid parameter. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Non-traditional software accessing my website

2009-01-26 Thread Stuart
info, rather than trying to control what people do with your publicly accessible site, which is a battle you can't win. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Kinda 0.T... php site and maintenance

2009-01-26 Thread Stuart
admin work. Unless you feel like gambling that you'll get more with a fixed annual fee. But remember that it is a gamble. Either way make sure there's a written agreement that details exactly what's included in any fixed fee. -Stuart -- http://stut.net/ -- PHP General Maili

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Stuart
a mailing list. Come again? >> >> > > So Funny, they went through all the trouble of signing up, unless hey have > bots now that can sign up to mailing lists? Yes they do - it's not hard, but you don't actually need to subscribe to PHP mailing lists to post to them. -Stu

Re: [PHP] Need Help resolving the "undefined variable" and "getting property of non-object" errors

2009-01-27 Thread Stuart
g or array). Again, look at the line it points you to and confirm the variables it contains have the values you think they should. This is basic debugging. Spending time resolving these errors yourself is time well spent, and the more you do it the easier it becomes. -Stuart -- http:/

Re: [PHP] New to PHP question

2009-01-28 Thread Stuart
related to the first. When formatting text >> using printf the padding works great when running from the command line but >> not at all when in a browser. >> Here is the code that I am working with: >> > Browsers **only** support HTML. > > They do not unders

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Stuart
sure what you're asking. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Throwing an exception seems to defeat output buffering

2009-02-03 Thread Stuart
an()); > } > catch (Exception $ex) { >exit('Exception:' . $ex->getMessage()); > } > > > I'm exercising that code on PHP 5.2.4 and 5.2.8. > > Does anybody know why throwing an exception seems to override ob_start(), > flushing the buffered output? I

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Stuart
27;m not sure what you mean by "stick with the session". What exactly are you trying to achieve? -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Stuart
actually trying to achieve because they're wanting to know how to do something that's not possible so the question is flawed. Rant over. -Stuart > -----Mensagem original- > De: Stuart [mailto:stut...@gmail.com] > Enviada em: quarta-feira, 4 de fevereiro de 2009 07:52 >

Re: [PHP] How can I do the opposite of property_exists(), maybe a create_property() in PHP5?

2009-02-04 Thread Stuart
ou want it to you would not be able to create rules around what properties can be created or what values they can hold. I use those magic methods to implement validation in my model classes. If $this->x simply created x I would have to implement it using accessor functions which IMHO is much le

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Stuart
file. > > How can I correct this ? The default_mimetype applies to the headers returned to browsers by PHP, it does not have any effect on emails you send. To send HTML email I would suggest you use phpmailer[1] because it makes the whole process quite painless. -Stuart [1] http://ph

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Stuart
pted. To the OP: Which DB server you use is far less important than making sure you're using it right and optimising it as much as possible. Sure there are differences between them, and MySQL is better in certain situations than Postgres but a badly configured and optimised Postgres in

Re: [PHP] Preserving History

2009-02-05 Thread Stuart
omething gets deleted that gets recorded in a semi-structured but fairly generic way so if I need to know when record x was deleted from table y and what record x contained I can craft a SQL query to get that from the audit log table, albeit fairly slowly. I also records inserts and updates to create a complete record. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] long echo statement performance question

2009-02-06 Thread Stuart
the fast tags, http://stut.net/projects/phpspeed/?iterations=1 As you can see, the difference is so minimal that unless you're doing it hundreds of thousands of times per script it makes little difference how you do it. In short it's usually not worth optimising at this level since greate

Re: [PHP] Session variables

2009-02-07 Thread Stuart
t. Turn it on and browse your site. You will see the cookies in the headers of both requests and responses. Cookies are not stored on the server side, they are sent by the client with each request. No additional HTTP requests are involved when using sessions. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding Records & Capture The New Record ID

2009-02-07 Thread Stuart
Use an auto_increment field then, assuming MySQL you can use mysql_insert_id to get the ID of the last record inserted on a given connection. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding Records & Capture The New Record ID

2009-02-07 Thread Stuart
2009/2/7 revDAVE : > On 2/7/2009 11:41 AM, "Stuart" wrote: > >>> Then, after I inserted the record - I would do a quick query that would >>> retrieve the record ID by searching for the random number >> >> Ouch that's nasty!! >> >&g

Re: [PHP] PHP usage stats

2009-02-08 Thread Stuart
lise why the number is not available. You have to bear in mind non-public use which will not be insignificant, servers where PHP is not advertised and a multitude of other reasons why any number you could come up with *will* be wrong, and therefore pretty useless. Why anyone would see value

Re: [PHP] Appending query result sets?

2009-02-08 Thread Stuart
e sql'); > > $r3 = $r1.$r2; > > I suppose they could be read into an array then output that way, but I was > hoping to more easily just append the result sets. Best place to do this is in the SQL query with a UNION. http://dev.mysql.com/doc/refman/5.0/en/union.html -Stuar

Re: [PHP] PHP usage stats

2009-02-08 Thread Stuart
2009/2/8 tedd : > At 3:54 PM + 2/8/09, Stuart wrote: >> >> 2009/2/8 tedd : >> >> > I wasn't able to find a lot of information, but here's a useful link: >>> >> > http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html &

Re: [PHP] PHP usage stats

2009-02-08 Thread Stuart
2009/2/8 tedd : > At 8:44 PM + 2/8/09, Stuart wrote: >> >> 2009/2/8 tedd : >> >> > just trying to get a handle on the number of people who program in php >> -- >>> >>> what's wrong with wanting to know that figure? >>

Re: [PHP] php validate user password

2009-02-09 Thread Stuart
from passwords. By removing characters you're significantly reducing the number of possible passwords. -Stuart > Jan G.B. wrote: >> >> 2009/2/9 Andrew Williams : >> >>> >>> Can some body help out on how to validate user password from the >>> dat

Re: [PHP] php validate user password

2009-02-09 Thread Stuart
2009/2/9 Jan G.B. : > 2009/2/9 Stuart : >> I would also advise against stripping and trimming >> anything from passwords. By removing characters you're significantly >> reducing the number of possible passwords. > > Surely, the stripping should only be done whe

Re: [PHP] PHP usage stats

2009-02-09 Thread Stuart
h is that products from closed corporations carry more risk than open source software. You should tell them your QuickBasic story - that might start some mental cogs turning in their heads. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP usage stats

2009-02-09 Thread Stuart
>> asp numbers, right? >> >> Cheers, >> >> tedd > > Probably not. For that matter, ColdFusion under both IIS and Apache on > either Windows or Linux (though the only couple installations I've > seen have been on Windows/IIS). You could get a rea

Re: [PHP] PHP OOP

2009-02-09 Thread Stuart
the professors knew it so I had to teach myself. It's the original and IMHO still the best implementation of OOP concepts around. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP usage stats

2009-02-09 Thread Stuart
y of reasons. Since you can't say with any certainty what your margin of error is, the numbers will be meaningless as a measure of language usage. Having said that it's been a while since I wrote a spider, shame I don't have time to have a go at the moment. Have fun ;-) -Stuart

Re: [PHP] PHP usage stats

2009-02-09 Thread Stuart
2009/2/9 Daniel Brown : > On Mon, Feb 9, 2009 at 15:21, Stuart wrote: >> >> I would advise you against wasting your time because there is no >> reliable way to tell what systems a server is actually using to serve >> pages. Nearly all sites I work on these da

Re: [PHP] Generate unique login token

2009-02-09 Thread Stuart
PVPM... $token = sha1($_SERVER['REMOTE_ADDR'].microtime(true)); -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for some PHP OO programming guides

2009-02-10 Thread Stuart
t's you I'm going to offer you this ebook at the very very very low limited time price of $49 and I'll throw in a free watermelon. Ahh, hell, I can't be arsed. It's in the frickin' manual: http://php.net/oop -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help on caching an object.

2009-02-11 Thread Stuart
rforms extremely well. APC has a similar feature but I've never used it. Also, are you guestimating the performance of DB queries against a serialised file? Do some tests and you might be surprised at how quickly PHP can unserialise data. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help on caching an object.

2009-02-11 Thread Stuart
isit: http://www.php.net/unsub.php Yup, that's really hard!! -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way to post XML via curl?

2009-02-11 Thread Stuart
ault to. It just happens that one of those fields is XML. > $response = curl_exec($ch); > > Is this use of http_build_query the best way to send XML? Any other curl > options I should be setting? I tried urlencoding() the $xml, I tried > htmlspecialchars(), I tried nothing at all, I tri

Re: [PHP] Best way to post XML via curl?

2009-02-11 Thread Stuart
#x27;re lying because only part of it is. As a test try setting $postArgs = $xml. If I'm right it might either work or give you and authentication error. -Stuart > On Feb 11, 2009, at 4:56 PM, Stuart wrote: > >>> curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type:

Re: [PHP] Best way to post XML via curl?

2009-02-11 Thread Stuart
HTML file containing a form with those fields that posts to the destination URL, fill it in with valid values and see what happens when you post that. Remove CURL from the equation, and if that doesn't work go back to them and show them that form and the response you get, because according to

Re: [PHP] Apache odd behavior

2009-02-16 Thread Stuart
e the browser has no idea that index.php indicates the current directory so it resolves relative paths using the full URL. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache odd behavior

2009-02-16 Thread Stuart
ndex.php you need to change it to arse. Another example... if you have crack where crack.php is in the subdirectory somedir beneath where index.php is you need to change the tag to crack. You need to apply this to all URLs in your code, including stylesheets, images and javascript references. This should not be a difficult concept to grasp, so maybe I'm not explaining it right. If so please explain what you understand by what I'm saying and I can alter it to be more helpful. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Stuart
2009/2/16 Thodoris : > In addition to this there is an API for C that can be used to code web > applications and it is known as CGI (it is provided by many languages) CGI is a protocol not an API and has no specific connection to C. -Stuart -- http://stut.net/ -- PHP General Mailin

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Stuart
ntroller pattern (as evidenced in another thread). It's simple to fix this. Add a hosts entry for mysite.local pointing at pokey's IP. Change the server software so it has a virtual host for mysite.local pointed at the mysite.com directory in the existing web rooot. This is not difficult and will allow you to solve both of the problems you are currently asking this list about. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Stuart
ction to TCP/IP, HTTP or networks in general. -Stuart -- http://stut.net/ > 2009/2/17 Stuart >> >> 2009/2/16 Thodoris : >> > In addition to this there is an API for C that can be used to code web >> > applications and it is known as CGI (it is provided by m

Re: [PHP] Re:

2009-02-16 Thread Stuart
ne already then there may be a problem with the system, but please make sure you've fully read, understood and actioned the instructions in the email you get back. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   9   10   >