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
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
/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
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
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
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
> 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
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
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
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
> 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
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
$this->db = $dbConn;
}
?
cheers,
neko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
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
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
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
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
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
) 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
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
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
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
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 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
ess some simple testing will suffice!
Neko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
31 matches
Mail list logo