[PHP] building CLI version only

2004-03-22 Thread neko
of PHP or anything, just want a CLI exe in my home dir to do some stuff with. thanks, neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Connection handling and output_buffering

2004-02-23 Thread neko
ess some simple testing will suffice! Neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Web Service in PHP/XML

2003-10-31 Thread neko
And if you can't be arsed with SOAP, try XML-RPC, which does the job for me. Check PEAR for an implementation, or try Keith Deven's library, which is easy to use (you only deal with PHP types, and leave the XML to the library) http://keithdevens.com/software/xmlrpc/ -neko -- P

[PHP] tips on sorting an array of objects by an attribute?

2003-03-28 Thread neko
Any tips? The array size is not very large (not will it ever be), so it's doesn't have to be a super-lean sorting algorithm (no harm though ;) ) cheers, neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php web indexer?

2003-03-13 Thread neko
If anyone's interested, I integrated phpdig into my site. Seems to work quite well, and only took me a few hours to integrate it with the site's framework. nice! neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php web indexer?

2003-03-12 Thread neko
r for better results more quickly. cheers, neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] reversing attribute in array of objects

2003-03-11 Thread neko
) in the array by using the $level attribute, so in this case I'd end up with: $objArr[0]->level = 1 $objArr[1]->level = 2 $objArr[2]->level = 2 $objArr[3]->level = 2 $objArr[4]->level = 3 $objArr[5]->level = 4 $objArr[6]->level = 5 $objArr[7]->level = 5 Any tips on th

[PHP] Re: PHP OOP design question

2003-03-04 Thread neko
Answer - use PEAR for both your database connection and as a data modeling layer: http://pear.php.net check the documentation for more info. neko "Joseph Szobody" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have several web projects that are all databas

Re: [PHP] eval challenge

2003-03-04 Thread neko
nly used set of data requests that I make a tag up to handle them all at once, to make it a bit cleaner. XSL/XSLT is on my "to prototype" list ;) neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eval challenge

2003-03-04 Thread neko
layer of my CMS, but only when I can see a long-term benefit from using it. My cms makes use of presentation logic components, which you supply microtemplates to in order to produce the final output. These components can reside within "templates", so currently my html redundancy is minima

[PHP] eval challenge

2003-03-04 Thread neko
l Anyone able to solve this one? Yesterday I could achieve most other requirements with eval, but this one has me stumped. cheers, neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: eval help

2003-03-03 Thread neko
pagename:\$nodePageTags[".TAG_PAGENAME."]"; -- where the code is evaled eventually, there is a $node object defined, so the function call should work. Of course, that currently does not work :) cheers, neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Re: eval help

2003-03-03 Thread neko
we're in the pipe, 5-5-5."); $str = "Hello, \$name"; $str2 = "Hello, \$arr[0]"; $str3 = "Hello, \$arr2[".NAME_TAG."]"; echo doEvalWithVarsInScope($str); echo doEvalWithVarsInScope($str2); echo doEvalWithVarsInScope($str3); } function doEvalWithVarsInScope($str) { echo("trying to e

[PHP] Re: eval help

2003-03-03 Thread neko
t;; eval ("\$evaldString = \"$str\";"); return $evaldString; } ?> -- will produce: we're in the pipe, 5-5-5. trying to eval for str= Hello, $name Hello, Scott trying to eval for str= Hello, $arr[0] Hello, Dude trying to eval for str= Hello, $arr2['name

Re: [PHP] Re: eval help

2003-03-03 Thread neko
Thanks Dan - I just worked this out before reading your solution! :) $str4 = "Hello, ".$arr2['name']; cheers and thanks to all - lets see how that goes within my framework now :) neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: eval help

2003-03-03 Thread neko
note that the following php: Hello, $name"; $str2 = "Hello, $arr[0]"; $str3 = "Hello, $arr2['name']"; eval ("\$evaldString = \"$str\";"); echo $evaldString; eval ("\$evaldString = \"$str2\";"); echo $evaldString; eval ("\$evaldString = \"$str3\";"); echo $evaldString; ?> produces: Broness!He

[PHP] eval help

2003-03-03 Thread neko
Hi guys, My current task involves passing a string into a function that is able to reference variables defined within that function for the final output. The idea is that a function iterates through objects and eval's the string so that the objects data (name etc) is substituted in the string. Cu

[PHP] quick check - by ref vs by value with objects

2003-02-28 Thread neko
$this->db = $dbConn; } ? cheers, neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what are the planned features of php 5?

2003-02-26 Thread neko
I read something a while back about more OO features, but I was wondering if there is a roadmap anywhere? cheers, neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: emailing a web-page

2003-02-24 Thread neko
> 4) Easy to do for anyone, even for you, it's simple. Thanks for that sly jab ;) neko_ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: emailing a web-page

2003-02-24 Thread neko
Question : When people send you junk e-mails they often have image refs and so forth - does that mean they are using absolute links in the img refs? I need to find a way to allow a non-technical user to quickly and easily send off a web-page (generated on the fly) in email format, but so far I'm s

[PHP] Re: emailing a web-page

2003-02-24 Thread neko
berts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > That shouldn't be a problem. You could use fopen() to open the file. > > "Neko" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > update: > > > > I think I j

[PHP] Re: emailing a web-page

2003-02-24 Thread neko
update: I think I just need to work out how to grab a web-page and include it into a string to supply to the mail I'm generating (using pear). Provided that the hyperlinks aren't relative I should have a funky looking email going on.. neko "Neko" <[EMAIL PROTECTED]> wr

Re: [PHP] emailing a web-page

2003-02-24 Thread neko
> is it a webpage you create with php or is it a webpage that you get from > just any site? It's a dynamically generated page on my site - I wanted to just include the url's contents into a string, or something. So no I can't cheat and just grab from the filesystem :) ch

[PHP] emailing a web-page

2003-02-24 Thread neko
omplish my requirement is from your collective experience? thanks, neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: smarty vs. patTemplate vs. includes - newbie q

2003-02-20 Thread neko
s what the user can design in other ways, rather than use some template engine like smarty or velocity. To me, templates just seem like a dumbed-down language - not that useful in my opinion. neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Failed to initialize session module

2003-02-20 Thread neko
got it, had to change session.save_handler = files ;session.save_handler = user to files - my bad! neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Default argument values

2003-02-17 Thread neko
/manual/en/functions.arguments.php But it doesn't describe what to do with multiple optional arguments. Can I call the function like this: blahBlah($date, null, null, $limitNodeType); ? Need some help getting this language feature sorted. cheers, neko -- PHP General Mailing List (http://w

[PHP] Re: getting database connection to fail gracefully

2003-01-22 Thread neko
tions directly. This will provide a much better framework for database connectivity/use in general. http://pear.php.net - check out the manual. neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php obj -> xml ?

2003-01-15 Thread neko
then tell that objects to produce xml (or pass it to a transformer or something). Links? Ideas? Recommendations from RL experience? cheers, neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] resolving php tags in a string

2002-02-22 Thread neko
php tags, which obviously aren't in this case and are just presented in the browser as plain text. What's the best way to solve this one? First thought was to write it to a temporary file and then call an include on that, but that sounds plain bad. neko -- "The secret of genius