| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Comments:
<0> np <1> Does anyone know how to compile a php file to a binary for faster execution? <2> You can use an opcode cache such as APC to acheive something similar (better really) <3> MarkL: Would it be possible to add a wildcard of some sort after width, so if I wanted to put additional cl***es or styles or something, I could put em there? <4> hi all, is anyone using the smarty template system? <3> No one. <4> Is thare a setting that prints the name of the template being used in the html comments <4> there are hundreds of templates on the site im working on and it would be very helpfull to see what template is used from the html source <0> Stormx2: You can just add them as you please. The only important part of the regex is the references \\2 \\3 etc <3> Right. What I ment to say is, what should I add? ;) <0> BuckleyXP: http://www.php-editors.com/smarty_manual/language.variables.smarty.html <0> BuckleyXP: {$smarty.template} according to that <0> Stormx2: Give me an example <3> MarkL: I don't really know any regex, I just want a wildcard, like: width="(\d+)" <WILDCARDHERE>\/>~ so that it matches that string even if there is stuff after width="100" <0> Stormx2: It will match anyway if there's stuff after width <3> Oh thanks
<0> Stormx2: It only matches what you tell it to match, and it's current only matching the numbers between the width and height quotes and the description <0> Stormx2: So you can have anything you like in there <3> Oh ok <0> and it should still match .. in theory <0> *tests <3> I will test soon don't worry ;) <3> Just a couple more questions. If somethink like height="100" is ommited, it won't match, correct/ <3> *? <5> is it ever possible that $_SERVER['REMOTE_ADDR'] is empty ? <0> Stormx2: As it stands now, correct, but it can be optional <0> JosB: Yes <3> MarkL: And what about order of attributes? That has to be in the right order, yeah? <3> MarkL: Really thanks so much man You have no idea how helpful this is! <0> Stormx2: Yeah, but again it doesn't have to be that way .. but that's more complex <5> markl: when would that happen? isn't that address always known by apache ? <0> Stormx2: I'm gonna amend the regex to cater for you wildcard thingy as it doesn't currently work, 2 mins <4> thanks mark, pitty there aint a global setting but its a good start <2> BuckleyXP: They may know another way over at #smarty <0> JosB: Sorry, that _should_ always be set, I was confusing it with REMOTE_HOST, my bad <0> Stormx2: http://hashphp.org/pastebin.php?pid=6682 should allow optional 'stuff' after the width <0> Stormx2: Did you get that last link? <3> MarkL: Oh thanks :D <3> MarkL: Yeah <0> Ok <3> MarkL: Works an absolute treat. <3> MarkL: I need to start a thankyou list for this site im working on <0> Stormx2: Shares will do ;) <3> hahaha <6> i'd install dialup_admin interface i can browse the index.html , but i can't browse the button.php3 , it says download file <0> Meaw: .php3 ? <0> Meaw: Either you're missing the AddTypes in httpd.conf or the ones that are there don't mention .php3 as it's soo old now <0> Meaw: See if it works if you name it button.php <6> ok <6> nope <0> Then check httpd.conf for AddType lines <6> but when i change it back to buttons.php3 and browse it says download file <0> What happened when you named it buttons.php ? <7> hey <6> it didn't browse it <6> like the file isn't exist <0> Meaw: What did it do .. blank page? <7> I have pear installed on my machine but when I bring up a localhost phpinfo page pear isn't on there ... I need to use the DB cl*** for a site <6> #AddType application/x-httpd-php3 .php3 <6> #AddType application/x-httpd-php3-source .phps <6> you mean those lines? <2> You need to also change the name of the file to whatver.php rather than whatever.php3 <6> Yeah MarkL blank page <6> its all php3 files <0> Meaw: And what version of PHP do you have? <6> php4 <2> Hang on, your AddType lines are commented out <0> Meaw: Try AddType application/x-httpd-php .php .php3 then <6> let me paste it in pastebin.com <6> http://pastebin.com/716581 <6> this is the httpd.conf file <0> Meaw: Actually, sounds like you might already have a line like: AddType application/x-httpd-php .php ?? just without the .php3 bit? <7> anyone have advice for me? <6> yeah i have the 2 lines <0> Meaw: Uncomment them
<6> just be alive <6> remove the dash # ? <6> ok <0> y <0> and add .php3 on the end of AddType application/x-httpd-php .php <0> AddType application/x-httpd-php .php .php3 <0> Then restart apache <6> yeah <6> so it's like AddType application/x-httpd-php .php3 <6> right? <0> no <0> AddType application/x-httpd-php .php .php3 <6> oh ok <6> the same MarkL <6> Restarting apache 1.3 web server.... <0> download prompt? <6> yep <0> Create a new file called test.php with just this in it: <?php phpinfo() ?> <0> See if that works or not <6> just edit this line on it <?php phpinfo() ?> ? <6> it asks me for download too <0> trhaynes: In your phpinfo() page is pear in the include_path ? <0> Meaw: ok <7> MarkL: no <7> just ../php <0> Meaw: In httpd.conf do you have a line like: LoadModule php4_module "c:/php/php4apache.dll" <0> trhaynes: At the top of that page it wil tell you which php.ini file it's using, edit that file and find the include_path line <0> trhaynes: Add the path to pear to it <0> trhaynes: Something like include_path=".;C:\www\pear\pear" (on windows) <6> nope MarkL not found <0> Meaw: Ok add it, but change c:/php to wherever you stuck php <6> LoadModule php4_module "c:/php/php4apache.dll" this line ? <0> yeah <6> what if i keep it same this <0> That's ok as long as you installed php to c:/php <6> /etc/php4 <0> heh <0> So you're not on windows <6> nope <6> debian <0> Meaw: How did you install php, from source or package ? <0> ah, apt-get <6> yap <0> Then don't add that line <6> the loadmodule <6> ok <0> yeah, forget that <0> Meaw: Just to be sure, stop apache, then start it, then clear your browser cache and see what happens <0> stop/start not restart <6> oke <6> i think i did once <6> but i'll try again <6> the same. <0> ok, as root, run dpkg-reconfigure apache <0> When you get to the modules stage make sure the php one is enabled/selected <6> so i should select modules for php <0> yes <6> there is mod_perl <6> but i can't see mod_php <0> Not even a libphp4 ? <8> is there a way how can i make a trial version of a #php script? <0> What you running, stable, sid .. ? <8> ehm not #php but php :D <6> yeah MarkL can't find any mod for php <0> Silent******in: Only with an encoder afaik <6> there is cgi <6> and perl <0> Meaw: ok, just ok out of that config screen <6> but no php or php4 <8> darn that source code <8> cant i compile the php script to something <6> yes. i close it <0> Silent******in: You could always let them have it for 30 days then go round to their house and uninstall it? <0> Meaw: ok, edit /etc/apache/httpd.conf
Return to
#php or Go to some related
logs:
debian-view firefox #javascript #kde apt-get install zlib-dev iptables snat example tap0 gpx1000 gentoo error 80 python class Bunch aka_druid
#osdev
|
|