Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
77% Quality Score
Upvotes Received
17
Posts with Upvotes
13
Upvoting Members
12
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
4
4 Commented Posts
Member Avatar for The Mad Hatter
Member Avatar for bvowens

Open Notepad/Wordpad and navigate to <Your Windows Drive (C:/)>/windows/system32/drivers/etc/hosts (You might need to change Text Document (*.txt) to all files to see it) It should look something like this: [CODE]# Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # …

Member Avatar for samy.youssef.12
0
874
Member Avatar for ErlendHL

Javascript itself cannot write on the server however AJAX would be a good way to do this, the AJAX tutorials at Tizag.com, they are very good. As for doing it through AS, you would need to create a javascript function and call it from within AS

Member Avatar for Donald_2
0
20K
Member Avatar for sk8ndestroy14
Member Avatar for ronaldpaul

Seperate them like normal functions e.g. [CODE]<input onblur="function1(); function2(); function3();" />[/CODE] You can also use standard JS like [CODE]<input onblur="this.value = 'somevalue' />[/CODE]

Member Avatar for gökhan_1
0
7K
Member Avatar for The Dude

Probz already been posted but hey Do you believe in Cod? Christians believe if they do not sin they will have salivation. We must try to control our animal orgies. What means “you should never stone the first cast”? Which religion do you use? Our church has smaller members every …

Member Avatar for Ene Uran
9
3K
Member Avatar for nil_gh_80

Why not just use FLV? its a lot simpler and will work in Firefox/Safari as well as IE P.S. I know you can run WMP plugin in firefox but its an extra download you don't need (Not sure about Safari thoug)

Member Avatar for amit.singh9
0
1K
Member Avatar for DealthRune

You meen something like the PM system here at Daniweb? I'm sure there will be loads of systems out there prebuilt for you

Member Avatar for lexayo
0
4K
Member Avatar for quecoder

Have a look at [url]http://www.hscripts.com/scripts/php/usersOnline.php[/url] and play about with that code. Regards, Sam Rudge

Member Avatar for diafol
0
130
Member Avatar for samarudge

Hey, I'm trying to implement CSRF tokens on a site of mine, but all the existing solutions have one of two problems; 1) The site runs on multiple servers (4 to be precise) so we can't use anything in _SESSION 2) The site gets over 400k hits a day on …

Member Avatar for jkon
0
771
Member Avatar for drewpark88

Not used it much, but GA has a 'Data Export' API [url]http://code.google.com/apis/analytics/docs/gdata/home.html[/url] and there's an (unofficial) PHP SDK [url]http://code.google.com/p/gapi-google-analytics-php-interface/[/url]

Member Avatar for pavankumarr
0
255
Member Avatar for AdriftUniform

PHP has a function called 'imagecreatefromstring()'; It will let you create an image from a string regardless of the type so you don't have to keep checking for the file types. Try something like [CODE] $src_image = imagecreatefromstring(file_get_contents($name)); [/CODE] You can even do error reporting [CODE] $src_image = imagecreatefromstring(file_get_contents($name)) if …

Member Avatar for AdriftUniform
0
408
Member Avatar for joshvanslam

This is normally done using MySQL or MongoDB to save the data and PHP to display it. You can use flat files but then you loose a lot of the power you can get from databases like MySQL or MongoDB A simple, flat-file example would be [CODE] <?php //Output whatever …

Member Avatar for diafol
0
152
Member Avatar for feoperro

There is no way to alter the way a browser renders a page. You can however use a tool like Firebug and try to find out why the images aren't loading. If the images aren't loading it's likely that there is something wrong. Firebug will let you see the HTTP …

Member Avatar for samarudge
0
127
Member Avatar for samcreator

Payment Gateways are, by definition, complex. Every payment gateway will be complicated and rely on frameworks. Some even require special modules to be loaded into PHP/Apache. In my experiance, PayPal Direct Payment is the easyest as it only uses a simple PHP framework and has lots of examples in their …

Member Avatar for samarudge
0
108
Member Avatar for Sanit

[code=php] <?php if(session_is_registered("sesvar")){ echo ("<a href='../../admin/comment-delete.php?id=$id2' onclick='return confirm('Are you SURE you want to delete this comment??')';><img src='../../images/delete.png' align='left' alt='Delete This Comment?'></a>"); } ?> [/code] try that

Member Avatar for leo_gatmaytan
0
2K
Member Avatar for network18

