I have an apache server and I am using preprossessed webpages using php But I wont get any errors when I forget
getting previous page url in php any help
ok psilo2
so I have to do
where do I have to put sprintf?
k
don't count on having the http_referrer. The browser is not required to send it
You can get that from javascript I believe. but that also is not 100% of course.
psilo2; there's nowhere in that page how to use sprintf
only printf
nwo found it :/
The format specification for sprintf is the same as printf.
so this will work? $portal = sprintf('a class="online" href="http://'.$serv.'" target="_new"Portal Online(%.3f)/a', $totaltime2);
Try it.
pign works
psilo2; and with an echo
I have to use printf
C# is much easier to understand o/
Strings.StringBuilder.StringPrinter.Print.PrintString.StdOut('lol');
?
jokes
china got high ping o/
http_referrer is not woking ON IE
don't like my answer eh
No file uploaded in Unknown on line 0"? PHP seems to unconditionally throw this error when submitting a form without uploading a file
pastebin
psilo2, i don't need one..its an E_NOTICE error and its always thrown (known problem) http://bugs.php.net/bug.php?id=16747
changing the error_reporting() site wide for my developer is not a reasonable solution, and the error cannot be caught
*developer server
Do you have a file input in your html form?
yea, but its optional
Hmm weird. I have a form with optional file input as well, works fine.
psilo2, do you have error_reporting set to E_ALL on that page?
the live server will have the error reporting lower, but its impossible to develop the site when you need to use headers on the page that receives the upload
ob_start()
edman007, did you try to set error_reporting(E_ALL ^ E_NOTICE); at the start of this page?
Yeah I use E_ALL on the dev box.
psilo2, line 0, so it does not work
what's wrong psilo2?
aaco, again, line 0
$portal = sprintf('a class="online" href="http://'.$serv.'" target="_new"Portal Online(font color="getFontColor(%.3f);"%.3f/font)/a', $totaltime2);
with font color="getFontColor(%.3f);"
edman007, so what if you disable the error reporting via apache directive with htaccess just for this file?
do you know what the %.3fs are for?
floading values?
You have to provide on argument to *printf() for each %
one*
k
so two times the smae?
same
Yes
works partcularry
$portal = sprintf('a class="online" href="http://'.$serv.'" target="_new"Portal Online(font color="'.getFontColor(%.3f);.'"%.3f/font)/a', $totaltime2, $totaltime2);
this one won't work too
I have to do sprintf again?
psilo2, ahah, i found it, its an E_NOTICE but only thrown with E_STRICT is in use….i'm filing a bug report
psilo2?
you have a stray semicolon, skiwi.
spend a little more time looking at the code and less on irc
k thx
fixed it psilo2
Hello, whats the best and most secure way to store passwords in a mysql database? Right now I'm using salt.sha1(salt.password) but is there any better methods?
a salted hash is perfect, zyz
Don't see how it could get any better
what's salt :X
generated random data
It's something you append to a string before you hash if you hash the same string twice, you get two different results. This reduces (destroys) the effectiveness of rainbow tables.
If you don't know what hashes or rainbow tables are, google
psilo2; do text-colors mix with the backgrand color?
no idea.
now it's fixed
I guess it was temp prob
$color = 'ligthyellow'; - it doesn't recognize lightyellow?
how can I let an page refresh every 5mins?
http://en.wikipedia.org/wiki/Meta_refresh
k
hello
ello
I need a regex to compact some javascript (strip excess whitespace + comments)
Any ideas?
hm, would it be better/more secure to use mysql aes functions to store passwords than to use sha1 + salt? The problem I see with aes is that it is easy revereable if someone has the key
i think /\s+/\s/ should work
Nah, "this is a string" should not be touched.
ah, yes
I do exactly that to my HTML though
I have an apache server, and I am using preprossessed webpages using php. But I wont get any errors when I forget a ; or something, just a white screen appears in my browser with a blank source. What can I do about this?
I would likem to have the errors shown in my browser.
What's wrong with sha+salt? told you it's fine..
foo-nix: make sure display_errors is set to "on" in php.ini
thanks for that
foo-nix:
there is nothing wrong with it I'm just doing some research to see what alternatives there is etc.
Thanks, I will try to find that file.
(way back)
htmlentities?
foo-nix: also set the error reporting level to E_ALL|E_NOTICE if it's a development server to echo all warnings/notices
ufoo-nix: also set the error reporting level to E_ALL|E_NOTICE if it's a development server to echo all warnings/notices/u
"
yeah cool
trying to make a feed out of a mysql that's shared with the catalogue
hi
i have a problem i am filling a options box with ajax and prototype and i have the following code in php to do that:
if ($ie)
echo $cod_conc . ":" . $concelho . ";";
else
echo "option value=\"$cod_conc\"".htmlentities($concelho)."/option\n";
^~'`' ç and etc put ? instead and put a new option named undefined
only in ie other borwsers work fine of course
can somebody help me ?
Thank you.
tanks in advance
niiice
-.-
tuga ?
yes sir
$concelho nao engana
LOL
:P
so i need html_entity_decode, but close enough
Can I get somebody on windows to test an upload for me?
lol
What php.ini file should I use? /etc/php5/fastcgi/php.ini, /etc/php5/apache2/php.ini or /etc/php5/cli/php.ini
the middle one?
por acaso nao sabes resolver o meu problema nao ?
sorry, I'm in linux.
Yeah same here. This flash thing only works in Windows. damn adobe
pvt
Flash 9 more like Flash 8.95
foo-nix: phpinfo() should show you were the correct php.php is — a couple of those may be symbolic links
foo-nix: php -r "phpinfo();" | less
should I restart apache after editing php.ini?
i think you may have to
Thank you.
de nada
oh no you were right :-/
I did /etc/rc.d/apache2 stop
nice thanks for that
and /etc/rc.d/apache2 start
no luck?
can You tell me, please, how to set the include path for the zend framework correctly.
nope.
it is the apache2 dir, I foiunt that ion phpinfo()
zend/library/Zend/
foo-nix: you set display_errors = on?
set_include_path('zend/library/Zend/');
but it fails
Is this ';' an commenting think in the ini file?
(then all is commented out
I have ; - display_errors = on [Security]
Should that just become display_errors = on ?
foo-nix: yeah, semi-colon will comment the line out
hehe
that's the point, I was thinking why kate saw it all as comment.
mm
Hi, I'm having problem with an "MSN invite script". In local works great but on another site I get an error
anyone can help?
fix the error
smokestack, don't know how..
pastebin the code
Would you like to log in as foo — foo in this login page? http://84.85.111.27/pancake.htm
no xss.
Hi ! Is it possible to keep complicated data between requests in PHP wwwserver (apache/linux) ? I would like to load it once per apache process and later use same data in all requestes served by that process. TIA
bHi ! Is it possible to keep complicated data between requests in PHP wwwserver (apache/linux) ? I would like to load it once per apache process and later use same data in all requestes served by that process. TIA/b