Re: [PHP] open php from

2003-08-29 Thread Jasper
Alvaro Martinez wrote: Hi! I'm a beginner. I want to redirect from one php page to another php page and I dont know what method to use. How can I do it? Thanks http://php.net/header says http://www.php.net/";); /* Redirects the browser to the php website */ exit;/* make

[PHP] C++, $_POST -> php-cgi

2009-06-08 Thread Jasper
while(ReadFile(hStdoutR,buf,sizeof(buf),&dwRead,NULL) && dwRead != 0){ printf(buf); } printf("|\n\nEND"); CloseHandle(hStdoutR); getch(); return 0; } -- Thanks! Jasper

[PHP] Re: crypt()

2004-08-27 Thread Jasper Howard
ApexEleven -- ------>> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ <<-- "Aaron Todd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have

[PHP] Re: A bit stuck with $$

2004-08-27 Thread Jasper Howard
i found this a bit confusing, why were you putting $$ infront of a variable instead of just $? -- -->> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocit

[PHP] Re: crypt()

2004-08-27 Thread Jasper Howard
good to know -- -->> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ <<-- "M. Sokolewicz" <[EMAIL PRO

[PHP] Re: Download Script

2004-08-27 Thread Jasper Howard
;"'); readfile($dfile); [/snippet] NOTE: $dfile = path + file; -- ------>> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ <<--

[PHP] Re: Download Script

2004-08-27 Thread Jasper Howard
yeah, but images with filenames something like this -> cool_image v2.5.443.jpg -- -->> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velo

[PHP] Re: Sessions & session_start() & my problem

2004-08-27 Thread Jasper Howard
o, if you include a file that has session_start() in it you'll get that warning too. -- ------>> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://w

Re: [PHP] Re: Sessions & session_start() & my problem

2004-08-27 Thread Jasper Howard
is this php script at the top of the page, there is nothing before it? -- -->> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocit

Re: [PHP] Closing my Window after Download

2004-08-30 Thread Jasper Howard
if you're not getting any html after your php script, then there's a different problem. I do the same thing and all I use is: <!-- window.close(); //--> and I've never had a problem with it not closing... -- -----

Re: [PHP] Closing my Window after Download

2004-08-31 Thread Jasper Howard
that it'll work, it won't take any more time to load either because you're using the header() function to forward, so the user has to download the same amount of info. -- ------>> Jasper Howard :: Database Adminis

[PHP] Re: Please, Refresh Your Paypal Account

2004-08-31 Thread Jasper Howard
is this a joke?... -- -->> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ <<-- "Paypal Services" <[E

[PHP] Re: mail() function problem

2004-09-01 Thread Jasper Howard
do you have a sendmail program on your testing server? -- -->> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ <<-- &

[PHP] Re: Function Problem

2004-09-01 Thread Jasper Howard
the checkpermission(); function should be run before php can pharse anything farther down the script, try putting an exit; after the header() statement. -- -->> Jasper Howard :: Database Administration Velocity7 1.530.470.929

[PHP] Re: mail() function problem

2004-09-01 Thread Jasper Howard
i use apache on my windows xp machine and have never gotten around to settings up any kind of sendmail program, I'm pretty sure you have to download one or atleast its some extra configuration. -- -->> Jasper Howard

Re: [PHP] Re: how to load extensions outside the extension_dir

2004-09-14 Thread Jasper Howard
hosting services (in my experience) so its hard to really mess up. -- -->> Jasper Howard :: Database Administration ApexEleven Web Design 1.530.559.0107 http://www.ApexElev

Re: [PHP] Refresh page with frames...

2004-09-15 Thread Jasper Howard
<!-- location.refresh(true); //OR parent.document.location='LOCATION HERE'; //--> -- ------>> Jasper Howard :: Database Administration ApexEleven Web Design 1.530.559.0107 htt

Re: [PHP] Refresh page with frames...

2004-09-15 Thread Jasper Howard
so change parent to the name of the frame -- -->> Jasper Howard :: Database Administration ApexEleven Web Design 1.530.559.0107 http://www.ApexEleven.com/ <<-

[PHP] Re: iguanahost - anyone else being plagued?

2004-09-15 Thread Jasper Howard
yeah, im pretty sure that's spanish -- -->> Jasper Howard :: Database Administration ApexEleven Web Design 1.530.559.0107 http://www.ApexEleven.com/ <<--

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

2004-09-17 Thread Jasper Howard
try sorting in the query, it'll make your life a lot easier. anyway, hope that helps, -- -->> Jasper Howard :: Database Administration ApexEleven Web Design 1.530.559.0107 http://www.ApexEleven.com/ <<--

Re: [PHP] deleting directories

2004-09-21 Thread Jasper Howard
t; > He's on a Windows system, that won't work. As a side note, on *nix > > based systems, rm -rf would be better suited so that it doesn't > > prompt for conformation on each file/directory. > > > > -- > PHP General Mailing List (http://www.php.net/

Re: [PHP] Re: how to retrieve path to web server files

2004-09-25 Thread Jasper Howard
7;t know what to supply for the > > destination path. In asp I used server.mappath, but I'm new to php. > > > > Thanks, > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- <<--

Re: [PHP] Re: how to retrieve path to web server files

2004-09-25 Thread Jasper Howard
$base_dir = $_SERVER['document_root'] On Sat, 25 Sep 2004 14:17:16 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote: > > > On Sat, 25 Sep 2004 14:29:27 +0200, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > > $path = getcwd(); > > > > > > Amc wro

Re: [PHP] Images in PHP and MySQL

2004-09-30 Thread Jasper Howard
g download of the file) but I think it should just work, but there's always the chance I messed it up somehow. hope that works for someone, -Jasper Howard On Mon, 27 Sep 2004 19:05:16 -0500, Jim Grill <[EMAIL PROTECTED]> wrote: > > 1) there is no need to fiddle with directory permi

Re: [PHP] alphabetic comparison

2004-09-30 Thread Jasper Howard
dcdo 4-dcha > 28013 Madrid-Spain > Tel : 00-34-913604039 Ext 216 > Fax : 00-34-915228673 > email: [EMAIL PROTECTED] > Web : http://www.hotelkey.com > http://www.destinia.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http:

Re: [PHP] Images in PHP and MySQL

2004-09-30 Thread Jasper Howard
le use more space in the db or as a file itself > (Do Not count the extra data that one would store in the db along with > the image... ie. ID number) > > Thanks > > > > > On Thu, 30 Sep 2004 09:55:30 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote: > >

Re: [PHP] array sort question

2004-10-02 Thread Jasper Howard
ite > the comparison callback function that you pass to uasort(). > > pb > > -- > paul bissex, e-scribe.com -- database-driven web development > 413.585.8095 > 69.55.225.29 > 01061-0847 > 72°39'71"W 42°19'42"N > > -- > PHP General Mailing List

Re: [PHP] array sort question

2004-10-02 Thread Jasper Howard
to the $menu['Title'] key. The first key you put into array_multisort() is the one that the rest get sorted by. -Jasper Howard On Fri, 1 Oct 2004 22:44:50 -0400, Paul Bissex <[EMAIL PROTECTED]> wrote: > On Fri, 1 Oct 2004 19:12:30 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote:

Re: [PHP] Including function libraries

2004-10-02 Thread Jasper Howard
ite116/web/test/test.php on line 5 > > Why can't I call the function defined in the lib file? > > Thanks > AW > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- << Jasper Howard - Database Administration ApexEleven.com 530 559 0107 --->> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sort multidim array

2004-10-05 Thread Jasper Howard
But I need it to sort on the last data column - distance. > > I think I've been staring at this too long. Would appreciate any > guidance. > > Thanks > Kevin > > -- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit

Re: [PHP] exec and system do not work

2013-08-26 Thread Jasper Kips
Ethan, A return code of not 0 means an error occured. Probably /var/www is not writable. Test that one by doing this: $a = is_writable("/var/www); var_dump($a); If that says anything else than (boolean) TRUE, you can't write in the directory. Sincerely, Jasper Kips Op 27 aug. 2013

RE: [PHP] Re: Storing indefinite arrays in database

2011-05-11 Thread Jasper Mulder
ary. Only thing is, that you would have very wide tables (I don't know how wide MySQL can go). Creating tables on-the-fly as necessary seems to be something you could consider, but again I stress that I don't know performance details. There might be something quicker. So far for my

RE: [PHP] mysql problems [SOLVED]

2011-05-14 Thread Jasper Mulder
you, everyone for your help. > > Curtis A small remark: I think it is good programming practice to place such static if-clauses before the while statement. This prevents a lot of redundant checks and thus saves time. Best regards, Jasper -- PHP Ge

RE: [PHP] A Review Request

2011-05-18 Thread Jasper Mulder
t: Please correct   This Authorization Proceedure to   This authorization procedure or, if you must,   This Authorization Procedure Otherwise I can only encourage such an initiative because it can help out and save time. Best regards, Jasper Mulder

[PHP] Need experience with OOPHP

2011-05-20 Thread Jasper Mulder
ammer. I stress I have quite some experience with the old, procedural PHP. Anybody interested? Best regards, Jasper Mulder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Urgent help - Token Generation code!

2011-05-27 Thread Jasper Mulder
Extract, $nTime); > > echo $token; > > There are two cases: > 1. You made a typo and meant 'echo $sToken;' on the above line instead > 2. You omitted the part where $token is defined and used > > > [More code that seemed fine] > > > > -- > > Rega

RE: [PHP] Urgent help - Token Generation code!

2011-05-27 Thread Jasper Mulder
> From: shreya...@gmail.com > To: lord_fa...@hotmail.com > Subject: Re: [PHP] Urgent help - Token Generation code! > Date: Sat, 28 May 2011 04:15:59 +0530 > > Jasper, > > Tried echoing $sToken but wouldn't work. > > Re

RE: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Jasper Mulder
s you made. As was stated before, people may be offended and thus it makes the chances of you solving your problem fast smaller. As a last, please refrain from bombarding the list with small posts. Please think a bit before posting your questions. Thanks in advance. Best regards, Jasper Mulder

RE: [PHP] phpsadness

2011-06-03 Thread Jasper Mulder
e that this post has only extended the list by one. Let us get over it and get back to discussing what we all *do* like: PHP. Best regards, Jasper Mulder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] advice on how to build this array from an array.

2011-06-07 Thread Jasper Mulder
ages associated to it > > hope i make sense > > kind regards > > Adam Suppose that $arrays is your array of arrays. Then is $res = array(); foreach($arrays as $item){   $res[$item['cat_name']][] = $item; } what you are looking for? Best regards, Jasper Mulder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Jasper Mulder
y. As for the readers of this list, I am sorry to go into this non-PHP subject, but I couldn't really let this pass. Best regards, Jasper

RE: [PHP] How to sum monetary variables

2011-07-18 Thread Jasper Mulder
fferent results in case of overflow. However as python supports arbitrary integer arithmetic, overflows should not occur. At the moment, still overflow errors seem the most likely explanation. Does your table consist of very large values (occasionally perhaps)? Could you give us an example? Best regards, Jasper

RE: [PHP] Tree menu list in php

2011-07-26 Thread Jasper Mulder
his appears like a typical JavaScript thing to me. If you insist on not using JS, you could probably use AJAX+PHP to do it. However, JavaScript appears to me as the more convenient method. Regards, Jasper

RE: [PHP] pass text variables to next page

2011-08-09 Thread Jasper Mulder
gt; > Chris > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > The problem is with the mysql_real_escape_string closing parenthesis position, instead of ($_GET['id']."'"); it should be ($_GET['id'])."'"; HTH, Jasper

[PHP] Relative includes and include_path

2011-12-22 Thread Jasper Horn
clusion. (I included my experiment below.) Is the idea that those two are equivalent wrong? Am I doing something wrong? Is something strange going on? Can anyone clear this issue up for me? Thanks, Jasper --- The experiment: On a machine where the include_path is ".", I had the

Re: [PHP] Limit to size of autoindex in MySQL/PHPMyAdmin?

2003-01-03 Thread Jasper Bryant-Greene
e field type from TINYINT to SMALLINT or MEDIUMINT. UNSIGNED TINYINT only has a range of 0 thru 255. Regards. Jasper Bryant-Greene http://fatal.kiwisparks.co.nz/ smime.p7s Description: S/MIME Cryptographic Signature

[PHP] SquirrelMail + Writable Directories

2003-07-14 Thread Jasper Bryant-Greene
My question is simple - I want to install Squirrelmail on my webserver, but I can't chmod or chown the data directory. Is there any way to stop Squirrelmail from trying to write to the directory without limiting functionality too much, or is there a way to allow it to write without using chmod,

Re: [PHP] mail()

2003-07-14 Thread Jasper Bryant-Greene
mail() returns true if the email delivery worked, false if it failed. However, occasionally the email delivery will work, but will fail at a later stage (a "delivery failed" message will be returned to the sender) - you can check for this by having a script check the mailbox that was sent from,

[PHP] Re: Fetch Information Via a link

2003-12-21 Thread Jasper Bryant-Greene
iously you will need to change that to suit your site, and you may want to add some security to the $_GET variable being passed to the MySQL server to prevent attacks. Other than that, hope this helps. Regards Jasper Bryant-Greene Cabbage Promotions http://fatalnetwork.com/ [EMAIL PROTECTED] Er

[PHP] Re: Passing or not passing SID in links etc

2003-12-22 Thread Jasper Bryant-Greene
No, that will work fine. Just having ? at the end of the URL just means an empty querystring - same as if you had nothing there. Regards Jasper Bryant-Greene Cabbage Promotions http://fatalnetwork.com/ [EMAIL PROTECTED] Gerard Samuel wrote: Im currently modifying templates to include the SID

[PHP] Re: How New Is <<

2003-12-25 Thread Jasper Bryant-Greene
this case 'HERE') and then end with that identifier and a semicolon. It's just a way for delimiting strings, so you need to look for what's causing that unexpected $ just as if you were looking at a "" string. I can't help you any more without a code snipp

