Likes Received By nico_swd
-
fgs liked nico_swd's post in the thread basic php / mysql question.
You can use different link identifiers. Like: $connection1 = mysql_connect('...'); mysql_select_db('db', $connection1); $connection2...
Mar 9, 2007 -
zk0 liked nico_swd's post in the thread JavaScript loop?.
You want to sum all values? Try this: var total = 0; for (var i = 0; i < myArr.length; i++) { total += myArr[i]; }...
Feb 24, 2007 -
elizabeth.taurus liked nico_swd's post in the thread Hi how can i upload .sis files in Wordpress?.
If it's that urgent you may should learn to find the answer yourself. I found this on a quick Google search:...
Feb 24, 2007 -
John84 liked nico_swd's post in the thread Random Rotation Script.
You could use arrays. $paragraphs = array( '<p>Paragraph 1</p>', '<p>Paragraph 2</p>', '<p>Paragraph 3</p>',...
Feb 12, 2007 -
Icheb liked nico_swd's post in the thread Extracting Part of an URL.
parse_str() might be useful as well.
Feb 12, 2007 -
klown liked nico_swd's post in the thread session problem, help appreciated with green!.
You can't send any output to the browser before starting the session. No white spaces before the opening <?php tag, and no HTML either....
Feb 3, 2007 -
hotpop liked nico_swd's post in the thread How to remove PHPSESSID?.
Try adding this line on top of your script. ini_set('url_rewriter.tags', null); Or ini_set('session.auto_start', '0'); if your...
Feb 3, 2007 -
SoftCloud liked nico_swd's post in the thread PHP Code to determine Bot.
Here's a function I use. function is_bot() { $spiders = array( // Most common 'googlebot' => 'Google Bot',...
Feb 2, 2007 -
zodiac liked nico_swd's post in the thread javascript popup.
Let's define it then: (Wild guess) <script type="text/javascript"> <!-- function popup(url, width, height) {...
Jan 17, 2007 -
YIAM liked nico_swd's post in the thread "Get" method HTML form.
That's exactly what it does...
Jan 13, 2007 -
mihaidamianov liked nico_swd's post in the thread Parse Youtube ID from Youtube embed code.
preg_match('/youtube\.com\/v\/([\w\-]+)/', $code, $match); echo $match[1]; Untested.
Jan 10, 2007 -
dshah liked nico_swd's post in the thread alternate to fopen?.
Try cURL. http://us2.php.net/curl
Jan 10, 2007 -
KC TAN liked nico_swd's post in the thread Strip Down Strings.
You just want to allow periods? $text = preg_replace('/[^\.]/', null, $text);
Jan 7, 2007 -
YIAM liked nico_swd's post in the thread 500 Internal Server Error On WAMPS.
Without seeing the actual file, my guess is that the rewrite module isn't loaded. Uncomment this line in httpd.conf. LoadModule...
Jan 3, 2007 -
1why liked nico_swd's post in the thread help me random-image.php code.
<?php $prefixes = range('a', 'd'); $image = $prefixes[array_rand($prefixes)] . '-image.gif'; header('Cache-Control: no-cache,...
Jan 3, 2007 -
KC TAN liked nico_swd's post in the thread Can I make arguments global?.
http://es.php.net/reserved.variables#reserved.variables.globals
Dec 30, 2006 -
sam1 liked nico_swd's post in the thread renaming files.
$prefix = 'y'; foreach (glob('path/to/files/*.html') AS $file) { preg_match('/^.*([0-9]+\.html)/', $file, $filename);...
Dec 29, 2006 -
drewbe121212 liked nico_swd's post in the thread Session authentication - is it enough?.
This might be interesting to read. It's about session security. http://www.acros.si/papers/session_fixation.pdf
Dec 27, 2006 -
Kerosene liked nico_swd's post in the thread Read random text from txt file (fread?).
Lol, sorry... typo. Glad it works though. :D
Dec 22, 2006