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.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-19
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
36
37
38
39
40
41
42
43
44
45
Next >
[22:38]<zzaczvwjzc>I'm trying to install PHPWiki on Mac OS X and I'm having a little problem. When I go to the page for configuration, which is a .php file, I get text -- the PHP does not get executed. What can I do to fix this?
[22:38]<mzzcz9q>ZackAtWork: I'm sure somebody does. I haven't done it myself, but I think the easiest way is to take someone else's already-made package, Apache + MySql + PHP and jus tinstall it
[22:38]<mnrrp>i need a coder to create me a site like www.fusioncash.net www.mavishare.com www.treasuretrooper.com
[22:38]<sf00>ZackAtWork: http://www.entropy.ch/software/macosx/php/
[22:38]<mnrrp><3
[22:39]<wjlllrws>!+jobs
[22:39]<lxl-2jv>no job posting / asking for jobs on ##php (see /msg php-bot g7). You might want to check out: ##php.jobs http://www.geekfinder.com, http://www.monster.com, http://www.rentacoder.com or http://www.getacoder.com, or php.net/links, "Developers and Job Opportunities".
[22:39]<mnrrp>ah thanks
[22:40]<srdunf>whenever i use file_get_contents it just gets the contents of the file, but does not process it through the php parser. is there some other way to do this? i dont know what the FULL http address will be, so i am doing it relative, perhaps that is the problem?
[22:41]<mzzcz9q>samuel: Yes, you can use include() with remote files, but doing so is an immensely bad idea- I'd generally call it a "recipe for disaster"
[22:41]<wjlllrws>samuel: What do you mean "process trough the PHP parser"? Do you want PHP to interpret the content from a remote site? If so, why?
[22:42]<srdunf>Wolfpaws, local site
[22:43]<mzzcz9q>In which case, access it through a local filename
[22:43]<mzgmzya>what's the diff btw split() and explode() ?
[22:43]<drvvdaa>The manual pages detail it fairly plainly.
[22:43]<ajdn>php.net/split php.net/explode
[22:43]<drvvdaa>Although the short answer is that nobody uses split.
[22:43]<mzzcz9q>I use split.
[22:44]<drvvdaa>Because you don't have PCRE?
[22:44]<srdunf>MarkR42, but using file_get_contents("./generator.php") just gets me the contents of the file without processing
[22:44]<ice>is there a tutorial on how to show the rest of your blog entries on a seperate page everytime the users wants to see more then 10 entries
[22:44]<zdzxzzmfdgzx>Split has a very tiny niche market between explode and preg_match_all
[22:44]<mzzcz9q>samuel: Well, look at include() then (normally require() is a better idea)
[22:44]<zdzxzzmfdgzx>ICE: Google for "PHP pagination" and you should find a lot of solutions.
[22:45]<2fcxrwc>lo
[22:45]<mzzcz9q>mattmcc: Actually, no, you're right, I should probably not use split, and use either explode or preg_split instead
[22:45]<mzzcz9q>I thought split was an alias for explode
[22:45]<ice>thx
[22:45]<srdunf>MarkR42, thanks
[22:46]<drvvdaa>MarkR42: Easy assumption, since join & implode are aliases.
[22:46]<zdzxzzmfdgzx>split is NOT an alias for explode
[22:47]<mzzcz9q>In which case, it's another function I should put in my disable_functions then... split (goes in with stripslashes and a few others)
[22:47]<ryac>samuel: fyi - include() (without http://) is not accessing it through a http request
[22:47]<ryac>samuel: its accessing it on local filesystem
[22:48]<sf00>Should suit is relative paths.
[22:48]<ryac>?
[22:49]<2fcxrwc>I am looking for a way to get all values from an array where the named keys match a pattern
[22:49]<sf00>He was trying to do it useing file_get_contents like "file_get_contents("./generator.php")"
[22:49]<sf00>using*
[22:49]<2fcxrwc>Is there a function that allows me to filter an array that way?
[22:49]<zdzxzzmfdgzx>sl00: You need to use a full path, or you need to understand how include_path works
[22:49]<zzlzm>blkhawk: what kind of pattern, regex?
[22:50]<sf00>richardlynch: As I said "Should suit is relative paths."
[22:50]<ryac>http://us2.php.net/array_filter
[22:50]<2fcxrwc>arpad: i dont care - the problem is thus: I am working with a few html form checkboxes
[22:50]<2fcxrwc>a variable number of them generated from php
[22:50]<ryac>...oh
[22:50]<ryac>array_filter doesn't give you the key
[22:50]<myjrjo7>blkhawk, you may try array_walk
[22:50]<2fcxrwc>unchecked boxes don't return any value
[22:50]<ryac>hm
[22:50]<mzzcz9q>blkhawk: If you have a set of checkboxes, a tip is, give them all the same name, make it an array such as <input type="checkbox" name="options[]" value="opt1" ...
[22:51]<zzlzm>blkhwak: what exactly is the problem with them?
[22:51]<wyggq>are there any bugs in apache2.0.54 and PHP RHES, when creating cookies, that would make apache not return imedeatly, and eventualy cause the system to have toomany httpd process?
[22:51]<2fcxrwc>MarkR42: that actually works?
[22:51]<sf00>richardlynch: ?
[22:51]<mzzcz9q>blkhawk: Then if you call all your checkboxes options[], then $_POST['options'] should be an array containing only the selected ones, unless there are none selected in which case it won't be defined.
[22:51]<2fcxrwc>that would be great
[22:51]<2fcxrwc>yay
[22:51]<2fcxrwc>many thanks
[22:51]<zdzxzzmfdgzx>Not only do arrays work, you can have KEYS in the arrays like name="foo[42]" value="yes"
[22:52]<mzgmzya>how do i tell if an array is empty? empty() ?
[22:52]<2fcxrwc>isset?
[22:52]<mzzcz9q>so you'd probably want to do something like if (isset($_POST['options'])) { $opts = $_POST['options']; } else { $opts = array(); }
[22:52]<zdzxzzmfdgzx>mandric: http://php.net/count
[22:52]<zzlzm>mandric: that would work
[22:52]<ryac>Empty()
[22:52]<ryac>:p
[22:53]<2fcxrwc>MarkR42: actually i usually have a filter for cruical $_REQUESTS
[22:53]<mzzcz9q>winn2: If there are too many httpd, then MaxClients is set too high
[22:53]<2fcxrwc>but i set defaults like that too
[22:54]<mzzcz9q>winn2: Creating cookies should NOT cause Apache worker threads to lock, but something else might. Are there informative errors on the logs? Have you set a script timeout in PHP?
[22:54]<mzzcz9q>Are you able to see what is being requested in the locked worker threads? (Hint: enable ExtendedStatus)
[22:56]<mzzcz9q>winn2: Never, ever, set MaxClients too high. A lot of Apache installations have it set too high, especially with PHP and prefork.
[22:56]<dzwnz>anyone help me with a function scope problem
[22:56]<dzwnz>?
[22:56]<sf00>Not without knowing the problem I guess.
[22:57]<zdzxzzmfdgzx>maxer: There are only 2 solutions for function scope problem. Pass it in as an arg, or declare it as global.
[22:57]<uzyrxxnnl>is it possible to have an 'else' with switch?
[22:57]<2fcxrwc>many thanks
[22:57]<myjrjo7>uriahheep, default:
[22:57]<sf00>uriahheep: default case
[22:57]<2fcxrwc>It was a straight dropin - I even could remove a bunch of ugly foreach and While (isset()) statements
[22:58]<dzwnz>richardlynch: http://pastebin.com/718854
[22:58]<dzwnz>-two functions
[22:59]<nupjzdrv>-evening all :)
[22:59]<dzwnz>-hello
[23:00]<uzyrxxnnl>+nice, thanks guys
[23:00]<nupjzdrv>-i'm writing a form handling script and just need a couple of tips
[23:00]<svjzdzddnz_drd>+hello, does anyone know a program that can run some tests on my php site to see if it contain any security holes?
[23:01]<uzyrxxnnl>+diogo86: sl00: is it case default: or just default: ?
[23:01]<sf00>-default:
[23:01]<nupjzdrv>-its an rsvp page, radio buttons - i can attend, i cant attend
[23:01]<nupjzdrv>-then some info name email, company etc
[23:01]<mzzcz9q>-stormrider_may: I'm not aware of one, I don't think it's easy.
[23:02]<nupjzdrv>-then a select box that gives 2 options of the person to send it to
[23:02]<nupjzdrv>-then depending on the can/cant attend, it forwards to the respective page
[23:02]<myjrjo7>+uriahheep, it's the case you should have a look here http://www.php.net/manual/en/control-structures.switch.php
[23:02]<zdzxzzmfdgzx>+stormrider_may: There is no such thing that I know of, but you can hire these guys to go over it: http://phpsec.org -- They'll need an inside look as well.