[PHP] Re: create multiple jpg thumbnails and use in a page

2005-03-26 Thread Jasper Bryant-Greene
1. You'd want to do input checking on the file GET variable to ensure no-one could get hold of stuff they shouldn't. 2. Make sure you don't output anything else in the file that outputs the thumbnail, or it won't work. HTH -- if you need more specifics let

[PHP] Re: Avoiding SQL injections: htmlentities() ?

2005-03-26 Thread Jasper Bryant-Greene
to protect against SQL Injection is: for string data, mysql_real_escape_string() or your database's equiv. function for all other data, type-check it with intval(), floatval() etc. -- Jasper Bryant-Greene Cabbage Promotions www:www.cabbage.co.nz email: [EMAIL PROTECTED] phone: 021 232

[PHP] Re: live records

2005-03-26 Thread Jasper Bryant-Greene
se) { unset($cart_arr[$array_key]); } Best regards -- Jasper Bryant-Greene Cabbage Promotions www:www.cabbage.co.nz email: [EMAIL PROTECTED] phone: 021 232 3303 Public Key: Jasper Bryant-Greene <[EMAIL PROTECTED]> keyID 0E6CDFC5 Fingerprint: 2313 5641 F8F6 5606 8844 49C0 1D6B 29

[PHP] Re: auto appending .php extension

