@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19



Comments:

<0> remember, bujin, that php does not directly create browser output. it creates html source code.
<1> hi all
<0> and a new line in html source code does *not* render as a new line as browser output.
<0> if you've done html, you know that
<1> does anyone know of any APIs out there that would allow me to calculate the distance between 2 locations using an address?
<2> google mape?
<2> *maps
<0> fp- you can use google's map api, i think. also mapquest has a pay service that does that.
<1> thenerdsangle: the research I've done on the google maps api so far makes it seem that you actually have to click on their AJAX based map
<2> if you include a file from an included file, what path does PHP search from?
<1> i'm trying to put together a form for a client where the user would put in an address to ship from, and an address to ship to.. then it should calculate the mileage between the 2 locations and multiply it by his rates
<3> i have a something magical right there :(
<1> but I can't seem to find a darn API that will do this.
<1> b1n0ry: do you have any examples?
<2> like, let's say we have some file ./index.php that includes ./incs/header.php, and header wants to include a file also in the incs dir. should header include incs/other.php or just other.php?
<0> fp- i've not done it with google api. though i have set up the mapquest stuff.



<3> when doing echo stream_get_contents($rr); it returns the socket normal text, when doing $var = echo stream_get_contents($rr); $var will be empty string
<0> though they do charge for their service
<1> b1n0ry: any idea how much?
<3> how can it happens ?
<4> http://www.google.com/apis/maps/
<0> fp- http://company.mapquest.com/mqbs/2.html
<5> hello
<5> I've got a question
<3> anyone can help ?
<1> how yeah, i don't think he'll want to pay $5k/yr... i wish I could find an example of this with the google maps API
<1> or atleast where in their documentation it exists
<6> fourat: try $var=stream_get_contents($rr)
<5> Can I override a private constructor in a sub-cl***?
<7> sucura: no
<3> ljbuesch, what's the difference
<5> i tried it
<5> and it goes
<5> not in cpp but in php
<0> fp- i don't think that is part of the google map api
<3> ljbuesch, ahh sorry, i've an error in the question, am doing $var = stream_get_contents($rr);
<3> and it returns an empty string
<3> if doing echo stream_get_contents($rr); it returns the socket stream
<1> b1n0ry: i wonder if the UPS api would return the mileage? ;)
<7> sucura: Well you can't overide it because its private
<5> but i can
<3> var_dump will return a String of 0 characters
<7> sucura: you can make it protected .. a subcl*** can then overide it.
<5> where can i post code?
<7> sucura: pastebin.com
<0> fp- see this http://www.strikeiron.com/ProductDetail.aspx?p=136 maybe?
<3> anyone can help please ?
<0> fp- "The enhanced contact information can then be delivered live via an XMLbased Web service directly into any application, platform, product or Web site."
<5> http://pastebin.com/715979
<1> b1n0ry: it says "straight line distance"
<0> fp- does say it's straight line distance, though, not driving distance
<0> yeah
<5> @cyanox look in the sample code
<1> yeah
<1> that's the issue
<0> i can't imagine that such a service will be cheap
<1> i can't imagine that such a service would cost lol
<1> b1n0ry: it may be possible to get it from UPS or FedEx
<1> b1n0ry: like using their shipping calculator tool.. but i don't know yet.. that's what I'm looking into now
<7> sucura: you'd need to make the ctor in cl*** A protected instead of private.
<5> i want to realize a singleton, so i make it private, is this a logical error of me?
<7> sucura: and if it does print what is said in the paste ... then its a bug imo
<7> sucura: no but if you want to extend it make it protected instead of private.
<5> ive got the last php (5.1.4) on windows xp and apache 2.0.58
<5> the same problem when i make it protected
<1> b1n0ry: where do you think you've seen this done with the google API before?
<5> I think it have to throw an Exception (because of overriding a private constructor), or?
<0> fp- i don't
<0> fp- however, perhaps you could send a query to yahoo! maps or google maps and parse the output :)
<1> b1n0ry: yeah.. i was just thinking that.. haha
<7> sucura: Well imo a private function (ctor) should not be callable from a extended cl***. It seems that it does however ... this might actually be a bug in PHP.
<0> m$ map point has a transaction api as well
<1> b1n0ry: ah.. try to view source on the google maps frame with the distance calculated.. it's all encrypted javascript :)
<0> try yahoo, might be easier
<0> fp- here's another: http://www.manifold.net/products/geocoder/geocoder_comp_home.html
<8> Hello
<0> fp- hehe, the yahoo maps output actually includes this text: ['dist','7.6']



