Likes Received By danx10
-
G3n3s!s liked danx10's post in the thread Get all bbcode tags into array..
function returnTags($tag, $content) { $tag = preg_quote($tag, '#'); preg_match_all("#\[{$tag}(?:=.+?)?\](.+?)\[/{$tag}\]#s",...
Jan 22, 2011 -
hogan_h liked danx10's post in the thread Get all bbcode tags into array..
Regex is tough to learn, but once you get the hang of it - it can be very useful, I'm still learning myself. Before I start...
Jan 22, 2011 -
sarahk liked danx10's post in the thread Unreliable Sessions - values not carried over.
First off im assuming you have error_reporting set to its maxium level (E_ALL) (if you haven't already; please do) - and that its not...
Jan 18, 2011 -
hasbehas liked danx10's post in the thread preg_match question.
echo str_replace(' ', '-', 'Some Hotel Name.html'); No need to use regex when its not needed.
Jan 7, 2011 -
Grit. liked danx10's post in the thread How would I go about replacing every alternate of the same word.
Have a look at the following to learn more about regex: http://www.phpro.org/tutorials/Introduction-to-PHP-Regex.html (a great intro)...
Oct 26, 2010 -
phantom liked danx10's post in the thread Is there something like getimagesize for audio files?.
Lookup getid3
Sep 25, 2010 -
hotpop liked danx10's post in the thread How to add alexa traffic rate in my php code?.
<?php function alexa_badge($url) { $url = trim($url); if (!preg_match('~^http://~i', $url)) $url = "http://{$url}";...
Aug 18, 2010 -
MyVodaFone liked danx10's post in the thread run function in while loop.
You can use a for() loop: <?php for ($i = 0; $i <= 5; $i++) { $url = "http://www.domain.com/{$i}"; //other code will go here... } ?>...
Aug 14, 2010 -
usasportstraining liked danx10's post in the thread How to create download link.
Why not simply use the pathinfo() function?
Aug 9, 2010 -
anilinkz liked danx10's post in the thread preg_match_all array on a string.
The OP meant the $content will be a random string, but the concept will be the same no matter how the format of the random string...
Aug 8, 2010 -
jonhyhar liked danx10's post in the thread download a file with curl.
<?php $file = 'http://www.ozindir.com/Okeyv2.1-Kur.exe'; header('Content-Description: File Transfer'); header('Content-Type:...
Jul 29, 2010 -
Deacalion liked danx10's post in the thread Replacing a text with other..
Use double quotes; $str = str_replace(array("\r\n", "\n", "\r"), "<br />", $str);
Jul 27, 2010 -
strgraphics liked danx10's post in the thread While.
<?php $email = $_POST['mal']; $emailnumber = substr_count($email, '@'); ?> or: <?php $email = $_POST['mal']; $emailnumber =...
Jun 22, 2010 -
Seqqa liked danx10's post in the thread Getting the full page URL in PHP.
<?php echo "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?>
Jun 17, 2010 -
indoforum liked danx10's post in the thread Need help decode this Php code.
</div> <div class="footer"> © Copyright <?php echo date("Y"); ?> <a href="<?php bloginfo('url'); ?>" title="<?php...
Jun 16, 2010 -
baris22 liked danx10's post in the thread preg_replace pattern.
The issue with your pattern is that you need to escape the the dot character -> . with a backslash as its considered a special...
May 15, 2010 -
belgin fish liked danx10's post in the thread Need PHP Function to avoid XSS and SQL injection attack.
heres my little function: function clean($input) { //remove whitespace... $input = trim($input); //disable magic quotes... $input =...
May 9, 2010 -
webrickco liked danx10's post in the thread PHP Contact Form.
@MyVodafone You should'nt include php tags within a concatenated string (especially in this case), its bad coding, dirty and...
May 7, 2010 -
stephan2307 liked danx10's post in the thread UK latitude longitude radius calculation.
http://www.phpro.org/tutorials/Geo-Targetting-With-PHP-And-MySQL.html
May 7, 2010 -
pipes liked danx10's post in the thread Usefullness of OOP with PHP?.
Learn PHP in general first then move on to OOP.
May 2, 2010