2005-03-26 Thread Jasper Bryant-Greene
ed it also occurs on my other servers. The thing is, it causes some big problems with mod_rewrite. For example: [snip] I think you'll find that the MultiViews Apache option is enabled. Create an .htaccess file in your web root and put Options -MultiViews in it. Best regards -- Jasper Bryant

[PHP] Re: Getting values from the Javascript namespace

2005-03-27 Thread Jasper Bryant-Greene
but it might be better to figure out an alternative way to do it without requiring the second call back to the server. I can't really help any more without more specifics (maybe some code). HTH -- Jasper Bryant-Greene Cabbage Promotions www: www.cabbage.co.nz email: [EMAIL PROTECTED] phone: 021

[PHP] Re: Illegal string offset error in array

2005-03-27 Thread Jasper Bryant-Greene
rly braces {} instead. Square brackets [] for arrays, curly braces {} for string offsets. -- Jasper Bryant-Greene Cabbage Promotions www: www.cabbage.co.nz email: [EMAIL PROTECTED] phone: 021 232 3303 public key: Jasper Bryant-Greene <[EMAIL PROTECTED]> keyID 0E6CDFC5 fingerprint: 2313 564

[PHP] Re: Still fighting setcookie

2005-03-27 Thread Jasper Bryant-Greene
better just to think up an alternative way to do it though. Best regards -- Jasper Bryant-Greene Cabbage Promotions www: www.cabbage.co.nz email: [EMAIL PROTECTED] phone: 021 232 3303 public key: Jasper Bryant-Greene <[EMAIL PROTECTED]> keyID 0E6CDFC5 fingerprint: 2313 5641 F8F6 5606 8844 4

