logs archiveIRC Archive / Freenode / #php / 2006 / February / 24 / 1
xshad
or Storm[c]haser can slap you :P
d_b
anyone knows someway to force reloading on web browsers, when using history, and post variables? to prevent to ask the client to refresh the broweser
xshad
d_b use meta refresh + php variables
DxZone
meta==headers?
xshad
meta == <meta content="something" />
google for "meta refresh"
Dr1ft3d
xshad: maybe its better that i somehow get my package manage to do it :/
DxZone
xshad>> yes, but...
xshad
I dunno, i never played with gentoo
d_b
i would someting which would do like: reload the page if the client used the history :P
not setting time refreshing
         

||cw
d_b: when the client uses history the server is not contacted so this something you'd have try and detect in javascript
d_b
i see
luke_de_php
I tried sscanf($string, "%a[%b]", &$blah, &$blupp); on asdasdasd[asd,asd,sadasd] but its not working
d_b
couse i tried setting headers with private , no-cache public, .. . . and when it comes to posted variables, browser asks always from refreshing
it's good , .. but sucks for this i wanna do
DxZone
use ajax..
hehe
d_b
:)
maybe some day
not now
xshad
luke_de_php preg_match('/(.*)\[(.*),(.*),(.*)\]/s', $string, $matches);
I'm needing caffeine again... damn
DxZone
(Action) is replaced by a mutant mokey
(eh, monkey..)
(Action) is back
luke_de_php
xshad: wohoo! thank you very very very much!! I just don't understand regex
JakeConnor
anyone know what header i could send to make a site think a certain page is requesting it?
Storm[c]haser
xshad: .* ?!?
xshad
Storm[c]haser why not ?
not
hehehehe
Storm[c]haser
xshad: .*<-- greedy
xshad
forgive me Storm[c]haser ... I'm in need of caffeine
becoma a fool lol
become*
Storm[c]haser
lol
xshad
luke_de_php this is wrong, won't work
Kony24
Isn't PHP Designer also a good editor
Storm[c]haser
!+editors
php-bot
http://freshmeat.net/browse/63/ or "real men don't use editors, they just filter /dev/urandom until they get the chars they were looking for and pipe those to a file.", or http://www.php-editors.com/
DxZone
<JakeConnor> GET /something.htm HTTP/1.1
         

