Re: [PHP] Create a hierarchical hash from flat source

2011-06-22 Thread Simon J Welsh
On 23/06/2011, at 10:14 AM, Scott Baker wrote: On 06/22/2011 03:06 PM, Simon J Welsh wrote: On further inspection, that's not the problem at all. The problem's around assign_children($pid,$list,$new); The previous line you defined $new with $new = $leaf[$pid], *copying* that node

Re: [PHP] PHP 5.3.3 operator problem

2011-06-01 Thread Simon J Welsh
this problem? In PHP 5, objects are always assigned by reference, you do not need to make it explicit. --- Simon Welsh Admin of http://simon.geek.nz/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] iPhone sadness

2011-05-29 Thread Simon J Welsh
is inherently an apology. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea The signature is inserted at the top. Refer back to the replies to your comment. --- Simon Welsh Admin of http://simon.geek.nz/ -- PHP General Mailing

Re: [PHP] displaying a pdf

2011-05-29 Thread Simon J Welsh
(Content-Length: .$length); // readfile($pdfname); --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List (http://www.php.net

Re: [PHP] context when calling non static method of class in a static way

2011-05-23 Thread Simon Hilz
ah i forgot e_all doesnt include e_strict. with error_reporting(-1 / E_ALL | E_STRICT) i see the errors. so i think i am right that the use of that special behavior of php is not a good idea. thank you guys! Am 23.05.2011 00:32, schrieb Richard Quadling: On 22 May 2011 22:44, Simon

[PHP] best practise accessing object's attributes from objects itself