[PHP] Re: Still fighting setcookie

2005-03-27 Thread Jasper Bryant-Greene
Jasper Bryant-Greene wrote: [snip] function setcookie2($name, $value="", $expire="", $path="", $domain="", $secure=false) { $_COOKIES[$name] = $value; return setcookie($name, $value, $expire, $path, $domain, $secure); } [snip] Sorry, that should

Re: [PHP] Re: Illegal string offset error in array

2005-03-27 Thread Jasper Bryant-Greene
Rasmus Lerdorf wrote: Jasper Bryant-Greene wrote: You can't access string offsets with square brackets [] in PHP5. You need to use curly braces {} instead. Not sure where you got that idea. This is not true. -Rasmus Actually, it is. See the following URL: http://www.php.net/manu

Re: [PHP] Re: Illegal string offset error in array

2005-03-27 Thread Jasper Bryant-Greene
Rasmus Lerdorf wrote: Jasper Bryant-Greene wrote: You can't access string offsets with square brackets [] in PHP5. You need to use curly braces {} instead. Not sure where you got that idea. This is not true. -Rasmus Actually, it is. See the following URL: http://www.php.net/manu

Re: [PHP] security risk by using remote files with include(); ?

2006-03-24 Thread Jasper Bryant-Greene
/www.server.com/file.html' ); but only if you really trust his server to never get compromised, as that would allow an attacker to replace content on your website with anything they liked. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Jasper Bryant-Greene
Is the file saved in UTF-8 encoding (the PHP script itself)? Jasper Andy wrote: This is my code: "; echo utf8_encode ($str); ?> öüééééÉõõÕÕ I tried all the ways: and etc. The first echo... is not showed correctly. The second (with the encoding

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Jasper Bryant-Greene
If you're on *nix: man iconv otherwise, I have no idea, sorry. Jasper Andy wrote: No it was not. If I save it with UFT8 encoding it works well. So, do I have to convert all the files to UTF8 encoding? Is there an easy way to do that? - Original Message - From: "Jasper Bry

