@# 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



Comments:

<0> !php list($hour, $am) = sscanf("%d:%d %s", "10:30 AM"); echo "Hour: ($hour) AM/PM: ($am)";
<1> Notice: Undefined offset: 1 in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1
<1> Notice: Undefined offset: 0 in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1
<1> Hour: () AM/PM: ()
<0> wtf?
<0> oh



<0> !php list($hour, $minutes, $am) = sscanf("10:30 AM", "%d:%d %s"); echo "Hour: ($hour) AM/PM: ($am)";
<1> Hour: (10) AM/PM: (AM)
<0> whatever.. use strtotime
<0> Deelux: uhhh, huh?
<2> What do you guys use to sync files between your stage server and production servers?
<3> rsync
<4> Two-Bits: is it possible to set a variable when pressing a link?
<5> Deelux: yes
<0> Deelux: um, not exactly
<2> is it normal for rsync to lockup the server while it syncs?
<3> <?php $variable = "doink"; ?>
<3> havoc_: not really
<5> Two-Bits: I'd say its tricky
<0> pressing a link initiates a new http request
<5> Rashonda22F: well that wont help you as you'll go to the new page as soon as you hit the link so your variable is now gone
<0> now, you can provide additional information in that request that your scirpt can use to set variables and such
<4> Two-Bits: how can i make it know how to get the information i want to print?
<0> p*** your criteria in the querystring and use that to retrieve the desired information
<6> !php $str = "house.1x15.mob_rules.ws_dvdrip_xvid.fov.avi"; $parts = sscanf($str, "house.1x%u.%s.ws_dvdrip_xvid.fov.avi"); printf("%u %s", $parts[0], $parts[1]);
<1> 15 mob_rules.ws_dvdrip_xvid.fov.avi
<6> !php $str = "house.1x15.mob_rules.ws_dvdrip_xvid.fov.avi"; $parts = explode(".", $str); print $parts[1];
<1> 1x15
<7> !php print "test";
<7> ar



<4> I have a site with 500 links. I have a arcive with 500 files with some information. How can i make the site display the information of the specific file with MY tamplate. And i dont want to change the information in all the 500 files thank you :)
<7> haha
<7> quite a dillema
<7> make your template, put it in seperate files, header.php, footer.php
<7> include('header.php'); content here include('footer.php');
<6> !php function conv($s) { return ucwords(strtr($s, "_", " ")); } $str = "house.1x15.mob_rules.ws_dvdrip_xvid.fov.avi"; list($unused, $ep, $name, $unused, $unused, $unused) = explode(".", $str); printf("01-%02u - %s.avi", $ep, conv($name));
<1> 01-01 - Mob Rules.avi
<7> then try to find a common point in all of the files you have currently, where you can parse out and throw that include in there
<6> sweet
<7> that or maybe you can make an output wrapper
<6> !php function conv($s) { return ucwords(strtr($s, "_", " ")); } $str = "house.1x15.mob_rules.ws_dvdrip_xvid.fov.avi"; list($unused, $ep, $name, $unused, $unused, $unused) = explode(".", $str); printf("01-%02u - %s.avi", substr($ep, 2), conv($name));
<7> ;x
<1> 01-15 - Mob Rules.avi
<4> rmpants. i still have to change all the files if im going to do that
<4> i use header and footer already
<7> well in each file
<7> is the html pretty consistant?
<7> like can you find where their template starts and ends by the last tag?
<7> write some code using globe, file writing, make it look for the tags as point to replace the data in each file, ya know
<7> or line #'s
<7> whatever works
<4> thanks
<7> probably use str_replace
<7> hah
<7> no problem, does that help? im not sure how your data is layed out
<7> glob*


Name:

Comments:

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






Return to #php
or
Go to some related logs:

divorced aunties in bangalore
topitoşlar
#php
#india
song i like to go swimmin with bowlegged women
akshaye paltalk
#allnitecafe
#allnitecafe
#chat-world
#linux



Home  |  disclaimer  |  contact  |  submit quotes