2011-05-23 Thread Simon Hilz
practises are good. are there any discussions by really focused php programmers about that? Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
-callBarStatic(); That means that the static call of bar() is executed in the context of Foobar. Is this behavior deliberate? If so, it would open a great way of object composition patterns. But only if it will be retained in future versions :) (i've tested with 5.3.5) Simon Hilz -- PHP

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
Richard, yes! at least my example works. i didn't test it any further; i doubt it is intended that way. Simon Hilz Am 22.05.2011 16:42, schrieb ad...@buskirkgraphics.com: Simon, So without extending foo you can run bar in another class? Richard L. Buskirk -Original Message

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
Mackintosh: Simon, You may want to be careful with the way you declare your class methods. Example: public function bar() != static function bar(), even if you use pnysudsfksdljfasdjfsd (::) See the example below. class Foo{ static function barStatic() { echo get_class

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
it. Sorry Richard L. Buskirk -Original Message- From: Simon Hilz [mailto:simon.h...@gmx.de] Sent: Sunday, May 22, 2011 11:56 AM To: php-general@lists.php.net Subject: Re: [PHP] context when calling non static method of class in a static way Richard, yes! at least my example works. i

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
. just no call. attributes are not accessible too if defined protected or private but throws that error: Cannot access private property (more or less like expected) Simon Hilz Am 22.05.2011 23:18, schrieb Peter Lind: class A { public function b() { echo get_class

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Simon J Welsh
-', date('Y'); } --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] pick a card, any card...

2011-04-09 Thread Simon J Welsh
something like: randmember($listing) array_rand() - it's already built-in - http://php.net/manual/en/function.array-rand.php Scotty Just note that array_rand() returns a random (or an array of random) key(s), not the values. --- Simon Welsh Admin of http://simon.geek.nz/ Who said

Re: [PHP] DateTime using DateTimeZone Timestamp problem

2011-04-05 Thread Simon J Welsh
created from previous timestamp is ; print date(Y-m-d H:i:s,$timestamp).br/; ? May I suggest including the timezone in your date format (O or e)? It may show the two date strings to be equivalent. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program

Re: [PHP] Looking for Tool to read JSON format

2011-04-01 Thread Simon J Welsh
Konzack json_decode(file_get_contents('http://domain/file.json')); If you need to do a POST rather than a GET, use curl and pass the output from curl_exec() to json_decode(). --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never

Re: [PHP] php or juvascript convert IETF format to ISO08601

2011-03-15 Thread Simon J Welsh
On 15/03/2011, at 9:18 PM, Joce Jovanov wrote: On Tue, Mar 15, 2011 at 12:44 AM, Simon J Welsh si...@welsh.co.nz wrote: On 15/03/2011, at 12:32 PM, Jordan wrote: Hello Evrybody, Can i convert IETF format (ex: Wed, 18 Oct 2009 13:00:00 EST) in ISO8601 format (ex: 2009-11-05T13:15:30Z

Re: [PHP] String eval assistance

2011-03-15 Thread Simon J Welsh
something wrong. strpos() returns false if it can't find the needle. You should be using if(strpos() === false) { declined; } --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain

Re: [PHP] php or juvascript convert IETF format to ISO08601

2011-03-14 Thread Simon J Welsh
://php.net/date). There's even a DATE_ISO8601 constant for the correct date format. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing

Re: [PHP] problem with if and exact match

2011-03-14 Thread Simon J Welsh
) { true } You can use stripos for case-insentive matching. Using regex functions when you don't need the power is overkill and slower. Your call to preg_match wasn't working because you need your search term first, and it needs proper delimiters. --- Simon Welsh Admin of http://simon.geek.nz

Re: [PHP] Re: Regex for extracting quoted strings

2011-03-05 Thread Simon J Welsh
preg_match. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP5.3.5: error message for date()

2011-03-04 Thread Simon J Welsh
either need to set the date.timezone INI setting, either in your php.ini or by using ini_set(), or by passing a valid timezone to date_default_timezone_set() before calling any other date-related functions. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free

Re: [PHP] Sorting an array

2011-02-28 Thread Simon J Welsh
one of the other SORT_* flags described on the sort() manual page. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List (http

Re: [PHP] Regex pattern for preg_match_all

2011-02-18 Thread Simon J Welsh
as late as it can (when it matches a ) --- Simon Welsh Sent from my phone, excuse the brevity On 19/02/2011, at 10:36, Tommy Pham tommy...@gmail.com wrote: Hi folks, This is not directly relating to PHP but it's Friday so I'm gonna give it a shot :). Would someone please help me figure out why my

Re: [PHP] Finding split points in an article for inserting ads

2011-02-15 Thread Simon J Welsh
, divide by three. First ad block goes after the round($amount/3)-th /p, second ad block goes after the round($amount/3*2)-th /p. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain

Re: [PHP] Custom function

2011-02-15 Thread Simon J Welsh
#language.types.boolean.casting As $z is converted to a boolean and exists, that works just the same way as !empty(). --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid

Re: [PHP] Simplifying MySql queries

2011-02-12 Thread Simon J Welsh
mysql_query('SELECT * FROM `CandidateQuestions` WHERE `Category` IN (1,2,3,4) ORDER BY RAND() LIMIT 1;'); should do it. Though if there's no other possible values for Category, you could just remove the WHERE clause. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug

Re: [PHP] 2nd Pair of eyes

2011-01-18 Thread Simon J Welsh
WHERE u_name = $_post['f_user'] AND u_pass = $_post['f_pass']; Array indices either need to be accessed without quotes for the key, or by enclosing the variable in curly braces. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen

Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Simon J Welsh
[Debian (sid)] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php \d{3}-\d{3}-\d{4} Also, have a look at the phoneNumber method in the relevant Validate PEAR package: http://pear.php.net/packages.php?catpid=50catname=Validate --- Simon

Re: [PHP] How to define a data range for graphing?

2010-12-17 Thread Simon J Welsh
in there. General disclaimer about code typed directly into mail client. Happy Saturday :) --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing

Re: [PHP] PHP loop to issue sql insert

2010-11-14 Thread Simon J Welsh
). Examples and information can be found at http://php.net/mysql_fetch_assoc --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List

[PHP] ignore_repeated_errors has no effect

2010-11-07 Thread Simon Marchi
as ignore_repeated_source. I checked that the settings is effective in phpinfo(). Does anybody have an idea why I still get these repeated errors ? Thanks ! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ignore_repeated_errors has no effect

2010-11-07 Thread Simon Marchi
Hi, Just a precision, I don't want to modify the user's code, I would like to configure my server properly so it does not happen again even if another user makes a similar mistake. Thanks, Simon On Sun, Nov 7, 2010 at 09:02, Andre Polykanine an...@oire.org wrote: Hello Simon, Just modify

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

2010-10-17 Thread Simon J Welsh
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e

Re: [PHP] odd while behavior...

2010-10-16 Thread Simon J Welsh
This is because of your mktime() call. You're trying to get the zeroth day of the month, which is the last day of the preceding month. Using mktime(0, 0, 0, $i, 1) instead should give you the desired results, assuming you do start at 1, and not 0 as you have in your code. --- Simon Welsh On 17

Re: [PHP] Removing empty paragraphs from HTML file using simple_html_dom.php

2010-09-18 Thread Simon J Welsh
== ) instead of trim($pars[$i]-plaintext) == . --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List (http://www.php.net

Re: [PHP] Backtrace in fatal error?

2010-09-01 Thread Simon J Welsh
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e

Re: [PHP] It's Friday (a MySQL Question)

2010-08-13 Thread Simon J Welsh
-extra-file) --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] cache_control_limiter

2010-07-06 Thread Alexandre SIMON
the cache_control_limiter to public, but it seems to stay in nocache. What can be wrong? Tried two servers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- SIMON Alexandre

Re: [PHP] What's wrong in this function? Does not work for me.

2010-07-03 Thread Alexandre Simon
Hello, multiple things: - escape your values: 1. if some of the user input contains '\'' for instance, your query is not well formed 2. if some evil user want to do anything with your DB, he can do it = See mysql_escape_string or PDO prepared statements - Use else part of the if statement

Re: [PHP] last modified on a page

2010-06-13 Thread Simon J Welsh
/) To unsubscribe, visit: http://www.php.net/unsub.php Try using filemtime() and $_SERVER['SCRIPT_FILENAME'] --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid

