244 Posted Topics

Member Avatar for sgpapartments

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.

Member Avatar for samarudge
0
68
Member Avatar for samarudge

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]

Member Avatar for Geekitygeek
0
171
Member Avatar for MDanz

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

Member Avatar for hashinclude
0
84
Member Avatar for MavrickIT
Member Avatar for sam1

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

Member Avatar for samarudge
0
64
Member Avatar for samarudge

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 =)

0
91
Member Avatar for dstrout

Could you include the contents of your php.conf (Or wherever your PHP is configured in httpd.conf)

Member Avatar for samarudge
0
188
Member Avatar for samarudge

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 …

Member Avatar for samarudge
-1
93
Member Avatar for iniyanmani

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

Member Avatar for OS_dev
-1
7K
Member Avatar for mrcniceguy

have you tried [CODE]time_stamp(time());[/CODE] And made sure that $session_time is a properly formatted UNIX timestamp?

Member Avatar for mrcniceguy
0
134
Member Avatar for misterrmac

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 …

Member Avatar for misterrmac
0
174
Member Avatar for GordonUK

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

Member Avatar for jbennet
0
279
Member Avatar for samarudge

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 …

Member Avatar for debasisdas
0
88
Member Avatar for ramakrishnankt

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]

Member Avatar for ramakrishnankt
0
144
Member Avatar for bas_brain

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

Member Avatar for samarudge
0
80
Member Avatar for Venom Rush

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] =)

Member Avatar for Venom Rush
0
96
Member Avatar for lifeworks

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

Member Avatar for lifeworks
0
139
Member Avatar for veledrom

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 …

Member Avatar for veledrom
0
154
Member Avatar for dks1383

There is no 'legal' issue although from the point of politeness you should provide attribution and if possible check with the website owner

Member Avatar for saiprem
0
119
Member Avatar for JuliaNell

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 …

Member Avatar for JuliaNell
0
79
Member Avatar for RobotFX

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

Member Avatar for RobotFX
0
348
Member Avatar for veledrom
Member Avatar for samarudge
0
61
Member Avatar for ssana

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]

Member Avatar for ssana
0
195
Member Avatar for MDanz

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]

Member Avatar for MDanz
0
114
Member Avatar for aryanmughal

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

Member Avatar for diafol
0
138
Member Avatar for newcountry

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 …

Member Avatar for samarudge
0
131
Member Avatar for samarudge

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

Member Avatar for Cragdo
0
98
Member Avatar for anu.reka85
Re: PHP

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 …

Member Avatar for samarudge
-8
177
Member Avatar for OmniX

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 …

Member Avatar for Adward
0
938
Member Avatar for RippsBlack

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

Member Avatar for mjdodd
0
233
Member Avatar for samarudge

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 …

Member Avatar for WaltP
4
189
Member Avatar for dolu

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 …

Member Avatar for dolu
0
2K
Member Avatar for samarudge

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 …

0
40
Member Avatar for madristaa

Also you should insert some security as users could SQL inject into your database.

Member Avatar for accountholder
0
87
Member Avatar for samarudge

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 …

Member Avatar for aarenaaron
0
86
Member Avatar for samarudge

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 …

Member Avatar for ddanbe
1
184
Member Avatar for samarudge

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 …

Member Avatar for rajarajan2017
0
278
Member Avatar for sarithak

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 …

Member Avatar for samarudge
0
95
Member Avatar for samarudge

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 …

Member Avatar for rajarajan2017
0
97
Member Avatar for wolf_london

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]

Member Avatar for wolf_london
0
111
Member Avatar for ajy27

[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 =)

Member Avatar for samarudge
0
89
Member Avatar for aksshe10

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

Member Avatar for miiji
0
201
Member Avatar for samarudge

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 …

Member Avatar for tchaves
0
111
Member Avatar for charles07

When using PHP for blogging, go for Wordpress (The support is much better on that system and its much easier to customize)

Member Avatar for samarudge
0
55
Member Avatar for makaveli7

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

Member Avatar for Crash~Override
0
141
Member Avatar for samarudge

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 …

Member Avatar for samarudge
0
127
Member Avatar for niche1

use the % attribute E.G. [code] <body> <div style="margin:auto; width:80%; background-color:#FF0000;">Hello</div> </body> [/code]

Member Avatar for CommDave
0
82
Member Avatar for samarudge

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 …

Member Avatar for samarudge
0
84
Member Avatar for jeet_portal

I would try [code] $a = 08; print($a); [/code] or use a string [code] $a = '08'; print($a); [/code]

Member Avatar for jeet_portal
1
109
Member Avatar for sueshi9

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

Member Avatar for sueshi9
0
261

The End.