logs archiveIRC Archive / Freenode / #php / 2006 / May / 23 / 1
cythrawll
greenpenguin13, your life would be easier just to use a java client
AfroTurf
?
azuranz
yeah so is there a workaround
cythrawll
if your using irc there's one's already made that are OSSM
Stx
azuranz: Hack it.
greenpenguin13
oh nice
ill take a look
ty :)
cythrawll
google pjirc
_bleee
is there any library functions that could help me out with converting numeric representations of date parts and convert them into a textual representation. For instance the 5th month of the year is May.
cythrawll
strtodate
er
         

AfroTurf
strtotime
lol
cythrawll
stringtotime
dammit
azuranz
i want to run a scrip on my webserver
cythrawll
AfroTurf, got it
azuranz
which connects to my home webserver
AfroTurf
date('m', strtotime("now"))
_bleee
well thats pretty darned simple then
azuranz
my home webserver opens C:/programfiles/itunes/songnowplaying.txt and grabs the title & artist
_bleee
cheers
itrebal
AfroTurf: err... why does that make sense
cythrawll
azuranz, sounds like a job for webservices
azuranz
so the file open busienss is going on in my home side. so is there maybe a way to isolate it to that?
AfroTurf
itrebal: just an example, i wouldn't do that
azuranz
like to isolate the file grabbing & outputting to my home server so my web server wont have to run file open?
so my web server will just get the output of my homeservers get Nowplaying script
eml
I include "viewReferals.php" in my index.php, i set $pageTitle = "View Referals"... when I do <title><?php echo $pageTitle; ?></title> I get an empty title... why?
cythrawll
azuranz, webservices
check out php's SOAP
AfroTurf
eml: check to see if your setting the $pageTitle; before <title>.... </title> in your page
azuranz
cythrawll you must be one of those people who reboots their computer when they can't fix a problem
maybe they'll get lucky and reboot will magically fix itself
cythrawll
azuranz, no not really
azuranz
yeah well i prefer to find a solution other than hey can you build a road here so i can cross
         

cythrawll
azuranz, webservice were created to do remote procedure calls across multiple web servers
whats the problem?
hell azuranz if you did it that way, you could even use ajax so it would update on the fly without reloading the page
azuranz
Still prefer to see if theres an alternate solution. in relation to my last question though. is it possible to isolate the file grabbing to the script on my home server? Can you do that with php? so the web server isn't running the script on their server
|patrick|
sometimes a reboot is in order and that is the problem
cythrawll
cuz the communications will be throught xml
azuranz
ie. i have http://website.com/nowplaying.php ->> nowplaying.php includes Http://homeserver.dyndns.org/nowplaying.php ->> include c:/program files/itunes/nowplaying.txt
is that an understandable question? the possibility to isolate a scripts components?
enygma
(Action) confuses over this error
cythrawll
azuranz, oop?
azuranz
whats oops
cythrawll
object orientation
azuranz
yeah?
cythrawll
which would require SOAP
azuranz
dam
mattmcc
(Action) blinks.
azuranz
seems complexer
mattmcc
It what? :)
cythrawll
to do a remote execution of
toast
[]oi
cythrawll
not really
Pollita
The greatest mistake in software development since Larry Wall was born
cythrawll
it's easy :/
toast
http://pastebin.ca/58144
mattmcc
No, it doesn't require SOAP, that's ludicrous.
azuranz
is this a feasible solution though
toast
the JS doesnt work innit
azuranz
in terms of time it'll take
toast
echo '<a href="#" onclick="addToBasket($i);return false;"><img src="images/basket.gif"></a>';
azuranz
bro just cause you chucked an echo in a javascript statement doesnt mean you come here for help
AfroTurf
toast: umm... is that a javascript function or a php function in there?
toast
both :p
injecting a JS line..
azuranz
dont try that sht james bond. i invented these support seeking techniques
|patrick|
It's RPC your trying to do azuranz
azuranz
RPC
whats rpc
cythrawll
mattmcc, what doing a remote call to a method?
toast
remote procedure call
it's soap ..
cythrawll
toast, no it's not
AfroTurf
its that windows thing
|patrick|
look into XML_RPC on pear
azuranz
so will that run the script isolated? so my web server wont have to do fopen?
cythrawll
soap and xmlrpc are tottally different
toast
well considering your exchanging xml objects it is
^O
azuranz
bro i'm using php what are you on
cythrawll
but php has soap functions, but is still working on xmlrpc
there is probably a pear module for it tho
azuranz
the hell
cythrawll
and zend framework has it
which is still EARLY in dev
azuranz, you want to execute the output of a script and pass the return value to another webserver
AfroTurf
toast: are you trying to use a php var of $i in your onclick?
toast
yes afro
AfroTurf
toast: echo '<a href="#" onclick="addToBasket('.$i.');return false;"><img src="images/basket.gif"></a>';
toast
thx
cythrawll
or he could have just changed the ' to "
and escape all his "
AfroTurf
either or
cythrawll
OR
heredoc
why doesn't anyone use heredoc
itrebal
heredoc is satan.
cythrawll
besides that
itrebal
lol
akumanz
yeah
cythrawll
yeah
itrebal
yea?
timmy3
yeah
AfroTurf
yea?
itrebal
i guess so
AfroTurf
guess who
|patrick|
azuranz: You want to trigger a function on your home webserver from a script on your production web server, right?
timmy3
yea?
akumanz
yeah
AfroTurf
yeah
cythrawll
yeah
itrebal
alright
toast
ohh well, still doesnt work
akumanz
i want my home server to do the Fopen , and somehow for my webserver to just execute the result not do the fopen
itrebal
ak_work: ..waht?
toast
hum
since i include it, maybe the JS doesnt work ?
ross
if i have a file in the $_FILES array is there a function to get the extension, or do i have to write my own
acidjazz
ok so i got a site using sessions and cookies and i want their session to never expire ever, whats the best way to do this?
AfroTurf
ross: www.php.net/explode
cythrawll
akumanz, your talking pure webservices yo
ross
afroturf:thattle do thanx
akumanz
god dam
aite latas
oh
cythrawll
acidjazz, i would question the security in that, and also a whole bunch of other things but besides that: check you php.ini file
acidjazz, also, the session should always be reset when the user reopens their browser, so you would have to set a cookie on teh clients' machine to re establish the session every time
ido-
i need to save a product name and quantity, arrays or hash table s?
itrebal
they are all arrays
ido-
oh, eh.
||cw
ido: no they are al lhashes
AfroTurf
lol
||cw
php doens't have a true array
itrebal
right, i knew it was one of those :/
||cw
it does have numbericaly indexed hashes
itrebal
sorry :)
||cw
heh.. number-icaly
ido-
hrm
cythrawll
perlperl
ido-
indeed
perh'lhashtables
jfarrell
in php4
cythrawll
upgrade upgrade!
:p
jfarrell
is their a way to cycle through the class fields like an array
Renacor
why doesn't this work to find multiple needles?
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 next »