Re: [PHP] is ?= good?

2010-06-11 Thread Simon J Welsh
is', $answer; ? and leverage sending echo multiple parameters rather than using string concatenation. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e

Re: [PHP] PHP -r, -a and .php return different results based upon or ' marks !? [BUG]

2010-06-10 Thread Simon J Welsh
of the shell variable 12345678 (most likely nothing), so all that PHP sees is: echo md5(strtoupper('')); --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e

Re: [PHP] php compile / configure options

2010-03-20 Thread Simon J Welsh
on the reference pages. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Curious PHP cli output in context of bash completion ?

2010-01-28 Thread Alexandre SIMON
exactly differs and makes the problem appear. Maybe some PHP expert could orient me to the right direction (I'm not a Guru of compilation, especiallly for PHP ...) ? Thanks 2010/1/27 Alexandre Simon lexsi...@gmail.com Hello, I'm pretty sure (in realty I do not understand a lot about the problem

[PHP] Curious PHP cli output in context of bash completion ?

2010-01-27 Thread Alexandre Simon
Hello, I'm pretty sure (in realty I do not understand a lot about the problem... :( ) this is a distribution or a version problem but maybe some PHP/bash expert here could have some idea and tell me what I could try to solve the problem described here :

Re: [PHP] Curious PHP cli output in context of bash completion ?

2010-01-27 Thread Alexandre Simon
Le 28 janv. 2010 à 00:42, Ashley Sheridan a écrit : On Wed, 2010-01-27 at 23:27 +0100, Rene Veerman wrote: My initial goal is to complete a PHP script, using the PHP script itselfs as function for bash completion. Mechanism that works perfectly on some other platforms (with different PHP AND

Re: [PHP] Using large multi dimenstional arrays in js

2009-06-23 Thread Simon
you could pack the array into a string and decode that later, using json prolly... Or, you could output the data to XML and load the xml file in an iframe, then browse through the iframe's DOM structure to get the values you need. On Wed, Jun 17, 2009 at 6:32 PM, Sancar

Re: [PHP] Php and Imagemagick problems

2009-06-10 Thread Simon
What exactly is the problem or error message you get? Also if this is your script, really, it needs a LOT of cleanup!! Here's an example that could point out the problem: $FileName = str_replace(.jpg, , $FileName); $FileName = str_replace(/, , $ImageName); $FileName =

Re: [PHP] C++, $_POST - php-cgi

2009-06-10 Thread Simon
I'm working on something similar, here's the pseudo-code of what happens to ensure the PHP script run by my server doesnt see any difference than when it runs under apache or others... Say the php file to execute is index.php and it was called from a form post, the form tag also specified GET

Re: [PHP] URL injection

2009-06-10 Thread Simon
https://www.xxx.co.uk/register.php;| grep 123 I wonder what kind of browser could make this, probably a hacker-made one! This URL will have to be translated into its equivalent URI, if using GET the HTTP message's start line would look like: GET /register.php| grep 123 HTTP/1.1 First of all,

Re: [PHP] Re: Background Process

2009-06-10 Thread Simon
kranthi, you are wrong here. popen() will open a pipe to a process. You must have meant fopen() which doesnt work with pipes, but with files. you first popen php (ie execute it) you then write the code you want php to exec (php is still executing, reading your input) at the end you pclose php

Re: [PHP] Upload file name not file

2009-05-01 Thread Simon
Id like to use the popup file system box(input name=userfile type=file /) to choose a file name , but I only want to upload the filename , not the file. Can I do that? You're not supposed to have any access to the remote visitor's computer, and the path to the file being uploaded could contain

Re: [PHP] Upload file name not file

2009-05-01 Thread Simon
On Fri, May 1, 2009 at 9:34 AM, MikeP mpel...@princeton.edu wrote: I'm not trying to get the path, just the filename and size, I know how to get these, but that would include the file using $_Files, but I dont want to upload anything just use the filename and size.(without the path) to insert

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-29 Thread Simon
in all servers anyway). There is no way to verify (without sending an email) if the email will be received in a mailbox. Simon On Tue, Apr 28, 2009 at 11:40 AM, Jay Blanchard jblanch...@pocket.com wrote: Our company wants to do e-mail verification and does not want to use the requests / response

Re: [PHP] Re: Help with scandir()

2009-04-27 Thread Simon
with using scandir... Simon On Mon, Apr 27, 2009 at 4:55 AM, Jan G.B. ro0ot.w...@googlemail.com wrote: 2009/4/26 Nathan Rixham nrix...@gmail.com: Deivys Delgado Hernandez wrote: Hi, I'm having problems when i try to use the function scandir()  in a Novell Netware Volumen or a Windows Shared

Re: [PHP] inexplicable behaviour

2009-04-27 Thread Simon
(and not an error message or whatever else). It's also possible the 'next' redirection isnt working because the value in $Count is invalid somehow? doesnt point to any page or something like that? Simon On Fri, Apr 24, 2009 at 8:14 PM, PJ af.gour...@videotron.ca wrote: Frankly, I don't know what to look

Re: [PHP] Re: Unit Testing

2009-04-27 Thread Simon
if possible and treat each of them as separate projects (testing would be done on a module once this one is ready). You may be interested in looking for information on the net on 'IT project management' which usually describe when is the best time to test according to a certain structure... Simon On Mon

[PHP] PHP CLI vs WebServed

2009-04-25 Thread Simon
) Thanks in advance for any suggestions! Simon -- When Earth was the only inhabited planet in the Galaxy, it was a primitive place, militarily speaking. The only weapon they had ever invented worth mentioning was a crude and inefficient nuclear-reaction bomb for which they had not even developed

Re: [PHP] PHP CLI vs WebServed

2009-04-25 Thread Simon
Thanks for the reply Richard! Never done this, but could you set environment variables, which would then be picked up by PHP (and stuffed in $_ENV)? This seems like a good idea, if i mix this with the popen() idea, i wouldnt need /dev/shm or any files at all then... but the problem remains

Re: [PHP] Happy 1234567890 day!

2009-02-13 Thread Simon J Welsh
... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e

Re: [PHP] Re: hello

2009-01-09 Thread Simon J Welsh
friend, but you can keep it. We're a balmy 22F (-5C) right now in Scranton. Anyway, back to the whole OS discussion: http://xkcd.com/528/ And my elePHPants wonder why they're not allowed to see it. --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created

Re: [PHP] PHP Dev Facts

2008-10-17 Thread Simon J Welsh
PHP'ing that's worth mentioning:* --- Simon Welsh Admin of http://simon.geek.nz/ Who said Microsoft never created a bug-free program? The blue screen never, ever crashes! http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Fwd: [PHP] XHTML Validation problem

2008-05-02 Thread Simon Welsh
Forgot to reply all Begin forwarded message: From: Simon Welsh [EMAIL PROTECTED] Date: 3 May 2008 4:18:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] XHTML Validation problem On 3/05/2008, at 4:13, It Maq wrote: Hi, I have a page that displays data entered by the user. There is one user

