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: 1822.68 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
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
46
47
Next >
[01:04]<zdzxzzmfdgzx>fires: Actually, it COULD mean that it was compiled in, and your webhost in php.ini ripped it out, technically... Real unlikely though.
[01:04]<pyzns>I see
[01:05]<pyzns>Guess it's time to yell at the server guy again
[01:05]<jddddd>mattmcc I know the choice of ubuntu was pure prefernce over debian, but I'll ask the specifics and get back to you
[01:05]<apzjtuzp_>UTC give me the correct time :)
[01:05]<jddddd>AfroTurf we dont care
[01:05]<drvvdaa>UTC is always the correct time! ;)
[01:05]<apzjtuzp_>i didn't ask if you cared
[01:06]<vrcurg>does anybody see anything there?
[01:06]<st00pyd>I liked it when they just called it GMT. I have no idea why everything has to be renamed.
[01:06]<zdzxzzmfdgzx>takuan: Anything more in error_log?
[01:06]<st00pyd>Maybe in a few years they'll decide it's better calling it PET, Planet Earth Time! Or CWT! Central world time, whatever other catchy crap they can think up rather than just leaving stuff alone that already works :D
[01:07]<vrcurg>richardlynch: nope
[01:07]<vrcurg>can the reason be it doesn't find some dlls?
[01:07]<ugywm9m>another question, if i want to create an online store and want to do it search engine friendly urls, is possible to do it with PHP? or i need to use an cgi or use perl to create all the files?
[01:07]<zdzxzzmfdgzx>takuan: That usually lists which DLLs in error_log, which is why I asked...
[01:08]<mzzcz9q>UnixD4d: There are several approaches. One is to use PATH_INFO and have URLS like something.php/food/pies/applepie
[01:08]<yvzn2rf>UnixD4d: thats usually done with mod_rewrite
[01:08]<mzzcz9q>Or you can use mod_rewrite
[01:08]<mzzcz9q>I made a series of shops which have friendly URLs without using mod_rewrite
[01:08]<dnlznvyjn>or 404's
[01:08]<zdzxzzmfdgzx>UnixD4d: You can use PHP with $_SERVER['PATH_INFO'] and avoid mod_rewrite headaches.
[01:08]<ugywm9m>mmm ok
[01:08]<rjrunjnmy>I'm trying to build PHP on win32 and it I'm at the point where you configure it, but it keeps saying it can't find cl.exe, I know where it is, but I don't see a way to tell the configure script where it is
[01:09]<mzzcz9q>I discovered that if I force Apache to treat a particular file (not ending .php) as a PHP script, I can have URLs like /en/category/item
[01:09]<mzzcz9q>Where "en" is really a .php script
[01:09]<dnlznvyjn>why dont you just have that directory structure in your document root?
[01:09]<mzzcz9q>(which only has one line which includes something else, as does "fr" and "de" and "nl" etc for other langs)
[01:09]<ugywm9m>maybe PATH_INFO is the best way for me
[01:10]<zdzxzzmfdgzx>RogueJedi: Right-click my computer and find the Environment variable for "Path" -- in recent Windoze. You on your own in older ones.
[01:10]<ugywm9m>i really dont like mod_rewrite
[01:10]<vrcurg>pfff
[01:10]<vrcurg>fuck it
[01:10]<mzzcz9q>I'd recommend it (PATH_INFO) for robustness and ease of implementation. against mod_rewrite, which is really complicated to set up.
[01:10]<rjrunjnmy>richardlynch: Ok, what var am I adding/changing?
[01:10]<ugywm9m>:)
[01:10]<ugywm9m>ok
[01:10]<dnlznvyjn>Your path variable ... add the location of cl.exe
[01:10]<2u22fgguv>MarkR42: Do you know how this can be done with PDO? It allows you to prepare the statement but if you try to pass in an array as the parameter it fails.
[01:10]<zdzxzzmfdgzx>RogueJedi: The path to cl.exe into the $PATH variable with ; in between. You'll see when you get there.
[01:11]<mzzcz9q>bubblenut: You can't pass arrays as prepared-statement parameters
[01:11]<mzzcz9q>At least, not with PDO
[01:11]<mzzcz9q>Or, if you can, it's not documented at all
[01:11]<sxrmpa>richardlynch its dying on a call to CreateImageFromJpeg()... or at least i get no more error_log entries after that
[01:11]<mzzcz9q>And you can't put in a string either
[01:11]<vrcurg>why can't they build a decent package system for windows ;)
[01:11]<zdzxzzmfdgzx>shadfc: Try opening that JPEG in lotsa different graphics packages.
[01:12]<mzzcz9q>bubblenut: I think you should probably bite the bullet and use string concatenation of SQL. Of course, you'll need to validate and/or escape the data, which is a pity, but a necessity
[01:12]<rjrunjnmy>richardlynch: Ah ok thanks. ... bison.exe?
[01:13]<dnlznvyjn>Guys, Im still trying to decide on the best way to pull the Content-Length header from a url
[01:13]<dnlznvyjn>Storm? caffinated? how would you guys do it?
[01:13]<2u22fgguv>MarkR42: If I do it that way I can't prepare the statement though can I?
[01:13]<slragguvs>hello everybody
[01:13]<zdzxzzmfdgzx>RogueJedi: Find it, download it, install it, muck with the path. Repeat as needed on everything needed to compile, I guess.
[01:13]<slragguvs>I have got a question relating sessions and globals
[01:14]<rjrunjnmy>richardlynch: Ok thanks. I now wish I didn't have to make this cross-platform -_-
[01:14]<slragguvs>whenever I add a key to the $_SESSION var the key is also registered as global variable
[01:14]<mzzcz9q>bubblenut: You can still prepare the statement, but you will need to do so again if you change the IN parameter
[01:14]<sxrmpa>richardlynch opens in everything i have... its a good image
[01:14]<slragguvs>example: $_SESSION['custdata'] = 3
[01:14]<slragguvs>makes $custdata return 3
[01:14]<zdzxzzmfdgzx>spacenuts: You got register_globals turned "on"? Don't do that.
[01:15]<mzzcz9q>bubblenut: I used prepared statements for my whole application more or less, even though in most cases they're only executed once.
[01:15]<zdzxzzmfdgzx>shadfc: Just for fun, try it with other JPEGs.
[01:15]<jddddd>heh... bubble butt
[01:15]<rrppygrvnm>spacenuts: which is exactly why you define variables before use.
[01:15]<slragguvs>richardlynch, aha, thanks, read it is deprecrated somewhere and not in php6, I didn't turn it on anywhere, is it a server setting?
[01:15]<fyr>Morning
[01:16]<rrppygrvnm>if you code properly, you won't even notice register_globals
[01:16]<dnlznvyjn>spacenuts : in your php.ini
[01:16]<dggg>hi, does suPHP need a lot more ressources than normal php?
[01:16]<zdzxzzmfdgzx>spacenuts: It's in php.ini, and could be changed in .htaccess
[01:16]<slragguvs>caffinated, the issue is, I don't know is I want to use a variable called $custdata somewhere else in my scripts, this way it might get mangled with the session variable
[01:16]<sxrmpa>hmm, works for another that i tried
[01:16]<rrppygrvnm>spacenuts: if you're going to use the variable for something, you initialize it first. it's as simple as that. you should be doing that anyway.
[01:17]<slragguvs>DepretioN, richardlynch: aha thanks, I don't manage the server, but by using register_globals I can turn it off anyway
[01:17]<dnlznvyjn>caffinated : Picking your brains man, best way to pull the Content-Length header from a URL?
[01:17]<sxrmpa>but still, even if its a bad image, it shouldnt just die.
[01:17]<zdzxzzmfdgzx>shadfc: Shouldn't isn't won't, or we'd all be a lot richer.
[01:17]<sxrmpa>true
[01:18]<dnlznvyjn>get_headers() function is not available
[01:18]<2u22fgguv>MarkR42: Is there a benefit to preparing a statement if it's only going to be used once?
[01:18]<slragguvs>Please note that register_globals cannot be set at runtime (ini_set()). Although, you can use .htaccess if your host allows it as described above. An example .htaccess entry: php_flag register_globals off.
[01:18]<mzzcz9q>bubblenut: You get the parameters automatically escaped.
[01:18]<slragguvs>damn pitty, I have to contact the people who manage the server
[01:19]<zdzxzzmfdgzx>spacenuts: Create an .htaccess file and put: "php_value register_globals off" in it.
[01:19]<slragguvs>caffinated, what exactly do you mean by initialize?
[01:19]<nnzj00>what's the fastest web server to serve only images known today to man?
[01:19]<zdzxzzmfdgzx>spacenuts: $x = '';
[01:19]<2u22fgguv>MarkR42: Ahh, so you're saying, build the IN query with the correct number of parameters for that particular case and then execute it with the array?
[01:19]<jddddd>zero00 telnet
[01:19]<svjzdzxzsnz>zero00: Fors, spoons and plate.
[01:19]<nnzj00>haha
[01:19]<svjzdzxzsnz>*forks
[01:19]<slragguvs>richardlynch, will putting the .htaccess file in the root of the website be enough, or does it have to be in all subdirectories with php scripts too?
[01:19]<mzzcz9q>zero00: Much faster than you need. Don't bother using it, use the same as your main server instead.
[01:19]<nnzj00>hi heard tux
[01:19]<jddddd>zero00: I'm not kidding.
[01:20]<rrppygrvnm>DepretioN: you'll probably have to parse it out of $HTTP_RAW_POST_DATA
[01:20]<slragguvs>I do initialize them







