IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-27
Pages: < 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 >
[17:38]<sxrmpa>didnt realize there was a separate channel
[17:38]<wjlllrws>dammit
[17:38]<wjlllrws>the 'support' link talks about "#pear" in efnet, tho
[17:46]<jjwwsdyvx>hi, how can i include html from another server in my page? include('http... gives me: URL file-access is disabled in the server configuration) how can i turn that on in an htaccess file or ini set?
[17:48]<mrxrmnvr>JowWSmith, you want to include just an .html?
[17:48]<jjwwsdyvx>no, a php page that would run on the other server and show the output here
[17:49]<wjlllrws>JowWSmith: You want fopen_wrappers and DON'T INCLUDE EXTERNAL FILE!!!
[17:50]<yvzn2rf>JowWSmith: if you include the page, then they can put PHP on there to be executed by your server - DO HNOT DO THAT! instead, use file_get_contents, use the file wrappers, NOT include or anything like include
[17:50]<jjwwsdyvx>ok how can i do it then? need to run the script on the other server and need to have the result printed on the page
[17:50]<jjwwsdyvx>file_get_contents gives the same error
[17:50]<wjlllrws>itrebal: Didn't I just said that?
[17:50]<yvzn2rf>readfile file_get_contents...
[17:50]<yvzn2rf>Wolfpaws: yes, i was explaining why
[17:51]<svjzdzxzsnz>woof
[17:51]<pyv9ppn>http://pastebin.com/741220
[17:51]<pyv9ppn>line 17
[17:51]<yvzn2rf>Stormchaser: i figured one should know why they're not doing something
[17:51]<pyv9ppn>getting a T_STRING error
[17:52]<svjzdzxzsnz>fit4lfe: line 11... Get a sutable editor.
[17:52]<pyv9ppn>a what editor
[17:52]<svjzdzxzsnz>non-notepad or wordpad
[17:52]<yvzn2rf>anyway, better one
[17:53]<svjzdzxzsnz>should be "suitable" anyways
[17:53]<yvzn2rf>right
[17:53]<pyv9ppn>I use crimson
[17:53]<pyv9ppn>I'm on a windows box right now
[17:53]<yvzn2rf>Emacs is crossplatform
[17:53]<svjzdzxzsnz>fit4lfe: Then turn the syntax highlighting on
[17:54]<pyv9ppn>k
[17:54]<pyv9ppn>what about that error though
[17:55]<wjlllrws>fit4lfe: I told you where to look...
[17:59]<jndv>Can someone help me with a regEx that strips all whitespaces (Except " ") from a string? I just want it on _one_ line
[18:07]<pypjv|cjp>good morning everyone
[18:08]<pypjv|cjp>anyone here?
[18:10]<fnycx>i'm struggling with server-side form-validation... this is what I want: if form-field blank, then echo something, and then exit. i've tried with is_blank and preg_match, but it's not working. suggestions?
[18:12]<pypjv|cjp>try if (isset($_POST['user']) { process_form()} else {echo "you didn't fill in your username"; }
[18:13]<pypjv|cjp>missed a } there after the ['user'])) <----- how it should be
[18:13]<pypjv|cjp>anyone for some socket help?:P
[18:13]<bfra]{juv>hi
[18:13]<bfra]{juv>excuse me.. some weeks ago, im banned
[18:13]<bfra]{juv>why?
[18:14]<fnycx>pilot|kof: thx, i'll try it :)
[18:14]<pypjv|cjp>yw
[18:17]<eddgdw>IS there sumilar syntax for: foreach ($multiDimArr as list($a, $b, $c)) {} or do i have to foreach ($multiDimArr as $tmp) { list($a, $b, $c) = $tmp; } ?
[18:20]<pypjv|cjp>no idea sorry zimnyx
[18:20]<fnycx>pilot|konf: tried to sort ort the }, but i don't get it...
[18:21]<fnycx>s/ort/out
[18:21]<pypjv|cjp>yeah got what you meant want to post your form real quick and I'll attempt to help you out with it?
[18:24]<fnycx>ok. is there a flow-channel?
[18:25]<pypjv|cjp>you can pm it too me
[18:43]<gfygm2frm>evening
[18:43]<gfygm2frm>I need some assistans in debugging PHP5 running as a FastCGI module
[18:45]<gfygm2frm>http://pastebin.se/2866
[18:51]<2funfjvus>I cannot pass variables from an index.html script to an included script. I've tried globals and sessions. The variable will not pass even when it is loaded into a session. I'll pastebin the code if anyone is willing to help.
[18:51]<ry2j>nlindblad, USE="php fastcgi" emerge lighttpd, should help
[18:51]<gfygm2frm>it's OpenSUSE
[18:51]<luacds>how do I find installed php version?
[18:51]<gfygm2frm>I installed the package "php5-fastcgi"
[18:52]<gfygm2frm>aibo: and php5 -v says it's the fastCGI version
[18:52]<rsrsr>ioncube_loader__4.4.soâ€
[18:53]<rsrsr>where can i get tjis?
[18:53]<rsrsr>what i have is ioncube_loader_lin_4.4.so
[18:56]<rsrsr>where can i get tjis?
[18:56]<rsrsr>what i have is ioncube_loader_lin_4.4.so
[18:57]<rsrsr>ioncube_loader__4.4.soâ€
[18:57]<pyv9ppn>http://pastebin.com/741286
[18:57]<pyv9ppn>trouble with line 30
[18:57]<pyv9ppn>variable error can't see it
[18:58]<pyv9ppn>need a fresh pair of eyes
[18:58]<jve>well, you're using globals apparently
[18:58]<jve>which is a big nono and might be part of the problem
[18:59]<jve>and you forgot a semicolon on line 26
[18:59]<luacds>I got <?php phpinfo(); ?> in a phptest.html, which I placed in the htdocs of apache folder, when I run http://localhost/test/phptest.html it shows only a blank page
[18:59]<jve>Luckys: needs to be a php file
[18:59]<jve>e.g. phptest.php
[18:59]<pyv9ppn>lol
[18:59]<pyv9ppn>thx
[18:59]<jve>np
[18:59]<jve>make sure to fix the security holes before you go gold ;)
[19:00]<2funfjvus>OMG! I figured it out! Did you know if you include a page using the EXACT url, even if it is on the same server, you lose nto only your session variables but the get variables as well?
[19:00]<pyv9ppn>nah thats not it that is what my editor gave me for debugging
[19:00]<luacds>JVz, thanks
[19:00]<pyv9ppn>using crimson editor
[19:01]<jve>np
[19:01]<2funfjvus>i.e. http://cybarc.is-a-geek.net/index.html includes http://cybarc.is-a-geek.net/includes/pages/page.inc page.inc will lose every server side variable. When http://cybarc.is-a-geek.net/index.html includes includes/pages/page.inc page.inc retains all variables.
[19:01]<jve>bluelotus: er, yeah, you need to include server-side else you get the parsed version
[19:01]<2funfjvus>That is a very crazy thing!
[19:02]<2funfjvus>nono I did include serverside, JVz
[19:02]<jve>and if it worked like you said, that would be a huge security hole
[19:02]<jve>just include some remote site's page and connect to its database
[19:02]<2funfjvus>Even if it was comming from the same domain?
[19:02]<jve>yes
[19:02]<krdvfdg>I have a LONG string, and an array of say... 50 words. What is the most efficient words to remove any and all occurances of the 50 words in the string?
[19:03]<jve>str_ireplace() if it supports arrays
[19:03]<jve>otherwise, check out preg_replace or ereg_replace
[19:03]<jndv>str_(i)replace does support arrays
[19:03]<2funfjvus>Hrm... interesting :-). Then is there a way to say "include this file located at the root_dir/includes/pages/page.inc" even when you are calling it from "root_dir/html/home.html" without using ../includes/pages/page.inc?
[19:04]<jndv>$myString = str_replace(array("horse", "dog"), "***", $myString);
[19:05]<vxyzmly2z>how can i remove the first and last character from a string
[19:05]<jndv>thirdLibr: substr()







