244 Posted Topics
Re: Due to domain security you cannot do this. Your preferences can only be accessed over the domain so you will eather have to recconect to the domain or manually copy the files #microsoftfail =) | |
Re: use the [icode]include(); || require();[/icode] functions to reduce your file sizes, split things up. Put functions in there own files etc. | |
Hi, So I have the following code [code] m = Microphone.get(); o = attachAudio(m); m.setUseEchoSuppression(true); onEnterFrame = function () { vol._xscale = m.activityLevel*100; soundvol = m.activityLevel; inputname = m.name; micgain = m.gain+"%"; outputvolume = m.; freqvolume = \\something }; [/code] As you can see, that code starts taking the input … | |
Re: [QUOTE=smartspriggs;1062975]I have a .phpfile in the xamp/php/www folder but can't get it to work with lofalhost.[/QUOTE] Firstly be more specific (Explain your problem more clearly) Secondly I was under the impression that XAMPP doc root was /xampp/htdocs/ but I may be wrong ![]() | |
Hi, I need to create a function to shorten a numerical ID to a string of letters E.G. [code=php] echo encode_num('1'); //Outputs a echo encode_num('3'); //Outputs c echo encode_num('26'); //Outputs z echo encode_num('27'); //Outputs A echo encode_num('52'); //Outputs Z echo encode_num('53'); //Outputs aa echo encode_num('54'); //Outputs ab [/code] etc. But … | |
Re: Download the file attached to this post, extract the file and double click it to run it (Click yes or accept or whatever) and that should enable task manager again. | |
Hi, I have just got Google Wave but don't have any contacts (Appart from the person who invited me) I can't figure out how to invite people eather so I was wondering if people would like to post there GMail addresses here I can add you so I can finally … | |
Re: [QUOTE=itisnot_me;1040484]ok so i am an avid php developer and i am starting to get into ajax so i can keep file sizes and code down to a minimum. i am looking in the w3schools ajax examples but i am a little lost at how to send through a variable to … | |
Re: It would need to be done in Flash, not Javascript. I am working on a similar project and my player is roughly based on the source of this [url]http://flash-mp3-player.net/[/url] | |
Hi, My friend has designed a website in Fireworks/HTML and has just saved all her images in Fireworks/PNG format. She has about 300 images all designed in Fireworks but they have all been saved in a format where someone can download them and open them in Fireworks and they will … | |
Re: Storing files as, well, files is never a good idea, if stored as PHP files and then include/require(ed) the scripts could contain malicious code. There are two options; 1, Save the file as .htm, .html, .txt (or some other plain text format) Include the file with [code=php] <?php echo file_get_contents($FileToGet); … | |
Hi, I have some code to dynamically retrieve one of three AJAX files and insert it into a DIV The Javascript is [code=javascript] function createajax() { var Ajax; try{ Ajax = new XMLHttpRequest(); } catch (e){ try{ Ajax = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ Ajax = new ActiveXObject("Microsoft.XMLHTTP"); … | |
Hi, On my websites, I encrypt passwords using a combination of hashing algorithm (Which I am obviously not going to post on a forum but its along the lines of [icode]md5(substr(whirlpool($Value), 0, 7));[/icode]) What is blowfish, how do I use it and how much more secure is it than a … | |
Re: I think you might have a virus, make sure you are using one of the big 3 (Norton, AVAST or KAPERSKY/KAPERSPY or however its spelled) and they are fully updated then run a boot scan or run a scan from Safe Mode, Make sure you back up as much as … | |
Re: Not 100% sure what you are trying to do but mysql(i)_insert_id() can get the primary key from the last insert statement [url]http://php.net/mysql_insert_id[/url] [url]http://php.net/mysqli_insert_id[/url] (If using MYSQLI link) | |
Hi, I have created a script to upload files [CODE=php]$filename = $_FILES['Filedata']['name']; $filetmpname = $_FILES['Filedata']['tmp_name']; $fileType = $_FILES["Filedata"]["type"]; $fileSizeMB = ($_FILES["Filedata"]["size"] / 1024 / 1000); //Irrelevant validation here move_uploaded_file($_FILES['Filedata']['tmp_name'], $_SERVER['DOCUMENT_ROOT']."/content/songs/file.mp3");[/CODE] And that returns OK to the browser allong with my success message but the file doesn't exist, when I look … | |
Re: Step 1: Get reseller hosting; 90% of reseller hosting services will let you host UNLIMITED WEBSITES with UNLIMITED BANDWIDTH at no extra cost (Although some you have to pay for your domain names but that's about $10 a year) Most reseller hosting will allow you to completely custom brand your … | |
Hi, I have a movie clip called [icode]dsp_albumcover[/icode] (Already created and on the stage, instance name is dsp_albumcover) I also have a variable with a .jpg file (Can be changed to any other though) defined as [CODE=actionscript] var albumimg:String = '/albumcover.jpg'; [/CODE] How do I load this in to dsp_albumcover? … | |
You must post a compleatly disasociated word to the previous one I.E. Elephant, Battery is [COLOR="Green"]OK[/COLOR] Elephant, Plant is [COLOR="Green"]OK[/COLOR] Elephant, Giraph is [COLOR="Red"]NOT [/COLOR](Both Animals) Elephant, Table is [COLOR="Red"]NOT [/COLOR](4 Legs) Etc. Not allowed words: Universe, Plannet, Dictionary, Thesorus, Internet (Including Google :P) and any other words that are … | |
Hi, I am trying to retrieve the contents of my XML file and use the variables later on in the script; I have the following actionscript code [CODE=actionscript3]// Get XML Vars var xml:XML; var urlLoader = new URLLoader(); var songdataurl:String = '0'; urlLoader.addEventListener(Event.COMPLETE,onXMLLoaded); urlLoader.load(new URLRequest("data.xml")); function onXMLLoaded(e:Event):void{ xml = new … | |
Re: [CODE=html]<form id="form1" action="#" method="post" enctype="multipart/form-data" runat="server" target="myframe"> <input type="file" id="myfile" accept="image" runat="server"/> <input type="submit" value="upload" runat="server" /> </form> <iframe id="myframe" name="myframe"> </iframe>[/CODE] Does that work now? | |
Hi, I am having a problem with my PHP mail function. I am trying to send an email from [email]user@site.com[/email]. This code is fine: [code=php] mail($to, $subject, $body, "From: user@site.com\n" . "MIME-Version: 1.0\n" . "Content-Type: multipart/alternative;\n" . " boundary=" . $mime_boundary_header) or die('Mail Error'); [/code] however this does not [code=php] … | |
This is probably one of the oddest SEO questions ever but here we go; My site is showing up fine on the keywords I want but it is also showing up top on keywords that I don't want it to show up on. Is there any way to get Google … | |
Re: Due to the way the HTML file selector works it is not possible to do this through only HTML/PHP However... It is possible through Flash There is a brilliant up-loader here - [url]http://swfupload.org/[/url] It allows you to specify file type as well as showing a progress bar | |
Re: 2 ways to do this Option 1, as you said, edit the php.ini file however from what you were saying this may be easyer at the start of the file that handels the upload (Not the one with the form on) add this line [code=php] <?php ini_set('upload_max_filesize ', '31M'); //Gone … | |
Re: You meen the URLs look like index.php?ID=1251341234 Etc. | |
Re: There are a few options 1st would be JoomlaXplorer if you are running a Joomla system This is a very good method of editing files and includes pritty syntax highlighting which makes it much easyer to edit 2nd Dustin Minnich's Simple PHP File Editor [url]http://www.dminnich.com/files/php_simple_fileed.tar.gz[/url] (Download) or [url]http://www.hamburgernecklace.com/dm/demo/php_simple_fileed[/url] (Demo) Never … ![]() | |
Re: See the contents of your variable with [code] print_r($row); [/code] This prints out all the values in an array | |
Re: [code]$Escaped = mysql_real_escape($String);[/code] or [code]$Escaped = mysqli_real_escape($Connector, $String);[/code] (Depending on connector used) | |
Re: If you use Dreamweaver it can create them for you (Spry>Menu) but this is realy much more to do with HTML, CSS and Javascript than PHP ![]() | |
Re: For doing something like this you should realy look into imagemagik etc. as GD is very CPU intensive and lower quality | |
Re: But TommyBs, that will be the first 50 charicters. I would do something like this [code=php] <tr> <td bgcolor="ffffff" width="400" valign="top"><img src="mainpic.jpg"></img></td> <td bgcolor="ffffff" width="360" valign="top"><h4><? echo "$headline"; ?></h4><h3><? $Words = explode(" ", $story); //Split it into individual words $i = 0; //Loop var while ( $i <= 50 ) … ![]() | |
Re: This is nothing to do with PHP, its all to do with the browsers trying to "URL Encode" the strings. | |
Re: This can be achieved using IFrames (Inline Frames or Framesets) basicaly its a window within a page that can display another page. You could set it up like this [CODE=html] <iframe name="Frame" width="400px" height="300px" frameborder="0" src="homepage.html"></iframe> [/CODE] That code will embed homepage.html within the 'parent' page. Next we need some … | |
Re: Well in that expression it meens if it fails to connect to the database (IE the function returns a FALSE value) it will run testFun(); Probably the most common use in that format is [code=php] mysql_connect('localhost', 'root', 'password') or die(mysql_error()); [/code] which trys to connect to mysql and if it … | |
Re: Replace with this code should work: [CODE=php]<?php session_start(); ?> <?php if (isset($_POST['submit'])) { if (isset($_SESSION['captcha_keystring']) && $_SESSION['captcha_keystring'] == $_POST['keystring']) { // Grab the form vars $name = (isset($_POST['name'])) ? $_POST['name'] : '' ; $email = (isset($_POST['email'])) ? $_POST['email'] : '' ; $org = (isset($_POST['org'])) ? $_POST['org'] : '' ; $bname … | |
Re: [CODE=php]header('Location: '."http://".$_SERVER['HTTP_REFERER']);[/CODE] Try that one out | |
Re: When I set up my first server I used this tutorial [url]http://www.howtoforge.com/perfect-server-fedora-11-x86_64-ispconfig-2[/url] This contains instructions for all the latest software so you can have an up to date server | |
Re: Posting to the forums for something like this might not be the best place to do it. Look in the Geeks Lounge forum. However I have some experience with PHP, AJAX, HTML and Flash and I would enjoy getting envolved in something like that so PM me with your email … | |
Re: Clasic examples of rules in spam filters are If your site is younger that about a year Your message is in plain text The email address you are sending from doesn't actualy exist (The server can't send a message back to it) The SMTP server you are using to send … | |
Hi, I have used AJAX lots before and I wondered if it was possible to set variables from an AJAX file E.G. an ajax file could set var set1 = 10; var set2 = 55; with both variables coming from an external file called by AJAX Could you tell me … | |
Re: When you reffer to the security_code what do you mean? Do you mean some sort of CAPTCHA or something where people enter some sort of password. Pleas be more specific in your posts and possibly post some of the code where you think the error is occuring. | |
Re: PHP uses ZEND to get data from remote sites (E.G. the Google APIs get data from the google servers) so if ZEND was trying to get data from the Built2go site then it would call an error if their site is down. | |
Re: Try start>accessories>system tools>system restore and select a date when you didn't have a problem. If that doesn't work post bak on the result/error | |
Re: This is not a PHP thing, plz move this 2 the Javascript forum and look for the answer there | |
Re: Most likely not installed properly, do you have a dedicated server? P.S. If its urgent, don't post it to a forum! People are here for leasure not to solve ur comercial problems | |
Re: JSP is unable to do this because (As far as I am aware) it does not have an image library. You would need to use PHP GD as a backed or something similar. PHP is the preferred method for handling images unless you want to create a custom app in … | |
| |
Re: base64_encode($String) base64_decode($String) |
The End.