Several ways to run a PHP script outside browser: CLI (Command Line Interface) Call your script like [icode]#php /path/to/your/script.php[/icode] from terminal/CMD Telnet/SSH (Same as above) Crond On *NIX systems there is something called CROND which allows you to execute scripts according to a schedule E.G. every hour, every day, the …

Member Avatar for jan.cajthaml
0
3K
Member Avatar for samarudge

So I just got a new centOS box with PHP 5.1.something but I wanted it on PHP 5.2, initialy running [ICODE]yum update php[/ICODE] returned [CODE]php-pecl-memcache-2.2.6-1.el5.x86_64 from installed has depsolving problems --> Missing Dependency: php-zend-abi = 20050922 is needed by package php-pecl-memcache-2.2.6-1.el5.x86_64 (installed) Error: Missing Dependency: php-zend-abi = 20050922 is needed …

Member Avatar for Chanpan
0
242
Member Avatar for Arsench

Try adding the line [CODE] ini_set('display_errors', 1);[/CODE] (This turns on error reporting) and see what errors you get back

Member Avatar for Randy Orton
0
103
Member Avatar for xuexue

Have you tried using jQueryUI? It already has the functionality you need [url]http://jqueryui.com/demos/autocomplete/#remote[/url] But the problem could be that you define a function with two input variables but only pass one to it when you run it Maybe change [code=html] <input style="width: 200px;" id="name" onKeyUp="getInfo(this.value)" type="text" /> <div id="autoSuggestionsList"></div> [/code] …

Member Avatar for xuexue
0
220
Member Avatar for dan1992
Member Avatar for dan1992
0
140
Member Avatar for mbarandao

[code] echo "formObj.servicedesc.value = '".str_replace("\n", "<br/>", toSafeString($inf["servicedesc"]))."';\n"; [/code] Might do the trick

Member Avatar for mbarandao
0
121
Member Avatar for samarudge

Hey, So I have a *NIX box (CentOS 5.5) which runs a number of background processes, I leave it on 24/7 with just a terminal up on the screen (I don't have Gnome, KDE or any similar graphical frontend, just a prompt). Is there any way to get my background …

Member Avatar for shibblez
0
162
Member Avatar for samarudge

Hey, So I have a function to generate a slug URL, all the generated URLs must match a .htaccess rewriterule allowing only alpha-numerics, hyphens and underscores. My question is; how do I remove ALL characters other than the allowed characters. For reference, my URL rewrite is [ICODE]([0-9a-zA-Z_-]+)[/ICODE] -Sam

Member Avatar for samarudge
0
133
Member Avatar for samarudge

So I guess you guys are getting pretty fed up of answering questions about mod_rewrite, but here's another one to add to the pile. So I'm working on a new version of a site that's currently running (Lets call it mysite.com). Any visitor to [url]http://mysite.com/[/url] will be visibly redirected to …

Member Avatar for samarudge
0
154
Member Avatar for samarudge

On the URL shortener at DFT.BA, when a user visits a link we need the reffer header to be sent to the website we're directing too (For analytics etc.) Currently the URL redirect code is [CODE]header("Location: {$Link['link_target']}"); header("Refer: http://dft.ba/"); header("Referer: http://dft.ba/"); //Fallback for older browsers echo "<html><body><a href=\"{$Link['link_target']}\">Click To Go</a></body></html>";[/CODE] …

0
80
Member Avatar for samarudge

Hey, So I made a regular expression to check for valid URLs In Javascript I'm using the code [code=javascript] var valid_url = /^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z!//\d_]*)?$/i; var valid_protocol = /^http\:\/\/|https\:\/\//i; if ( !valid_url.test(url) || url.length == 0 ) { $('#url_return').html('Invalid URL!'); return false; } if ( !valid_protocol.test(url) ) { $('#input_url').val('http://'+url); url = $('#input_url').val(); …

Member Avatar for pritaeas
0
170
Member Avatar for cwarn23
Member Avatar for efmesch
1
173
Member Avatar for samarudge

On a site I'm working on we need to allow a user to download a file [B]once only[/B]. The problem is, if the download fails they can try again. I only want it to be registered as a download if it completes successfully The code I'm using at the moment; …

Member Avatar for richieking
0
95
Member Avatar for samarudge

Hi, I'm developing a custom shopping cart application for a client, there are two shipping rates; an international one and a domestic (US) one. When the user is on Paypal and they enter there address I need the shipping to change depending on the country. I currently have the code …

0
93