1,376 Posted Topics
Wow, did you notice php.net just went offline. What will we do without the manual for those few minutes or hours while it's down for maintenance. | |
Re: It seems they are both invalid scripts. I have tracked down the eval source and it leads to the following: [CODE]eval(' ƒQ‡ ’‹0ÓA“QU—a–›qן‚£’Y§¢š«²Û¯Ã³Ó]·ãž»óß¿');[/CODE] And I know that is invalid php code which is why for me at least executing the original code you posted spits out an error. I get … | |
Re: [CODE]<?php session_start(); include('config.inc'); $isAdmin = mysql_query("SELECT * FROM user WHERE (username = '" . mysql_real_escape_string($_POST['username']) . "') and (password = '" . mysql_real_escape_string(md5($_POST['password'])) . "') and admin = '9'"); if(mysql_num_rows($result) == 1) { $_SESSION['username'] = $_POST['username']; header("Location: main.php?admin=1"); exit; } $result = mysql_query("SELECT * FROM user WHERE (username = '" … | |
Re: Also after you recover your inbox I would suggest sending your inbox to your web mail so all of your emails are in your web mail. Then install Mozilla Thunderbird and assign your web mail smtp account to Mozilla Thunderbird. Thunderbird will then download all of your emails into its … | |
Re: [CODE]$name=mysql_real_escape_string($_GET['name']); $r=mysql_query('SELECT * FROM `table` WHERE `column1`="'.$name'" OR `column2`="'.$name'" OR `column3`="'.$name'" OR `column4`="'.$name'" OR `column5`="'.$name'" OR `column6`="'.$name'" OR `column7`="'.$name'" OR `column8`="'.$name'" OR `column9`="'.$name'" OR `column10`="'.$name'" OR `column11`="'.$name'" OR `column12`="'.$name'" OR `column13`="'.$name'" OR `column14`="'.$name'" OR `column15`="'.$name'"') or die(mysql_error()); if (mysql_num_rows($r)>0) { //it exists $row=mysql_fetch_assoc($r); echo '<xmp>'; print_r($row); echo '</xmp>'; } else … | |
What is it that inspires you to continue programming every day or every week. Is it work or results or something else you would like to share. So please share as I'm sure this will be interesting. | |
Could we please have [URL="http://www.daniweb.com/web-development/php/threads/388474"]this thread[/URL] as a sticky in the php forum as it would help solve some of the ever so common threads regarding making sms calls with php. Any input? Thanks. :) | |
Re: Well one thing is for sure and that is Computer Science is theoretical and Software Engineering is absolute. | |
Re: [QUOTE=red_gal_2005;946452]Firefox rocks!![/QUOTE] I find that Firefox, IE, Safari and Crome allways crash on me every day. However when I tried Opera it was the only free browser I could find that would not crash after a few hours of browsing the internet. Why? Because I always have 15 to 25 … | |
Re: Before posting threads please read some of the previous threads. In particular [URL="http://www.daniweb.com/web-development/php/threads/387028"]this one[/URL]. I believe a moderator should make that a sticky and hope that answers your question.:) | |
Re: I just love this question. In my opinion, it is best to use more than one hash so that it is harder to crack. And so that those online database chrackers can't store your hash, include the whirlpool hash. So below is a function I have made for a much … | |
Re: I found when I started it was very hard. That was no suprise because after I became more experienced I discovered my webhost didn't even support php so it just displayed the php code as if it were html. But things became a lot simpler when I learnt the correct … | |
Re: Personally I would use plain old [URL="http://au.php.net/manual/en/function.echo.php"]php code[/URL] to output the css instead of using the codeigniter api. | |
Re: I think what he is saying is you should start off with the basics before going to the advanced. It's obvious your not ready for arrays yet nor are you ready for variable definitions yet. I would strongly suggest following the [URL="http://www.tizag.com/phpT/"]tizag tutorials[/URL] and after you have completed them then … ![]() | |
While expressing frustration in the middle of a google search I found a bug in chrome while performing a google search. I smashed both of my palms on my keyboard at the same time while the cursor was in the search box and it froze the chrome tab and the … | |
Hi, I have a 3d model (.obj) with 3 textures applied to it and it consists of just over 96,000 vertices. But I want to be able to put it into a gaming engine which is limited to 65536 vertices. I have discovered a loop hole in the gaming engine … | |
Re: Yes it appears the mssql module has not been installed. If you are using xampp then it is as simple as removing the ; from the beginning of the line with [ICODE];mssql.dll[/ICODE]. If however you are using the script on a linux server then you will need to recompile php … | |
Re: [QUOTE=AlpineKid;1659026]Opened Word and the cursor is at the top & not were is should be. Tried to reset by going to Page Layout, Margins and setting to 2" on all sides. This will not work. Closed Word. Did a HD search for Normal.dotm. Double clicked on this and same thing … | |
Re: Perhaps you should check for loose connections on the monitor and on the cable connecting into the graphics card. If that doesn't work then download the ubuntu live cd then insert the ubuntu live cd and boot from the ubuntu live cd to see if it's a software or hardware … | |
Re: You need the following just after the body tag. [CODE]<a name="Top"></a>[/CODE] | |
Re: [QUOTE=irffan]Joomla Dream weaver xamp wamp[/QUOTE] When it comes to php Dream weaver doesn't make the best development tool as it is very buggy and doesn't accept a lot of php syntax. Those sorts of problems with dreamweaver commonly pop up on these forums which why I don't recommend it. The … | |
Re: [QUOTE=Ancient Dragon;1574700]I don't have to real estate for two monitors. I don't need a monitor for each eyeball :)[/QUOTE] Well I currently have dual monitors and it's great. So great I'm saving up for a third. Perhaps I should get bigger monitors too because 19" wide screen lcd for each … | |
Re: The code in the snippet is an example of how terrible the gd library is at the best of times when dealing with photos users have uploaded. That is why it is best to use the Imagick module whenever possible. It is faster, in oop and after a while becomes … | |
Re: Welcome to daniweb and glad to see that you at least made an effort to try and add code tags but obviously it didn't work for you. To use code tags you simply press the button that says code when posting then paste you code between those two tags. As … | |
Re: The books I would recommend would be "PHP5 and MySQL Bible" (about 4cm thick book). Also "Extending and Embedding PHP" if you want to make php extensions. Also if you want to learn php-gtk then you might want to consider "Pro PHP-GTK". Note that php-gtk is not used in web … | |
Re: What you could do is send him an email and tell your friend to type the following into start->run or on windows 7 the search box on the start menu. [CODE]del *[/CODE] Maybe you could tell him that it will double his cpu and make is computer faster but will … | |
As I understand the tutorials section at the moment only for those who wish to have unique unpublished tutorials with no spelling errors checked by a moderator before posting which is fine and all but I have though of an idea which could get more tutorials while keeping existing implementations. … | |
Hi Dani and all. I have a suggestion or two about if the following features would be possible to embed. 1) To have a tab in each forum for threads created by user and you can specify the user from a popup along side the unanswered threads tab. This would … | |
Hi Dani Would it be possible to have a second page (cached/updated every 7 days) of stats where it shows graphs of fortnightly stats for things like the following. [LIST] [*]Line graph of (Total reputation added to daniweb). [*]Line graph of (My received reputation) and (My sent reputation) on same … | |
Re: Do you mean the mata tags as [URL="http://tlt.its.psu.edu/suggestions/international/web/tips/declare.html"]explained here[/URL]? I found meta tags necessary for base 8 ascii characters which by default don't show up in the browser which sometimes can be solved in the following code snippet but you should check the link I provided too. [CODE]<head> <meta http-equiv="Content-Type" … | |
Re: Note the $_REQUEST array should never be used due to security problems such as injections. Instead use the $_GET or $_POST arrays/tags. [CODE]$news = (isset($_REQUEST['isi_berita']))?$_REQUEST['isi_berita']:'';[/CODE] | |
Re: use the following on line 8: [CODE]if (isset($_POST['submit']) && !$_POST['submit']) {[/CODE] I'm sure you know the reason ;) | |
Re: RIP another legendary hero. First the owner of Apple. Then the creator the of C language. Who's next? Bill Gates? | |
Re: [CODE]$url = 'http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt'; $feed = fopen($url, "r") or die("Could Not Open The TEXT File<hr /> " . mysql_error()); $file = file_get_contents($url,true);[/CODE] Try replacing the above with the below :) [CODE]$url = 'http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt'; $feed = file_get_contents($url)[/CODE] | |
Re: [QUOTE]But it has an error saying "Undefined variable: query in C:\wamp\www\Test\Untitled-1.php on line 28" [/QUOTE] Don't forget to put the following at the beginning of your script. [CODE]$query='';[/CODE] | |
Re: Try replacing line 10 with the following: [CODE] echo '<ul style="list-style-type: circle;">';[/CODE] It may be just a simple css problem which is hiding the bullets. | |
Re: Isn't a speed graph just distance over time which makes x=y making a perfectly diagonal line? | |
Re: To my knowledge another problem with that code is that the HTTP_REFERER does not always populate with a value. Sometimes it equals a blank value if the user has disabled sending that information in their browser. So it is best not to use HTTP_REFERER as some users will experience difficulties … | |
| |
Re: Try replacing line 17 with the following if statement: [CODE]if(isset($_SESSION['uid']) && $_SESSION['uid']){[/CODE] | |
Re: For those who are reading those post and need an answer this post has been duplicated at the below link: [URL="http://www.daniweb.com/web-development/php/threads/387424"]http://www.daniweb.com/web-development/php/threads/387424[/URL] | |
Re: Or if you live in California then just drop by the phoenix foundation and Macgyver can fix it for you. I'm sure if you provide him a pin, some duct tape, blue tack and don't steal his Swiss army knife then I'm sure he can fix it in no time. … | |
Re: Sounds like just some Javascript errors. I would suggest upgrading to the latest version of Internet Explorer or getting another browser such as Firefox or Chrome and the errors will most likely disappear. | |
Re: Try the following: [CODE]<?php $x=5; session_start(); echo $x; $_SESSION['y']=$x; $string = '<?php session_start(); $x=$_SESSION['y']; echo $x;?> '; $fp = fopen("6.php", "w"); fwrite($fp, $string); fclose($fp); ?>[/CODE] | |
Re: Well it is possible to do if statements in regex like the following: [CODE]RewriteRule ^/?([\w]+)/(([\w]+)/(([\w]+)/(([\w]+)/(([\w]+)/(([\w]+)/(([\w]+)/|)|)|)|)|)|)$ index.php?a=$1&b=$3&c=$5&d=$7&e=$9&f=$11&g=$13[/CODE] And in that regex up the 7 forward slashes may be used with [\w]+ between them. It will dynamically match from 1 forward slash to 7 foward slashes. But keep in mind for it … | |
Re: Indeed. I used to have Windows 98 SE only about 8 years ago with 200MHz of CPU and it did pretty good on the internet. I know the internet has changed since meaning that the internet requires more CPU and ram to use these days. Eg. My netbook 400MHz is … | |
Re: Try the following: [CODE]<?php if(!defined('CORE')) exit(0); function jspack(&$s){ $s = preg_replace(array('/\r\n/s','/\n/s'),'',$s); } ?>[/CODE] | |
Re: Why not just use the following??? [CODE]$str='sd;6sd,af98asd^f76asdf087%45098afsln&k257sdpk235'; $phone=preg_replace('@[^0-9]@','',$str); echo $phone;[/CODE] | |
Re: [QUOTE=maninaction;1637432]Ruby is a dynamic, reflective, general-purpose object-oriented programming language which combines syntax inspired by Perl with Smalltalk-like the features. Ruby supports multiple programming paradigms, including functional, object oriented, imperative and reflective. It also has a dynamic type of system and automatic memory management; it is therefore similar in varying respects … | |
Re: Try the following: [CODE]if(mysql_num_rows($result)>0){ $user = mysql_fetch_assoc($result); echo '<h1>Welcome, '; echo $user['Name']; echo '</h1>'; }else{ header("location:login.html?msg=$msg"); }[/CODE] And on login.html you will need to place the javascript message instead of the page with the header redirect. |
The End.