<7> heh ... would be rather annoying if everybody said hello to eachother eachtime someone says hello ... :p
<0> fp- that would be pretty easy to parse
<1> b1n0ry: beautiful... i appreciate your help to find this info
<0> that 7.6 is miles, btw
<0> i just put in my home to my work
<0> and the addresses are encoded via get vars
<0> that would be a pretty easy solution :_
<0> :)
<8> I am trying to run ./configure for php and it keeps stopping with an error "checking for mysql_close in -lmysqlclient... no" yet, I specified the path to my mysql installation with --with-mysql=
<1> b1n0ry: I don't see that ['dist' string
<1> b1n0ry: what URL are you using?
<0> fp- view source :)
<8> CyaNox: Some places get mad if you just walk in and ask your question. They think its rude. So, as a general rule, I give a quick and short 'Hello'.
<0> fp- i'll pm you since the url has my address
<0> and you can use it as an example
<1> b1n0ry: ok
<1> b1n0ry: I clicked on Yahoo! maps from Google's search and I didn't see that in the view source.
<0> fp- i pm'd you
<8> Anyone have an answer to my question?
<1> b1n0ry: got it.. thank you much
<0> no prob. the only thing is you might have to modify your search expressions if they change their page
<3> can anybody help me about this : http://pastebin.com/716000
<3> is it a php 5.1 bug or am i wrong ?
<3> please tell me
<3> am on this problem for some days
<0> there are no bugs in php
<6> :)
<5> only features :)
<9> b1n0ry: Read too many fantasy books lately? :)
<0> no bugs in php, lots of bugs in php programs :)
<0> Stormchaser: lol
<7> there are more bugs in PHP then you can count in hands and feets with a full cl***room of kids.
<10> I've made a script that outputs a PNG image, but I need PHP to parse the script even if its filename is x.png, I've tried SetHandler and ForceType in .htaccess, but these doesn't seem to make any difference.. any ideas?
<3> anybody read my problem ?
<9> kitty!
<6> fourat: I'm not sure what the problem is, it looks as though it should work
<6> fourat: which version of PHP?
<3> ljbuesch, i know, that's the problem :(
<3> 5.1.2 on debian
<0> hey, Stormchaser, are you in the US?
<9> no, I'm in ME
<0> ME?
<0> mexico
<9> yes... Me, you know... Me, myself and I :)
<3> ljbuesch, what do u think ?
<9> b1n0ry: No, but I already told you I'm not in US... Slovenia
<9> !+typing english
<11> ##PHP does not allow aolbonics (or leetspeak) such as "u for you, r for are, ic for i see -- etc" and typing like this will result in you being silenced; furthermore, inability to adapt may result in a ban.
<0> heh, ok
<6> fourat: no clue, I was just looking in bugs.php.net, but didn't result in anything useful
<12> Hey
<13> I'm having trouble getting my results to display. sometimes they display, sometimes they don't
<13> http://pastebin.com/716020
<12> im making a schedular scripts where you can add a entry for the day and the next 6 my question is what is the best way to do it, i need to be able to order by day HH:MM and delete rows that are older then it
<14> I am trying to write to a file
<14> and I want to append to it
<14> but I want to append about 10 characters from the end
<14> so I type
<14> $fp = fopen("serials.xml","a+");
<14> fseek($fp, -5,SEEK_END);
<14> echo ftell($fp);
<14> fwrite($fp,"a");
<14> fclose($fp);
<14> except with a -10 instead of a -5
<14> and without the echo
<14> and it still appends it to the end
<14> I used that echo to make sure that the "cursor" in the file was 5 from the end
<14> and it was
<14> what am I doing wrong?
<15> $sort_result before the array
<14> I think I timed out
<14> did anyone see my last few posts?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

pptp suse
ubuntu wireless icon tray
sarge ipx starcraft
+samba 4 +debian +sources.list
driver xm4000
no /proc/bootsplash
bondi blue xorg.conf
ubuntu radeon 9200 stepmania
#php
#perl



Home  |  disclaimer  |  contact  |  submit quotes