1,376 Posted Topics

Member Avatar for cwarn23

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.

Member Avatar for Stefano Mtangoo
0
89
Member Avatar for MrCranium

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 …

Member Avatar for cwarn23
0
222
Member Avatar for urbanthistleuk

[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 = '" …

Member Avatar for vaibhav1983
0
201
Member Avatar for golfinggranny

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 …

Member Avatar for golfinggranny
0
229
Member Avatar for furlanut

[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 …

Member Avatar for cwarn23
0
104
Member Avatar for cwarn23

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.

Member Avatar for jackmaverick1
0
124
Member Avatar for cwarn23

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. :)

Member Avatar for WaltP
0
174
Member Avatar for sirlink99

Well one thing is for sure and that is Computer Science is theoretical and Software Engineering is absolute.

Member Avatar for Netcode
0
313
Member Avatar for adkool

[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 …

Member Avatar for crunchie
2
896
Member Avatar for karthik_ppts

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.:)

Member Avatar for stoopkid
0
248
Member Avatar for OmniX

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 …

Member Avatar for Stefano Mtangoo
2
2K
Member Avatar for dress237935

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 …

Member Avatar for cwarn23
0
122
Member Avatar for wd3bbas

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.

Member Avatar for cwarn23
0
69
Member Avatar for mehargags

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 …

Member Avatar for diafol
0
363
Member Avatar for cwarn23

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 …

Member Avatar for Cross213
0
147
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
-1
162
Member Avatar for Farhad.idrees

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 …

Member Avatar for Stefano Mtangoo
0
277
Member Avatar for AlpineKid

[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 …

Member Avatar for AlpineKid
0
336
Member Avatar for PHIPH

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 …

Member Avatar for caperjack
0
124
Member Avatar for IWDesigns

You need the following just after the body tag. [CODE]<a name="Top"></a>[/CODE]

Member Avatar for IWDesigns
0
100
Member Avatar for irffan

[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 …

Member Avatar for cwarn23
0
120
Member Avatar for jingda

[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 …

Member Avatar for cwarn23
0
198
Member Avatar for turt2live

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 …

Member Avatar for turt2live
0
541
Member Avatar for meme dreame

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 …

Member Avatar for meme dreame
0
110
Member Avatar for DarkMonarch

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 …

Member Avatar for Stefano Mtangoo
0
110
Member Avatar for TheNNS

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 …

Member Avatar for Narue
0
636
Member Avatar for cwarn23

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. …

Member Avatar for cwarn23
0
517
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
181
Member Avatar for cwarn23

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 …

Member Avatar for Dani
0
179
Member Avatar for veledrom

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" …

Member Avatar for cwarn23
0
90
Member Avatar for davy_yg

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]

Member Avatar for davy_yg
0
95
Member Avatar for luweegee

use the following on line 8: [CODE]if (isset($_POST['submit']) && !$_POST['submit']) {[/CODE] I'm sure you know the reason ;)

Member Avatar for ko ko
0
266
Member Avatar for Salem

RIP another legendary hero. First the owner of Apple. Then the creator the of C language. Who's next? Bill Gates?

Member Avatar for cwarn23
3
129
Member Avatar for kgizo

[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]

Member Avatar for kgizo
0
137
Member Avatar for Rian19

[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]

Member Avatar for cwarn23
0
239
Member Avatar for davy_yg

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.

Member Avatar for cwarn23
0
119
Member Avatar for newbie14

Isn't a speed graph just distance over time which makes x=y making a perfectly diagonal line?

Member Avatar for cwarn23
0
276
Member Avatar for Inny

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 …

Member Avatar for Inny
0
118
Member Avatar for DriftingFable
Member Avatar for Onlineshade
0
39
Member Avatar for luweegee

Try replacing line 17 with the following if statement: [CODE]if(isset($_SESSION['uid']) && $_SESSION['uid']){[/CODE]

Member Avatar for luweegee
0
716
Member Avatar for minitauros

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]

Member Avatar for cwarn23
0
119
Member Avatar for gurupts

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. …

Member Avatar for cwarn23
0
212
Member Avatar for djm123

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.

Member Avatar for caperjack
0
318
Member Avatar for aaloo

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]

Member Avatar for aaloo
0
266
Member Avatar for minitauros

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 …

Member Avatar for cwarn23
0
301
Member Avatar for heavy.is.happy

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 …

Member Avatar for cwarn23
0
198
Member Avatar for silverarrow23

Try the following: [CODE]<?php if(!defined('CORE')) exit(0); function jspack(&$s){ $s = preg_replace(array('/\r\n/s','/\n/s'),'',$s); } ?>[/CODE]

Member Avatar for silverarrow23
0
444
Member Avatar for jonesa01

Why not just use the following??? [CODE]$str='sd;6sd,af98asd^f76asdf087%45098afsln&k257sdpk235'; $phone=preg_replace('@[^0-9]@','',$str); echo $phone;[/CODE]

Member Avatar for jonesa01
1
4K
Member Avatar for Arcrammer

[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 …

Member Avatar for cwarn23
0
219
Member Avatar for phfilly

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.

Member Avatar for phfilly
0
252

The End.