| |
| |
| |
|
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 30 31 32
Comments:
<0> Eh. no dice. Sigh. Back to reinstalling. :P <1> hi <1> I'm doing an require_once('b.php') inside a.php <1> I'm sure that the page I'm loading executes that, because if I modify that like of .aphp it fives an error <1> but oddly if I insert erroneous lines in b.php, no error happens <1> it seems as it hadn't been included, not even once ! <2> How do I allow _ and - as valid chars in my regexp? <1> as with any other? :P <2> "Unknown modifier" <3> Don't know much about regex, but you could test: \_ <1> maybe using \_ and \- <2> won't work <2> already tried that <4> Hi <4> I have a problem with a site running php4.4.x, facing with mirrors of it running 4.3.x <5> require_once will halt processing if the file can't be included...
<1> cyphor: but it would give an error/warning right? <5> check for notices etc..., put a print statement in the included file and see if it prints <5> depends on php.ini settings <5> but require will halt processing either way if it can't include the file <4> I get error in this line: foreach ($GLOBALS['EXT'][$k1] as $k3 => $v3) <4> I get "Warning: Invalid argument supplied for foreach() " <5> $_GLOBALS ? <4> That same code works in other servers with php 4.3.x <4> Well, I need to query a certain value obtained from inside a function <4> In fact, it's an array, as you see <6> can i include a file with variables sent to it. eg.. meal.php?id=33 <7> http://hashmysql.org/paste/viewentry.php?id=1648 what's wrong? <4> cyphor: on of the pages is http://nave-stage.escomposlinux.org/productos/extensiones/spellcheck/ <4> You can compare with the same page at http://nave.hispalinux.es <6> can i include a file with variables sent to it. eg.. meal.php?id=33 <8> hello, how can i p*** variables from one php page to an other with post ? <4> Andy--: yes, you have to reference by using $_GET <4> Andy298: it was for you :) <7> AAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH <7> *start kicking his PC* <6> when i do.. include("meal.php?id=33"); the file isn't included <4> panicou: read the $_POST array <6> without the ?id=33 it works :S <8> i mean <8> how do i p*** it ? <2> having - in my regexp as a valid char only seem to work if I put it as the last one <8> without a form <8> i am kinda confused :) <4> Andy298: no, just include meal.php, and from inside, read $_GET['id'] <6> omgs: but id isn't getting submitted! <4> panicou: you need a html form, and from the destination, read the $_POST array <6> i think a function would be better - but never used them1 :S <8> aha <4> Andy298: that's a different issue, you are talking about including, not posting <4> Andy298: read about $GLOBALS at php.net <9> Hey. <9> How would I go about viewing the data stored inside of a CSR (certificate sign request) before I sign it? <2> $text = preg_replace("/\[mail='([$url_chars]{1,$url_length})'\]/i", "<a href=\"mailto:\\1\">\\1</a>", $text); <<< How would I change that to take [mail="email"] instead of [mail='email']? <2> I tried with \" but that didn't do it <7> god <7> this is so weird <7> FF shows one thing <7> source code, another <10> nowec: how about ['|\"] <11> hi all - with php v5.1 - is php 5 now finally considered stable enough to use in production ? <10> satch5150: 5.x has been for quite soem time <10> satch5150: some apps written for php4 will still need some work <11> ah <10> but not most <11> all the pear mods working w/php5 then ? <7> I HATE AJAX! <7> Messing up everything! <10> not all, but the pear binsry should know <12> Nekusagi: how so? <10> Nekusagi: it's just the javascript part <11> ||cw: ok, thanks <7> I HATE, but SO HATE js <12> has anyone been in contact with AllanW? <7> I never liked it <7> and I hate the fact of needing to use it
<12> Nekusagi: i never did either <12> why would you ever need to use it <7> it doesn't work with charsets <7> to make linked comboboxes <10> shouldn't be any different than using forms <7> GOD, it is called Web 2.0, but it should be named 0.2 Alpha RC 0.1 Almost Testing Version <6> a SQL command doesn't seem to work from within a function? <13> does too <13> you're just not doing it right <13> pastebin, show me the code <12> i wonder how many extras i could get into my php install... <6> ok well where shouldi include the connection details <6> inside or out of the function? <13> we don't know until we see how you're doin git <13> but most definately, all includes should be outside of anything but the global scope <6> the SQL is fine, i've run he command manually works ok. <6> i have also connected with the same script to add / delete records <6> this time i just need to select <13> if you're not going to show us code <13> i can't help you <10> Andy298: you should access the connection setting from whatever scope make most sence <10> and functions do have thier own scope, but can get to globals via $GLOBALS[] <6> http://pastebin.com/631710 <6> want to see connection too? <14> problem is with connection i bet <3> Hey, someone has measured aproximately the performance gain for php5 in production? <10> Andy298: you don't have $connection defined int eh fuctions scope <6> http://pastebin.com/631714 <10> p*** it in as a param <10> or use $GLOBALS['connection'], either works but I'd recomend p***ing it in for clarity <15> does anyone have experience with Smarty? <10> genelisp: #smarty does <15> ||cw: I never get any help in that channel <6> so now i have.... <6> function booked ($room, $day, $period, $connection){ <10> ok, but smarty wasn't written here so we can't support it <14> Andy298: $connection = mysql_connect($hostname, $user, $p***) <14> inside ur function <10> chisler: why make a new var when he has one <10> Andy298: actualy function booked ($room, $day, $period, &$connection){ would be better, so it uses a refernce <14> good point <6> i've tried p***ing the connection but it didn't work! <10> mysql_error() provide any clues? <8> is the any way to see the contents of the whole $_post and $_get array ? <10> panicou: print_r() <8> thx <16> hey guys I have a question.. I have 1 combo box that pulls data from my country db, and I want them to choose a country like USA, and if USA is chosen in the next combo box below it will display the contents from the table us_states <16> see I need to do this by pullign the data from country table, and if USA get data from us_states, and if Canada get info from canada table, and if other, it will display a box for them to enter country, and state/provience and etc <6> so each time i call the function i have to p*** $connection? <16> does anyone know how I can limit how many charcters, someone can type in text area box? <17> S^Gerbitz: #web <17> (it's not a php question) <18> i have a script that has mysql connections through out (its a functions script), but for some reason, when i do a connid = mysqlconnect(x,x,x), the rest of the script after that stops <18> every query i always specified the handler, and right after its query, i closed it out, but tis still doesnt respond <19> Did you check mysql_error? <19> More importantly, check display_errors and error_reporting in php.ini or phpinfo() <18> well it wasnt really an error <18> cause it connected <18> and ran the query perfectly <18> just the rest of the functions and the script wouldnt run after that (the rest of the other functions use a previous connection to another mysql server <20> Is there a way to process a url in php w/o curl? <13> what do you mean process? <13> curl's job is to make a secure connection <20> like send GET data to a url so it can run <13> yea, a few ways actually <19> http://www.php.net/file_get_contents <19> Is probably the easiest <13> but try file("http://www.website.com/?set=1"); <13> yea, file_get_contents is only php5 though <19> Er, no it isn't <21> or include, or fopen
Return to
#php or Go to some related
logs:
#web pbot.pl script #suse #ubuntu install gprolog ubuntu w32codecall #perl uninstall limewire with ubuntu phpIpacStats foxandxss
|
|