Re: [PHP] mysql query/$post problem

2006-03-27 Thread Jasper Bryant-Greene
vname')WHERE id ='$user_id')"; Also - it looks like an UPDATE might be more suitable for what you want, given that you've got a WHERE clause tacked on the end. Google for a good SQL tutorial; the PHP mailing list is not the place to learn SQL :) Jasper -- PHP Gener

Re: [PHP] $i vs. $r

2006-03-27 Thread Jasper Bryant-Greene
} $r = 0; while ($row = mysql_fetch_array($result)) { echo ("Blah blah blah"); $r++; } Those two blocks of code are for all intents and purposes identical, and indeed probably end up as exactly the same opcodes. Jasper -- PHP General Mailing List (http://w

Re: [PHP] unset a constant

2006-03-27 Thread Jasper Bryant-Greene
There is no way using the core language. You can, however, use the runkit function if you absolutely have to: http://php.net/runkit_constant_remove Jasper Suhas wrote: Hi, How do I unset a defined variable. e.g. define('AA',1); unset(AA) // gives error any suggestions!

Re: [PHP] private $foo

2006-03-28 Thread Jasper Bryant-Greene
the previous post? Are you running a version of PHP that supports them? Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] addslashes()

2006-03-29 Thread Jasper Bryant-Greene
From http://php.net/addslashes : "Having the PHP directive magic_quotes_sybase set to on will mean ' is instead escaped with another '." Jasper Chris Boget wrote: Can someone explain something to me: $string = "Bob's carwash's door"; echo 'a

