- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
21 Posted Topics
Re: Hi maybe you could try... when the user logs in: [CODE] $user = "logged-in/$username"; $user = fopen($user, 'w') or die('ERROR'); fclose($page); [/CODE] on logout: [CODE]unlink($username);[/CODE] to list users: [CODE] $users = sort(glob('logged-in/*')); foreach ($users as $user) { print $user; print '<br />'; }[/CODE] good luck :) Calum | |
Re: Hello svmer, SSH and SSL are two different things. SSL is secure socket layer. Take gmail, for example, their URLs start with https:// not http:// the 's' means the connection is secure and encrypted. To use SSL, you need an SSL certificate, these are not normaly free. You can get … | |
Hello, I would like to have a dynamic resize slider for a flash game, I am trying to do something like the slider here [URL="http://www.agame.com/game/funny-cars.html"]http://www.agame.com/game/funny-cars.html[/URL]. Does anyone know how I should go about this, my site is [URL="http://tsgs.tk"]http://tsgs.tk[/URL]. Thanks | |
Re: Create a file called .htaccess and add [CODE]<Files Untitled.swf> order allow,deny deny from all </Files>[/CODE] Although this would deny access to the flash file even via index.html, so a better way would be to deny hotlinking. [CODE]RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^https?://myhostname\.com/.*$ [NC] RewriteRule \.(swf)$ - [F][/CODE] It would still … | |
Re: try [CODE] <?php if ($_GET['file']!=''){ if (file_exists("users/".$_GET['file']."")){ unlink("users/".$_GET['file'].""); } else {print 'The file does not exists.';} else {print 'Please enter a file name.';} ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"> File to delete: <input type="text" name="file" /> <input type="submit" value="Submit" /> </form> [/CODE] Good luck :) Calum | |
Re: Hello, Try this in php: [CODE=PHP]<?php //The password $password = '123abc'; ?> <ul> <?php if ($handle = scandir('docs/')) { foreach ($handle as $file) { if ($file != "." && $file != ".." && $file != ".htaccess") { $doc .= '<li><a href="docs/'.$file.'">'.$file.'</a></li>'; } } } print $doc; ?> </ul> <?php if($_GET['action'] … | |
Re: Hello, This might work: [CODE]<?php $to = "safiullah12@hotmail.com"; $subject = "test fname, email,phone,nn"; $Sender = $_POST["email"]; $message = " Name: ".$_POST['fname']."\r\n <br /> Email Address: ".$_POST['email']."\r\n <br /> Phone No: ".$_POST["phone"]."\r\n"; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0 \r\n Content-type:text/html;charset=iso-8859-1 \r\n From: ".$Sender."\r\n Reply-To: ". … | |
Re: Hi I would recommend using flat file databases as they would be eaiser to design. check out w3schools [URL="http://www.w3schools.com/php/"]http://www.w3schools.com/php/[/URL] Calum | |
Re: Hi, open all the scripts that are the action of the forms and add at the top <?php header('Location: thankyou.html'); ?> Hope this works Calum | |
Re: Hi, Download the USB installer from [URL="http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/"]http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ [/URL] then burn the iso to the USB. After this you will need to restart your PC and as it starts keep pressing the F11 key or the key that enables you to select boot device; Now you need to select USB and … | |
Hello I run ubuntu linux and I have just bought a new ipod touch You need itunes to set it up, which is, as usual, only available for Windows and mac (stupid apple for forgetting linux!!!). How can I set up my ipod? Thanks, Calum | |
Hi, I am trying to make a simple php photo gallery, I have this code, but the only problem is that the photos appear in a random order. How can I get the photos to appear alphabetically or numerically? [CODE]<?php if ($handle = opendir('photos/')) { while (false !== ($file = … | |
Re: Hi ivan3510 On youtube they use this code to put videos in their pages. [CODE] <object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/PIb6AZdTr-A"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/PIb6AZdTr-A" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>[/CODE] But youtube videos can also be accessed by going directly to the .swf file, in this case [url]http://www.youtube.com/v/PIb6AZdTr-A[/url] So, you … | |
Re: Hi wattaman, You can use the code below, but you will need to add more search engines after the 8th line. [CODE] <?php $refurl = $_SERVER['HTTP_REFERER']; $refurl = explode("/", $refurl); $refurl = $refurl[0]."//".$refurl[2]; if ($refurl == www.google.com) echo "Add code here!"; if ($refurl == www.google.co.uk) echo "Add code here!"; if … | |
Re: Get a program called free studio and use video to flash. Calum | |
Re: If you want to display the online/offline information on another website or server, you could try [CODE]<html> <head> <title> <?php function GetServerStatus($URL, $PORT) { $status = array("OFFLINE", "ONLINE"); $fp = @fsockopen($site, $port, $errno, $errstr, 2); if (!$fp) { return $status[0]; } else { return $status[1];} } ?> </title> </head> <body> … | |
Re: if you mean disable hotlinking then try [URL="http://tools.dynamicdrive.com/userban/"]this[/URL] | |
Re: [QUOTE=raju_boini525;1248582]hi all, i am working on a project. my project needs videos tv( Playing videos flash player). my reference site is [URL="http://www.zooweekly.com.au/zootube/index.htm"]http://www.zooweekly.com.au/zootube/index.htm[/URL]. I need that type of flash player. is it passible to do it. can you guide me plz...[/QUOTE] there is a program called [URL="http://www.dvdvideosoft.com/free-dvd-video-software.htm"] free studio[/URL] that you … ![]() | |
Re: [QUOTE=sadeeshero;1262743]any one have video uploading coding[/QUOTE] I don't know what you mean. |