Re: [PHP] OS X 10.5.2

2008-04-18 Thread Simon Welsh
- mysql=shared,/usr/local/php5' '--with-pgsql=shared,/usr/local/php5' '-- with-pdo-pgsql=shared,/usr/local/php5' '--with-mcrypt=shared,/usr/ local/php5' --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system. NT is Not Tough

Re: [PHP] DateTime... What else ?

2008-04-17 Thread Simon Welsh
?php $mois_en_cours1 = date('Y-m', strtotime('-1 month')); $mois_en_cours2 = date('Y-m', strtotime('-2 month')); $mois_en_cours3 = date('Y-m', strtotime('-3 month')); ? --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system

Re: [PHP] convert a string to integer

2008-03-28 Thread Simon Welsh
. --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system. NT is Not Tough enough for me either. 95 is how may times it will crash an hour. http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e -- PHP General Mailing List (http

Re: [PHP] Date math

2008-03-23 Thread Simon Welsh
= 86400; $difference = (($date1 - $date2) / $factor); Depending on what you want, wrap it in round() ceil() or floor() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-04 Thread Simon Welsh
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system. NT is Not Tough enough for me either. 95 is how may times it will crash

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-04 Thread Simon Welsh
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system. NT is Not Tough enough for me either. 95 is how may times it will crash

Re: [PHP] Help with OOPHP

2007-10-31 Thread Simon Welsh
: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system. NT is Not Tough enough for me either. 95 is how may times it will crash an hour. http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e

Re: [PHP] returning an array from a function?

2007-10-26 Thread Simon Welsh
on php.net but the light didn't go on... Sincerely, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system. NT

Re: [PHP] IF statement

2007-10-19 Thread Simon
be true or false. The magic with IF is in the logic that you write. Simon On 10/18/07, ron.php [EMAIL PROTECTED] wrote: I just tried to send this to the list. I am not trying make it post again, I don't think I had the e-mail address correct the first time. I am trying to stop

Re: [PHP] This, then that.

2007-10-19 Thread Simon
would be to close the connection to the client as well, if that's possible, without terminating the script. This will prevent that browsers would display Loading... after the page is shown until your second script terminates. Simon On 10/19/07, Nathan Hawks [EMAIL PROTECTED] wrote: If by creates

Re: [PHP] Create a matrix gallery

2007-09-04 Thread Simon
| __ |pic11 | pic12 | pic13 | __ You need to use the math function: modulo. $MaxRows = 5; for(...){ $m = fmod($ImageNumber, $MaxRows); if($m == 0){ echo tr; } echo td; // [...] content of cell here echo /td; if($m == ($MaxRows-1)){ echo /tr; } } Have fun! Simon

Re: [PHP] c++ and php! search for a brigde

2007-08-28 Thread Simon
you can use sockets in php, they work the same as berkley sockets you can use system() in php, to call your C++ program (the program could output html) in my opinon CGI with C/C++ is obsolete, use php/apache for best results! another nice way is to have your C++ program independent, outputs its

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Simon
/password over and over. Simon On 8/9/07, Tony Di Croce [EMAIL PROTECTED] wrote: I keep wanting to do something, and either I dont know how to do it, or I'm doing something wrong and need to rethink things. Quite often, I have a form that submits to a php script via POST and after doing some

Re: [PHP] Strategy when working with designer(s)?

2007-07-24 Thread Simon
is biased by my ego? ;) Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strategy when working with designer(s)?

2007-07-24 Thread Simon
if this and that are possible, and ask for a time estimate. Simon says 1) Designer does his whole job and shows the design when finished and approved Well in a dream world that would be nice but I've never seen it happen in more than 20 years in the industry ... Usually, the designer works