Re: [PHP] parent constructor

2006-03-29 Thread Jasper Bryant-Greene
. Seriously. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Outputting text "

2006-03-30 Thread Jasper Bryant-Greene
. "\n"; ?> -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4: calling method on returned object

2006-03-30 Thread Jasper Bryant-Greene
this->Location->GetMap())->GetUrl() .. which doens't work. In short, no. That syntax was introduced in PHP5. For OO work, I would strongly recommend upgrading to PHP5 as there are many other important OO features that simply are not available in PHP4. -- Jasper Bryant-Greene General

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jasper Bryant-Greene
27;])) { unset($tc->arr['b']); } you just removed b from the array under 'arr' in the $vars member array. //var_dump is only to see results of above var_dump($tc); this should show something equiv. to: array( 'arr' => array(

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jasper Bryant-Greene
e 'a' key inside that array. Or at least it should, dammit. -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jasper Bryant-Greene
Jochem Maas wrote: Jasper Bryant-Greene wrote: Jochem Maas wrote: I think its a misunderstanding on the one side and a limitation on the other, you can't use overloading directly on items of an overloaded array e.g: echo $tc->arr['a'] this is triggers a call to __g

Re: [PHP] Outputting text "

2006-03-30 Thread Jasper Bryant-Greene
ersion="1.0" encoding="ISO-8859-1" ?>'; would work just as well and is a hell of a lot easier to look at. That's assuming you actually want it to appear on the page for the user to see, if you want the browser to interpret it you'll have to change the < a

Re: [PHP] HTTP status code

2006-03-30 Thread Jasper Bryant-Greene
In other words, if you want Firefox/Opera/etc to display something, you have to output something. Strange, that. :P Jasper Anthony Ettinger wrote: Then it's workingFireFox, et. al. show you the server 404, IE on the otherhand has it's own 404 error page (for those newbies who

Re: [PHP] HTTP status code

2006-03-30 Thread Jasper Bryant-Greene
with PHP 5.1. If you really want to get the default Apache error handler to appear then either readfile() it or redirect to it. Jasper Anthony Ettinger wrote: well, you typically would redirect 404 to something like foo.com/404.html Otherwise, it's whatever your server (apache/IIS) h

Re: [PHP] Visa / MasterCard security compliance

2006-03-30 Thread Jasper Bryant-Greene
rcard's requirements. :) -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database connections

2006-03-30 Thread Jasper Bryant-Greene
Chris wrote: If they're accessing the same database you don't need to disconnect/reconnect. Different db's - well, yeh you don't have a choice. Of course you do. mysql_select_db() or whatever it's called. Or just issue a USE [databasename] query. No need to reco

Re: [PHP] setting the same value to multiple variables

2006-03-30 Thread Jasper Bryant-Greene
y code (have you considered an array? what is the point of all those variables if they all hold the same value?), replace all of those '&&' with '=' and you will be fine. PHP evaluates right-to-left and the result of an assignment is the value that was assigned, so th

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-31 Thread Jasper Bryant-Greene
Jim Lucas wrote: Jasper Bryant-Greene wrote: Jochem Maas wrote: [snip] you guess wrong :-) .. I couldn't resist testing it: php -r ' class T { private $var = array(); function __set($k, $v) { $this->var[$k] = $v; } function __get($k) { var_dump($k); } } $t = new T; $t->a

Re: [PHP] preg_match

