- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 17
- Posts with Upvotes
- 13
- Upvoting Members
- 12
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 4
Re: I think my views are summarized in my sig-block =P | |
Re: 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. # … | |
Re: 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 | |
Re: 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] | |
Re: 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 … | |
Re: 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) | |
Re: You meen something like the PM system here at Daniweb? I'm sure there will be loads of systems out there prebuilt for you | |
Re: Have a look at [url]http://www.hscripts.com/scripts/php/usersOnline.php[/url] and play about with that code. Regards, Sam Rudge | |
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 … | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
| Re: 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 … |
Re: 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 … | |
Re: [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 | |
Re: 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 … | |
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 … | |
Re: Try adding the line [CODE] ini_set('display_errors', 1);[/CODE] (This turns on error reporting) and see what errors you get back | |
Re: 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] … | |
| |
Re: [code] echo "formObj.servicedesc.value = '".str_replace("\n", "<br/>", toSafeString($inf["servicedesc"]))."';\n"; [/code] Might do the trick | |
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 … | |
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 | |
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 … | |
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] … | |
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(); … | |
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; … | |
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 … |