Storm[c]haser
I'm all for /dev/urandom
xshad
use '/([\w]+)\[([\w]+),([\w]+),([\w]+)\]/s'
I think
Jymmm
!+mre
php-bot
[MRE] 'Meal, Ready to Eat' used by the military in the field and others during a disaster as they have a long shelf life. But you probably wanted 'MRE - Mastering Regular Expressions' the bible of regex http://www.oreilly.com/catalog/regex2/ Use this utility for learning/understanding/troubleshooting your RegEx --> http://www.weitz.de/regex-coach/
JakeConnor
DxZone: huh? o.0 ... i meant with using the header function
xshad
Jymmm :)
DxZone
<JakeConnor> You can't :-P
JakeConnor
say for example i want to load http://www.yoursite.com/index from a page that http://www.mysite.com requested but i want yoursite to think your site requested it not mine
Burian
are we allowed to ask for people to test things and get opinions here?
DxZone
<JakeConnor> whaaat??
Storm[c]haser
no
Burian
ok
DxZone
<Burian> Next time don't ask..
dariball
is it possible to overload operators in php(5) ?
DxZone
<dariball> maybe, try
prium
burian, they're mean. just put it somewhere and ask...if people don't want to, they won't :P
Burian
DxZone: Yes I know now not to
prium
'dont ask to ask'
xshad
overload operators ?
JakeConnor
DxZone: i just basically want to change the page requester
dariball
yes, like function __add(a,b)
inf3rno
hmm, could anyone take a look at this, please? http://rafb.net/paste/results/iRgmih44.html -- i'm trying to do a simple download script, that i swore worked before, but i've had this project set aside for awhile.
DxZone
headers(location: www.somesite.com);
inf3rno
it appears to be listing the file rigrht, so i'm not sure that the issue's with the top part of that paste, but rather the bottom
the problem is: it downloads a file with nothing in it. 0kb.
DxZone
JakeConnor>> headers("location: www.somesite.com"); This works..
JakeConnor
DxZone: that changes the current location of the page doesn't it?
DxZone
yes..
xshad
dariball php.net/overload
JakeConnor
thats not what i am trying to do
Kony24
PHP 6?
whats php6? i thought 5 was the latest version
sjors
inf3rno: it seems like your query fails
DxZone
JakeConnor>> so?
JakeConnor
i am trying to change the requesting url of the page
davidbest
a client just asked me in an email if my hosting was 'tier 1'
any guess to what that means?
DxZone
<JakeConnor> ok.. let me think... :/
JakeConnor
davidbest: say its tier 69
dariball
xshad, this looks like I only can use __get __set .... which is not exactly what i want ... i would like to have 2 (a and b) instances of the same (self-written) class, and then just c = a + b
sjors
inf3rno: but on the other hand, then mysql_num_rows would result in a warning. Is this all the code?
inf3rno
sjors (or anyone): see anything obviously wrong? i've looked this over pretty hard, the save-file dialogue in the web browser names the file right but it's empty. see something specific i might be missing? =/
davidbest
it's tier 33 son!
inf3rno
sjors: ya
sjors
inf3rno: you should at least have that line with <center> in your document.
if this is all, it won't prompt you for a download
inf3rno
pardon? regarding what you mentioned with a <center> tag?
Storm[c]haser
!+g8
php-bot
Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here.
xshad
dariball __call($method, $args)
inf3rno
the only thing the top (list) document pulls from another document is an ID number, which presumably is pulling correctly, since
xshad
$obj->anUndefinedMethod($a, $b);
inf3rno
it lists the correct ID in the listing page.
xshad
__call($m, $a) { return $a[0] + $a[1]; }
sjors
if your query is correct, and it is otherwise mysql_num_rows gave an error, the script would come at least as fas as line 12 and thus echo-ing the line with <center>
dariball
xshad hmmm, i confess i can not exactlly follow .... but i first try to do it how i understood, before asking again^^
jiggster
who wants to offer constructive critism!?
criticism*
inf3rno
it does echo that, what's pasted in that pastebin URL is 2 seperate files. the bottom part is download.php that the previous file references. sorry if i'm missing something obvious you're trying to tell me... i've been looking at this all day... perhaps that clears things up though?
sjors^
jiggster
Storm[c]haser: you much into designs? i've done up three, but i like second opinions
ds-
I'll offer destructive criticism
:P
Storm[c]haser
jiggster: Yes, I'm very good at evaluating designs :)
jaydub
is it possible to extract the code from inside a function programatically? ie. I know you can build functions dynamically, but can you deconstruct them? (or will i have to open the file and use regx)
Storm[c]haser
PM e the link :)
*me
jiggster
i dont mind posting it in here if you dont
sjors
inf3rno: sorry, didn't see the second part.
inf3rno
=)
sjors
please remove all those ugly and bad '@'
Storm[c]haser
jiggster: yes, I do
jaydub
possible?
jiggster
heh np
inf3rno
sjors: cool, removed those, no effect though -- file now reads as such http://rafb.net/paste/results/UKDJTu75.html
sjors
well, you don't seem to echo any data...
you forgot to add echo $content; after the last header()
jaydub
is it possible to pull the code of out a function? (Basically extract its body) ?
itrebal
can any of you help me use Allah in vain?
jiggster
no
itrebal
its actually important, its not to offend
inf3rno
hah, works - thanks sjors - no idea why it worked before...
xshad
jiggster
in vain? important?
itrebal
yes, a friend of mine got in trouble for, and i quote "using the Lord's name in vain" and one of the last things to try is using another god's name in vain, say, Allah, and see if he gets in trouble for it
MalMen
hi people, get to me some support, who is the possibles causes from php no send emails, and on php show yes :X?
inf3rno
itrebal: what are you talking about?
jiggster
itrebal: i see, well... i dunno man
TML
itrebal: "Oh, for the love of Allah." would be a vain usage.
itrebal
TML: thanks alot
jiggster
but it sounds so obvious :P
TML
Or "For Allah's sake!"
jiggster
itrebal: who did your friend get in trouble from?
inf3rno
itrebal: where was this used that he got in trouble from?
itrebal
jiggster: teacher
Storm[c]haser
TML: Have you checked out that comic yet? :)
jiggster
pff, like it's their right to say what i should be able to say :P
Storm[c]haser
(Action) regrets he's missing a scanner in his room
jiggster
free speech bi**h!
inf3rno
itrebal: a teacher where? heh
jiggster
(Action) lends Stormy his scanner
it's noisy but it gets the job done
inf3rno
a convent?
heh
anyway. going home - thanks again folks, n' sjorj =)
jaydub
xshad: close, but i need the actual BODY of the function (the actual code -- not just metadata about a class)
I'll have to use file access / regx me thinks
MalMen
hi people, get to me some support, who is the possibles causes from php no send emails, and on php show yes :X?
« 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 32 33 34 35 next »