244 Posted Topics
Re: Not free, if you get Adobe Dreamweaver and php-CLI installed on your local computer you can link LiveView in with that. Also adding [CODE]ini_set('display_errors', 1);[/CODE] to the start of your file will give you visual errors. | |
A collection of awesome images from street view =D [url]http://bit.ly/9XPpiI[/url] [url]http://bit.ly/ck7faI[/url] [url]http://bit.ly/d2EXTU[/url] [url]http://bit.ly/94I7z8[/url] | |
Re: Just add [CODE]<?php if (ini_get('display_errors') == 1) { ini_set('display_errors', 0); } ?>[/CODE] to the start of the file. That will turn of error display | |
Re: You need PHP GD to do this | |
Re: The easiest way is [CODE]#Enable URL Rewriting RewriteEngine on #Flag [QSA] adds any additional URL paramiters to the call #Home Page RewriteRule ^onefile.html$ /onefile.php [QSA][/CODE] So onefile.html will redirect to onefile.php and onefile.html?get=foo redirects to onefile.php?get=foo | |
If anyone is interested I have put together a list of common MIME types formatted in CSV and XML You can get them at [url]http://www.cake-spoon.com/pdt/2010-03-12/csv-list-of-mime-types[/url] or via the attached .zip folder containing both =) | |
Re: Could you include the contents of your php.conf (Or wherever your PHP is configured in httpd.conf) | |
Hey, I have a table defined like [CODE]<table width="100%"> <tr> <td>Some Content</td> <td>More Content</td> </tr> </table>[/CODE] This table displays something like [CODE] |------------------------|------------------------| |Some Content | More Content | |------------------------|------------------------| [/CODE] The columns of the table will automatically resize based on there content however I want the first collumn to … | |
Re: "Hewston, we have a noob" I don't think you quite understand what PHP is. PHP runs on the server and once that little loading indicator has gone away their aint a whole lot PHP can do to the page. If you want a form to be submitted to the server … | |
Re: have you tried [CODE]time_stamp(time());[/CODE] And made sure that $session_time is a properly formatted UNIX timestamp? | |
Re: Hey, Unfortunately when just loading a plain sound file there is no way of managing the errors (Its a browser error) The only thing I would sugest is using some sort of Flash framework and refferencing it through JS. Or if you are feeling adventurous you could play about with … | |
Re: There is no official "Best" format but most people preffer .PNG (Allows transparency also small file size) Its between PNG and JP(E)G but its more up to personal prefference | |
Does anyone know anything about Oracle Roles & privileges. An application on 9i has multiple roles assigned to each user. I am getting permissions problems, I think because there are conflicting privileges within the roles. EG: Role1 has SELECT, UPDATE on table1. Role2 has SELECT, INSERT on table1. User Default … | |
Re: When storing data in a MySQL table with PHP you are best off converting it to Unix Time (See [url]http://php.net/time[/url]) From there you can convert it into any function as well as running functions like [CODE]$StartTime = time(); $EndTime = time()+60*60*60; echo date('H:i:s', $StartTime-$EndTime);//Returns 1:00:00[/CODE] | |
Re: .htaccess files use regular expressions to redirect so a URL like [url]http://mysite.com/somefile/user/hello.html[/url] could be redirected to [url]http://mysite.com/index.php?file=somefile&arg2=user&arg3=hello[/url] using the .htaccess file [CODE=txt] #Enable URL Rewriting RewriteEngine on RewriteRule ^/([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+).html$ //index.php?file=$1&arg2=$2&arg3=$3 [QSA] [/CODE] so in your example you just need somethingl ike [CODE=txt] #Enable URL Rewriting RewriteEngine on RewriteRule ^/([0-9a-zA-Z_/-]+)$ //index.php/$1 … | |
Re: On your HTML form have you included return within the on-submit? I.E. [CODE]<form name="" action="" target="_self" onsubmit="return checkForm()"> <!--Form Stuff--> </form>[/CODE] =) | |
Re: You can use the mysql_insert_id() function. Run an insert query like this [CODE]//Connect to MySQL etc. mysql_query("INSERT INTO MY_TABLE (NAME, EMAIL, PHONE) VALUES('bob', 'bob@bobssite.com', '555-222-111')") or die(mysql_error()); $InsertID = mysql_insert_id();[/CODE] now [ICODE]$InsertID[/ICODE] will contain the PRIMARY_KEY from the table insert. =) | |
Re: Yep its a realy simple problem and a simple solution. Even though its part of a PHP script you need to refference it as an image I.E. Create a file 'op_image.php' and add the code [CODE]<?php require_once "CaptchaSecurityImages.php"; $width = '120'; $height = '40'; $characters = '6'; $captcha = new … | |
Re: There is no 'legal' issue although from the point of politeness you should provide attribution and if possible check with the website owner | |
Re: Try [CODE] $ArrayLength = rand(0,100);//The array will be between 0 and 100 entries $i = 0;//Incremental $RandArray = array(); while ( $i <= $ArrayLength ) {//Until the array length is reached $RandArray[$i] = rand(1,100);//Set a value between 1 and 100 $i++;//Add to the increment } echo "<pre>";//Create an output for … | |
Re: Its also worth noting that API-password authentication is being phased out over the next 18 months so you are much better off setting up an application using the o-auth API | |
Re: See [URL="http://uk2.php.net/zip"]http://uk2.php.net/zip[/URL] | |
Re: Graphix is right, also you should consider using URL encoding on your URL I.E [CODE]indexblank.php?course=C LANGUAGE[/CODE] Should become [CODE]indexblank.php?course=C+LANGUAGE[/CODE] | |
Re: Not sure but the [CODE]print_r()[/CODE] Command is useful to print out the contents of an array, the best usage is [CODE]echo "<pre>"; print_r($ArrayName); echo "</pre>";[/CODE] | |
Re: Try [URL="http://php.net/"]http://php.net/[/URL] It tends to be quite useful when learning the PHP language, this is a forum for HELPING people with problems, come back in a few months and we can HELP you rather than TELL you what to do ![]() | |
Re: I think this is more a Flash problem, do you mean that you want to find out how far the video has played already or how long the video is or how long it will take to load? If you want to play videos then rather than developing an entire … | |
Hi, I have a page with four primary DIVS layed out like: [url]http://wp-media.samrudge.co.uk/2010/01/1.png[/url] using the CSS [code=css] body{ background-color:#CCC; } #container{ width:300px; height:auto; background-color:#00F; padding:10px; } #header{ width:300px; margin:5px auto; background-color:#0FF; font-size:24px; } #left{ width:200px; height:auto; background-color:#90F; float:left; } #right{ width:100px; height:auto; background-color:#CF0; float:right; } #footer{ width:300px; background-color:#0F0; float:none; [/code] … | |
Re: Hmm... this is an interesting one isn't it though because PHP stands for PHP Hypertext Preprocessor Which doesn't really explain what PHP stands for, I think they had HP and just needed another letter so they added a P and couldn't think of anything for it to stand for which … | |
Re: If you uploaded the file to a folder called /powerpoint/ and the file was called presentation.ppt (Or .pptx) and accessed it on a computer with eather Office 2003 (PPT) or 2007 (PPTX) using the path like a regular file: [url]http://yoursite.com/powerpoint/presentation.ppt[/url] then you should see the presentation but I think this … | |
Re: [QUOTE=RippsBlack;1103090]Hey, I have a home network consiting of 4 PCs and 2 Wireless Routers D-Link Router (xxx.xxx.1.1) NetGear Router (xxx.xxx.1.2) ----------------------------- Media Centre Upstairs w/ Windows XP MCE sp3 & Windows 7 (xxx.xxx.1.3 Netbook w/ Windows XP sp3 (xxx.xxx.1.4) Meida Centre Downstairs w/ Windows XP MCE sp3 (xxx.xxx.1.5) Laptop w/ … | |
So the other day I found an AMAZING website Do you get tired of idiots on forums asking stupid questions? Do you wish there was a way to get rid of the idiots? Introducing [url]http://www.lmgtfy.com/[/url] Possibly the best use of flashvars ever =) (I don't own this site and I … | |
Re: What system are you using? If you are using Apache with Windows you need to open your services pannel (Start>Run>services.msc), right click Apache *.*, account then check "Allow service to interact with desktop" That should help if you are on Windows, if you are on Linux or UNIX that script … | |
I have decided to set up the website [url]www.cake-spoon.com[/url] with the intention of it being a random, nerdy blog covering everything from photography to games consoles to films. Only problem is that me writing a blog all by myself is a bit boring and won't get much promotion so what … | |
Re: Also you should insert some security as users could SQL inject into your database. | |
Hi, I have created dynamic text on a button. How can I get the text to display the hand tool instead of the arrow tool. I have made the text not selectable and given it an instance name then used [CODE]itbl_text.buttonMode = true;[/CODE] it is all contained inside a movie … | |
Hi, What is the function/opperator to calculate a power with C# I tryed [code=c] powerof = anumber ^ anothernumber; [/code] and that clearly doesn't work (1^3 is 2, 2^3 is 1 etc.) How do I do it??? I looked under [icode]Math.[/icode] functions and there was nothing and I spent ages … | |
Hi, I have created a Flash MP3 player with a timeline, at the moment you have to click on the place in the timeline to move to but I would like people to be able to click and drag the time slider. The code I have for setting the position … ![]() | |
Re: This cannot be done in PHP, You need to open the source code of your player (.fla) and edit it in there. The only thing you could do in PHP is stop the whole player from loading but the MP3 won't start playing until the player has loaded. Open the … | |
Hi, I know when passing vars to an AS3 movie you can use the query string like mymovie.swf?Var1=something&Var2=something_else but what about passing them via the URL? I know that YouTube does this, there embed SWFs are [url]http://www.youtube.com/v/[/url][COLOR="Red"]v3xYkyw86QM[/COLOR] with the red bit being the video URL. The server is Apache so … ![]() | |
Re: I notice that your net-bios is chrysanthemumwolf-[COLOR="Red"]laptop[/COLOR] If you are using a laptop for a testing server rather than a production server try XAMPP. You will find it much easyer [url]http://www.apachefriends.org/en/xampp-linux.html[/url] | |
Re: [QUOTE=Adamsappleone;1068923]Here ya go; [url]http://lmgtfy.com/?q=how+to+re-boot+my+pc+after+installing+java+[/url][/QUOTE] Haha thats made my day =) | |
Re: [QUOTE=aksshe10;1056077]i have internet connected in all my computers but i have bloced net surfing by blocking port80 from the router. could anyone suggest a way to change the settings of one computer temporarly to access the net. i can only use internet explorer.(no extra program to be installed) thankx[/QUOTE] What … | |
Hi guys, So I am developing a website which will allow users to comment on things. As part of this I need to display a comment count and I wanted to know what you thought was the best way of doing this: The two options are Every hour/day run a … | |
Re: When using PHP for blogging, go for Wordpress (The support is much better on that system and its much easier to customize) | |
Re: [QUOTE=caperjack;1065173]The sound needs to come from the computer ,so you need to plug something into the computers audio out plug on the computers sound card on the back of the computer,your surround sound speaker plug ,it need to be a mini pin male[/QUOTE] Yep... VGA does not carry sound, you … | |
Hi, I downloaded the open source project Guitar Tuner ([url]http://sourceforge.net/projects/guitartuner/[/url]) Inside it there is an index.html file, a TunerApplet.jar file and a TunerApplet.java file (As well as some images and GPL etc.) When i open index.html the applet displays as it should however if I try to recompile (Even without … | |
Re: use the % attribute E.G. [code] <body> <div style="margin:auto; width:80%; background-color:#FF0000;">Hello</div> </body> [/code] | |
Hi, I'm trying to find a suitable language for developing an RIA to be able to tune an instrument via a website. I.E. what I need is: 1) Live input from a microphone 2) Get the volume level of different frequencies 3) Find the average or loudest frequency 4) Output … | |
Re: I would try [code] $a = 08; print($a); [/code] or use a string [code] $a = '08'; print($a); [/code] | |
Re: Wow thats a lot of Skype processes lol To effectively remove viruses you should boot in safe mode Hold F5 when the windows screen apears and select Safe Mode then run the virus scaner again |
The End.