2006-03-31 Thread Jasper Bryant-Greene
e-insensitive flag, since there's no characters in your pattern). The strpos() solution above is much better and faster in this case, though. -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP Ge

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
connect and disconnect from the same database multiple times within the same request? In my experience, connecting to the database takes up more than half of the execution time of the average database-driven PHP script (I said *average*, there are exceptions). You don't want to be doing it

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
any problems doing that. I don't see it as sloppy programming, it is a documented feature that PHP closes resources such as database connections at the end of the script. But, as has been said, each to their own. -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
Robert Cummings wrote: On Sat, 2006-04-01 at 20:48, Jasper Bryant-Greene wrote: Yeah, e.g. I have a database objects layer that means I only write SQL in classes, everything else is just calling object methods. I create the database object at the start of every script but that doesn&#

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
Robert Cummings wrote: On Sat, 2006-04-01 at 21:39, Jasper Bryant-Greene wrote: Robert Cummings wrote: There's smart lazy programming, and sloppy lazy programming. I don't trust anything magical in PHP. Most of us are familiar with the magic quotes and global vars fiascos *LOL*. B

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
John Nichel wrote: Jasper Bryant-Greene wrote: I never close connections; PHP does that for me and has never caused any problems doing that. I don't see it as sloppy programming, it is a documented feature that PHP closes resources such as database connections at the end of the s

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-03 Thread Jasper Bryant-Greene
a transaction. That will hold up certain other queries. But that's at a whole other layer. -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] mktime() vs date()

2006-04-17 Thread Jasper V. Ferrer
hi, is mktime() actually faster than date() or any other date functions? tnx. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SAFEMODE w/ PEAR

2005-06-25 Thread Jasper Bryant-Greene
Ashley M. Kirchner wrote: >I'm having a small problem with SAFE MODE and PEAR that I'm unsure > how to solve: > >[error] PHP Warning: raiseerror(): SAFE MODE Restriction in effect. > The script whose uid is 524 is not allowed to access > /usr/lib/php/PEAR.php owned by uid 0 in /path/to/s

Re: [PHP] How do I create an Outlook calendar entry?

2005-06-25 Thread Jasper Bryant-Greene
safe to leave them out, in fact the body of the message (from BEGIN:VCALENDAR to END:VCALENDAR) is likely to be all that you need. Google for a VCalendar spec. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: css/html expertise??

2005-06-25 Thread Jasper Bryant-Greene
bruce wrote: > i'm playing around with css (classes/ids/etc...) does anybody here > have any experience with this or could answer a few questions?? Email me directly with your issues and I'll try to help you sort it out. Cheers, Jasper Bryant-Greene -- PHP General Ma

[PHP] Re: A Bug in string ' e

2005-06-26 Thread Jasper Bryant-Greene
cchereTieShou wrote: > You can actually try to use this to verify the problem: > > echo ' e > What you get? I got > Quite confusing. Anyone think this is a bug or something I missed? Are you viewing this via a web server? It's probably returning content-type text/html, which means that you migh

Re: [PHP] including the result of one query in another query

2005-06-26 Thread Jasper Bryant-Greene
so DISTINCT isn't a function. The expression should be: SELECT DISTINCT query_expr ... not SELECT distinct(query_expr) ... Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: A Bug in string ' e

2005-06-26 Thread Jasper Bryant-Greene
ke this: or htmlspecialchars the string, like this: Or just view source in your browser to see the raw string. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: A Bug in string ' e

2005-06-26 Thread Jasper Bryant-Greene
Kevin L'Huillier wrote: > On 26/06/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > >>Kevin L'Huillier wrote: >> >>>Could you copy the relevant code into a message? >> >>Sure, either set the content-type to text/plain (to see the ra

[PHP] Re: $mydata->StampDate

2005-06-26 Thread Jasper Bryant-Greene
se MySQL native functions to do a lot of the calculation. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $mydata->StampDate

2005-06-26 Thread Jasper Bryant-Greene
ou should be using a MySQL date field. Have a look at the MySQL manual for the corresponding functions to the above -- there's probably a quicker way with MySQL too. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Breaking up data efficiently

2005-06-27 Thread Jasper Bryant-Greene
ils); foreach($itinerary as $item) { $item = explode(',', $item); $path[] = array( 'location' => $item[0], 'country' => $item[1], 'datetime' => $item[2] ); } That's really just a matter of preference though. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   >