Re: [PHP] Strategy when working with designer(s)?

2007-07-23 Thread Simon
) Designer does his whole job and shows the design when finished and approved 2) Integrator works on making the pages and html without func. 3) Programmer makes the whole thing work. This gives the best feeling to all people involved. All IMO! Simon On 7/23/07, Steve Finkelstein [EMAIL PROTECTED

[PHP] SOAP: xsd:choice maxOccurs=unbounded, and element order

2007-05-22 Thread Simon Detheridge
the order out?? Any suggestions are appreciated. Could this be a bug? Incidentally, the full-blown (and rather complicated I'm afraid) schema/wsdl for what I'm *actually* trying to do is at http://www.widgit.com/cml/symgate.wsdl if that helps. Thanks, Simon -- Simon Detheridge SEN Developer

Re: [PHP] One last try at this!

2007-01-17 Thread Simon Forster
robust code the first time round. HTH Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's this image tag for?

2007-01-05 Thread Simon Forster
. Since it's outside the actual link, I don't really see what it accomplishes. It's simply a counter. Calls an image off a remote server which increments a counter on that remote server. Allows whoever to track how frequently the code block is shown. HTH Simon Forster

[PHP] config error

2006-12-18 Thread Simon Forster
of things to try. Many thanks Simon Forster ___ LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247 ___ int main() { mysql_close() ; return 0

Re: [PHP] config error

2006-12-18 Thread Simon Forster
. All the best Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] config error

2006-12-18 Thread Simon Forster
. what was the error? Whole host of 'em. Hold on, I'll clean and run again to see what pops up... See below sig. Seems to be referencing a lot of XML stuff but I'm not trying to include any XML / XSL bits: ATB Simon Forster ___ LDML

Re: [PHP] How does one obtain the resolution of an image in PHP? [SOLVED]

2006-03-17 Thread Simon M. Campden-Main
/~orchids/test/test_exif_2.php Thanks to all and, until the next time, Take Care! Simon [EMAIL PROTECTED] - Edwin - [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! On Thu, 16 Mar 2006 08:13:41 -0800 Simon M. Campden-Main [EMAIL PROTECTED] wrote: [ . . . ] I want ppi

[PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Simon M. Campden-Main
distribution of EL, PHP Version 4.3.9 with, of course, GD support. Any suggestions would be most appreciated. Thank you. Simon [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Simon M. Campden-Main
distribution of EL, PHP Version 4.3.9 with, of course, GD support. Any suggestions would be most appreciated. Thank you. Simon [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Simon M. Campden-Main
but rather native resolution. Thanks again for taking the time. Simon [EMAIL PROTECTED] tedd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Good morning, folks. Can any one direct me to a snippet or suggest an approach to obtaining the resolution of an image [file] with PHP

Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Simon M. Campden-Main
exif_read_data() or getimagesize() will give me the dimensions in pixels.) and just do the math. Again, thanks for your help! Simon [EMAIL PROTECTED] tedd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Simon: Thank you for your response, Tedd. No problem, glad to help if I can. I think so

[PHP] Re: Request for views on ASP/PHP/ASP.NET - please!

2006-02-21 Thread Simon O'Beirne
Gladly :) Due to be finished at the end of march, however results will be analysed start/mid march. Will keep you informed! Simon Rafael [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, I would like to know what conclusion you got, so if possible let me know when you have enough

[PHP] Request for views on ASP/PHP/ASP.NET - please!

2006-02-20 Thread Simon O'Beirne
saved. Thank you very much in advance! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php5 SOAP WSDL parsing

2006-01-09 Thread Simon Detheridge
error_log but I can't see any further detail. I'd really like to know what PHP's problem is with my wsdl. How can I see the full output of this error? Thanks, Simon -- Simon Detheridge SEN Developer, Widgit Software This message has been scanned for viruses by BlackSpider MailControl

Re: [PHP] Php5 SOAP WSDL parsing

2006-01-09 Thread Simon Detheridge
Thanks for your response. Quoting Jochem Maas [EMAIL PROTECTED]: Simon Detheridge wrote: I'm trying to get PHP5 to talk to a web service that I am developing. is php choking on the comment?: !--xsd:include schemaLocation=cml.xsd /-- I've removed the comments from the file. No luck

[PHP] Re: Php5 SOAP WSDL parsing

2006-01-09 Thread Simon Detheridge
. Thankyou very much indeed, That fixed it. So much for my wsdl validator, then. :-/ -- Simon Detheridge SEN Developer, Widgit Software This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] PHP5, Soap, WSDL, and unbounded xsd:choice types.

2006-01-09 Thread Simon Detheridge
I get There from Here with PHP's own SoapClient, or do I have to parse the xml by hand? Thanks, Simon -- Simon Detheridge SEN Developer, Widgit Software This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com -- PHP General Mailing List (http

[PHP] sscanf() not returning info

2005-08-27 Thread Simon Fredriksson
) new20030101 [1]= string(10) Zero01.jpg [2]= string(5) Pic 1 } //Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php works in IE not Firefox?

2005-05-14 Thread Simon Allison
By the time a properly executed script(executed on the remote server) gets to your computer, regardless of the fact it was done in php(or any other server side language for that matter) it will just be plain html. Once it makes you computer the file/html will be the same as the same page written

[PHP] Repeat Accross, then down

2005-04-22 Thread Simon Allison
Say for a photo album with photo paths taken from a database (or anything from a database for that matter) how can you use PHP to repeat across for three photos and then add a new row with the next 3 photos and so on and so on?

[PHP] SimpleXML and xpath woes

2005-03-17 Thread Simon Turvey
) { } Either a) I'm doing something terribly wrong (and I thought that I was attempting a pretty simple xpath query) or b) SimpleXML's broken. I'd prefer a) - it's easier to fix :) Thanks a bunch, Simon Turvey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

<    1   2   3   4   5   6   >