| |
| |
| |
|
Page: 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
Comments:
<0> try echo mysql_num_rows($result); <0> just before the while loop. <1> hi all <1> if you do a header redirect <1> is the referer sent with it <1> ? <0> mmmmmmmmm: try it <1> :) <2> hmm odd <3> mmmmmmmm <3> ;) <2> its not echoing anything in between the html tag <select name="select"> <0> it would take less typing than asking the question! <4> It would almost take less typing than entering your nick. <0> lol <0> xFlux: that might be because your inside a <select> block!
<0> xFlux: remove them till you get the code working <2> hehe <2> it querys and echos outside of the select box <0> can you use uppercase <?PHP ? <0> don't think I ever have <0> Yes you can! :) <2> :) <0> xFlux: You will only see your echo's inside the <select> block if you view the source by the way! <2> im sorry, view the source? <0> schoolboy error! ;) <5> hi all...i used on Win shell_exec and command execute...but i don't receive output in my var (only null); where's the problem? <0> right click in your browser, and select "View Source" <0> then find the select statement in the code. <0> The browser is correctly ignoring anything between <select> and </select> that is not an <option> tag! <1> Gargoyle: referer is not sent with header, any way to add a referer? <6> question <6> i have a text file full of strings, newline per string, encoded in base64 <6> just wondering how i would go about echoing every string but base64 decoded~ <0> mmmmmmmmm: I would guess header("Referer: some other url"); <0> mmmmmmmmm: But you should look it up somewhere. <2> ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh crap <2> hehe, I was pulling it from the smarty_db...I guess that would explain why my source was displaying every php code I have <0> xFlux: Don't tell me your p***word is not actually $p*** <2> no <2> good thing I didn't link you to the form though :) <7> mmmmmmmmm: the referer is sent by the client to the server, not the server to the client <7> mmmmmmmmm: and if you want php to act as an http client, then you'd probably need to use something like CURL <1> actually it is just a linkthrough script that counts the number of links <6> doesnt this look right? $data = $_GET["data"]; if (!empty($data)) { <0> mmmmmmmmm: I was correct <0> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html <1> but i want the website that it links to to see that visitors are coming through my link <0> mmmmmmmmm: Sort of. <6> i'm trying to say if $data is not empty then do this ~ <6> but it doesn't seem to do it <7> mmmmmmmmm: there's no really easy way to do that.. :P generally the user's browser sents the referer.. if you want to send a custom one your script is going to have to act as a "middle man".. and that's going to waste a lot of cpu and bandwidth needlessly <8> having some strange session issues - need some ideas <8> I have this code which appends a . on each invocation - works as expected: <8> $_SESSION['uhm'] .= '.'; <8> echo '<pre>' . print_r($_SESSION); <8> when I include another document <8> it stops appending that dot <8> no errors or anything - it just doesn't "increment" any more <8> ofcourse something must be really wrong in that include - I just don't have an idea of what to lok for <0> Mazon: Start by srearching it for the word session <8> done that - there is nothing suspecious <8> it's *really* weird <8> right now I am trying to locate the offending line by commenting all sorts of **** out <8> it's just that the inclue includes ~10 other pages :( <0> Mazon: not vBulletin by any chance? <8> no - custom code <8> hmm, may be on to something - stay tuned :) <9> I am having a strange behaviour with IIS 5.0 and php 4.3.4. The working directory for a script is the /windows/system32 in place of the directory where the script lives. It is a bug or perhaps a misconfiguration? Any idea? <0> mmmmmmmmm: Actually, there is a quick way. Use javascript to redirect the browser, not header("location...") <6> ok thanks a lot really helpful awesome beautiful marveeeeeellous <10> im having trouble declaring a variable global, so i can use it out side function <0> culhudo: read the docs. <10> take a look http://php.pastebin.com/536601 <10> problem on line 6 <7> use global $result_globals <0> culhudo: You have already used the name result_globals locally.
<10> mmm <7> you can't declare only a key of an array to be global <7> you have to make the whole variable global <10> is i take out the [$q] i get: Invalid argument supplied for foreach() <10> [$g]* <7> you should try doing that in line 1 of your function <7> not in a loop.. <0> culhudo: not to mention you are tying to foreach a result resource! <7> oh <7> hhahaha <0> best option... select the whole block and press delete! <7> agreed :) <10> i was a different function that used a db cl***, im trying to mod it to work only with mysql <10> :/ <7> ahh <10> i just want the result to be global <7> well with a mysql resource you need to use functions like mysql_fetch_array to get the rows from the query <7> you should seriously consider reading the manual :P <10> i do use that all the time <0> well your code wont work anyway, but you use global like: global $somevar; $somevar = 10; <10> i was reading about it, didnt get why u gotta type in the $var twice <10> its like pascal, with string declarations <0> culhudo: tuff ****. <0> culhudo: If you don't like the syntax of the language, pick another one! <10> wtf, i didnt say i didnt like it, i was just trying to understand the reason why its this way <0> culhudo: Cos you have a line to say "these vars are global" (global $var1, $var2, $etc;) <0> culhudo: Then you use them later in your function... <0> culhudo: Alternatively, use $GLOBALS['var1'] = "something"; <10> ok i fixed it <8> yay! - found the issue - some really deep file was including a file that did HTTP_Auth. The file should never have been included <11> hello <12> Is it possibly using JUST a .htaccess in a directory to process any .html files in that directory as if they were PHP? <12> s/possibly/possible <13> I think you would use apache config for that <12> I dont have access to the apache config <14> CarlH: AddType application/x-httpd-php .htm <14> l <12> ah perfect! :) <14> stick that in your .htaccess file <15> what is the easiest way to generate a query string from a _POST array? <0> vanten: foreach(blah, etc){ $newarray[] = urlencode($key)."=".urlencode($value); } implode("&", $newarray); <0> If you are going to be using the url in html source, you should implide with & <0> *implode <15> thx <16> Is anyone there! <16> I have a question about preg_replace <16> i want to only modify the <body> tag within an HTML file.. and loos its attributes. <17> what preg has to do with that? <16> is this code good? .. preg_replace("/<body(.*)>/i","<body>",$content); <16> Well i want to change the body tag of an HTML file.. and because the body tag can have allot of attrubutes , i thought the fastest way to do so is to use a preg_replace.. <16> Or is there another way? <18> good morning <16> Goodmorning whtwhat. <18> good morning ricardo <16> Whtwhat i hope you have read what i'm asking and would like to ask for your help about this subject. <18> what subject? <16> Well i need to create a preg_replace to replace the <body> tag in an HTML file. <16> The body tag has allot of attributes and i need to dump those in that HTML file. <16> So my suggestion for the preg_replace is: preg_replace("/<body(.*)>/i","<body>",$content); <19> need to make it nongreedy <16> The replacement goes ok ... but the content that is after the body tag is losed when executing the script. <10> im getting a 'no such file or directory' error for a require_once(); line. funny thing is that the file is there, and the path is good <16> Can anyone help me with this? <15> "/<body[^>]*>/" seems safer to me <18> Ricardo replace de meta ? and this stuff ? <15> if you want to remove attribs in the body tag that is <16> Well no the body tag. <19> "/<body(.*?)>/i" maybe <15> Ricardo: you want to remove the body tag? :) <16> Nope... replace it with a clean body tag. <16> so <body bgcolor=""> should be <body> <15> so you want to remove attributes in te body tag
Return to
#php or Go to some related
logs:
freenas shell permission denied
#gaim DBD::mysql ubuntu mysql_config You require additional pylons
#python is_defined PHP opensuse par2 #php cdemu fc5 #php
|
|