- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
57 Posted Topics
You will have to use ajax to execute PHP onclick.
I want to make an FLV player which I can embed in web pages. Ive found some tutorials on the internet but they are very basic and because I don't know a whole lot about flash I cant improve on these. If I'm doing this wrong, don't flame me. Im …
I have ESET Nod 32 Internet Security running and it says I have a virus in my memory and it's unable to delete it. My programs are constantly crashing and Im using around 3 of 4 GB of memory. How can I fix this?
I wouldnt recomend doing this through PHP, I would use .htaccess. Just search on Google, there are loads of tutorials on it :)
I run a vBulletin forum and Im trying to write a new BB Code. This would be the syntax: [CODE][parts] http://www.link1.com http://www.link2.com http://www.link3.com [/parts][/CODE] This would then be parsed into: [CODE=html] <a href="http://www.link1.com" class="linkclass">Anchor 1</a> <a href="http://www.link2.com" class="linkclass">Anchor 2</a> <a href="http://www.link3.com" class="linkclass">Anchor 3</a> [/CODE] Im a real regex newbie, I …
Ive written an image preloading script but Im not sure if it would work. Could someone look at it and just clear up wether it should work or not [CODE]<html> <head> <script type="text/javascript"> function preloader() { // counter var i = 0; // create object imageObj = new Image(); // …
I need something to read all files in a directory and all files in child directories and any directories below this. Could someone provide a snippet for me. Thanks :)
I have this code so when a user clicks a div they get taken to another page, just like the <a> tag. However I want it to open in a new page like target="_blank" but I dont know how. this is my code so far. Please help [CODE=html] <div onclick="location.href='http://linky.com';" …
I want to redirect a user after a few seconds without using javascript. Is this possible? Thanks.
I want to check if a key exists in a MySQL DB. I can do this ok but I would need to create a new key if it does exist. So this is the function that makes the key: [code=php] function keygen($a){ $b = str_shuffle('abcdefghijklmnopqrstuvwxyz1234567890'); return substr($b,0,$a); } [/code] So …
How is the value of the hidden field set in the first place?
Its a trojan. The iframe code is coded in such a way which means its hard to find out the source.
Ive got an RSS parser using the DOM. Its got a loop to display each item. I want to have a hidden field on each item then post this to another page. Im having trouble counting each item in the loop. Help please :) This is what ive got: [code=php]<?php …
Im trying to detect the format of an image. But I get a parse error [PHP]<?php $filename = 'http://static.php.net/www.php.net/images/php.gif'; $file = fopen($filename, 'rb'); $size = getimagesize($file); switch ($size['mime']) { case "IMAGETYPE_GIF": echo "Image is a gif"; break; case "IMAGETYPE_JPEG": echo "Image is a jpeg"; break; case "IMAGETYPE_PNG": echo "Image is …
When posting a long line of code it goes down to the next line...for example: [code=php] $errormessages = array( 'nosearch' => 'Your search returned no results - <a href="guide?t=search">Click Here For Search Tips</a>', 'captcha' => 'The captcha you entered was incorrect, please try again.',); [/code] Would it be possible to …
Theres a bug in the control panel where the sidebar on the right overlaps the control panel slightly.
I want to use $_GET['error'] to fetch error messages from an array. Heres my array: [code=php] $errormessages = array( 'nosearch' => 'Your search returned no results - <a href="guide?t=search">Click Here For Search Tips</a>', 'captcha' => 'The captcha you entered was incorrect, please try again.',); [/code] So if I did [ICODE]echo …
On my MySQL search what I want to do is redirect a user to another page and show an error message if the search returned no results. But for some reason the user never gets redirected. Can you spot my problem? :| [code=php] $sql = "SELECT * FROM `list` WHERE …
Im sure this has been discussed endless times but I can't find anything which will do it how I want to. I want to seemlessly execute some PHP onclick. It will just update a row in MySQL and I dont want the user to be aware of this happening. How …
Ive got a MySQL search, which searches an index of urls. The search parameter searches titles. What I want to do is have something like Google. So, if someone searches: [CODE]site:example.com something to search[/CODE] It would look for example.com in one column then from those results it would look for …
Theres not a secure way to transfer data through a URL even if you cover it with .htaccess because its still accessible.
Im having trouble ending sessions for some reason :| Heres my code. Can anyone see what the problem is? [code] <?php include('includes/config.php'); unset($_SESSION['isLogged']); session_destroy(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> </HEAD> <BODY> <?php echo '<div class="nav">'.$navigation.'</div>'; ?> You have been logged out. </body> </html> [/code]
Firstly, can I just say. I know this is really badly written but its to the best of my ability. Right, on index.php it makes a query which should go to search.php. Search.php handles everything. It makes a request to ajax.php which makes the request from the database. The problem …
Im using vBulletin and Im making a little script which needs to integrate with it. But due to vBulletins lack of PHP plugin support I have to use a client side language to make it work. So I have this script, its queries a database and has pagination. I want …
Im trying to delete records. Most delete ok but some don't and Im completly lost as to why... The information Im storing are just URLs. Could it be to do with some irregular characters within these URLs? Is there a recomended way to store a URL? Please help me out. …
This is in the wrong section. But there are lots of errors in your code. [url]http://validator.w3.org/[/url]
[QUOTE=scrager;809282]in this case I would use split. [code=php] $parts = split(":", "table:column"); $parts[0] //table $parts[1] //column [/code][/QUOTE] Whats the difference between that and explode?
Can anyone see anything wrong with this. Im stuck :( [code=php] $sql1 = mysql_query("DELETE FROM spider WHERE url='$addtolist'"); if (!mysql_query($sql1,$con)) { die('Error Deleting: ' . mysql_error()); } echo "Record Deleted <br />"; $sql2="INSERT INTO list (title, url, description) VALUES ('$title','$url','$description')"; if (!mysql_query($sql2,$con)) { die('Error Adding: ' . mysql_error()); } echo …
There are loads of tutorials for this. I found [URL="http://www.phpeasystep.com/workshopview.php?id=12"]this one[/URL] best.
This query doesn't work. What have I dont wrong? [code=php] mysql_query("INSERT INTO list (title, url, description) VALUES ('$title', '$addtolist', '$description') DELETE FROM spider WHERE url='$addtolist'"); [/code] Heres the whole page if it makes things clearer. [code=php] <?php include('includes/config.php'); $addtolist = $_GET['add']; $open = file_get_contents($addtolist); $title = get_inner_string($open, '<title>', '</title>'); $description …
Ive got a basic moderation script to create but Im stuck as to how to do it because there would be too much data to transfer as post data. So heres the premise [code=php] $result = mysql_query("SELECT * FROM whatstobemoderated"); while($row = mysql_fetch_array($result)) { echo '<input type="checkbox" name="url">' . linkify($row['url']); …
Ive got a button which works fine in FF but not in IE. All it is is a hyperlinked div. But IE users can't click the button. Anyone know a work around for this. Im not very experienced in cross-browser coding :confused: [code=HTML]<html> <head> <style type="text/css"> .partdiv { background-image: url('http://www.theflickzone.com/movieimages/part.png'); …
On my site lots of images are being used which are currently being stored on my server. But bandwidth is increacing quite alot and I want to store them on somewhere like Tinypic or Imageshack So my request is an image uploader to a free host using cURL. What I …
When getting data from other websites remember on that webpage if they are getting stylesheets and javascript files from other places they will be relative to the original page. So make sure you check the page you are copying before hand. And try this, it worked for me... [code=php] <?php …
You need to make sure that your server will behave in the same way your server did. To test PHP. On your server create a new file then use the [URL="http://uk.php.net/manual/en/function.phpinfo.php"]PHP info[/URL] function to see what php specs the server has. Then make sure your computer has this. You will …
I need to use ajax to make this whole process smoother. Here is a demo: http://www.theflickzone.com/dev/ If anyone can do this for me I will pay a few $ via paypal to say thanks :) Contents of index.html <form action="return.php" method="POST"> <p>IMDB URL: <input type="text" name="imdb" autocomplete="off"></p> <p>Links(line by line): …
[code=html] <form action="search.php?q=VALUE" type="post" /> <input type="text" id="textbox" name="poster" size="25" /> <input type="submit" class="button" value="Go" /> </form> [/code] I have this form....What I want is for where it says VALUE to change in the forms action to be the same as what is in the textbox. I cant find anything …
Hi, I have these two files...index.html and handle.php Index.html has a form on it which is sent to handle.php. This file takes the data sent from index.html then processes it and returns some text. What I want to do is 'Ajaxify' this whole process, so to speak. How can I …
Im using [URL="http://uk2.php.net/manual/en/function.get-browser.php"]get_browser[/URL] and I only want to echo parts of what is returned. So say for example I just want to echo platform and browser from what the array returns. How would I do that. Thanks :)
I have this... [code=php] <?php $links = explode("\n", $_POST['links']); foreach ($links as $links) { echo '[PART="NUM"]'.$links.'[/PART] <br />'; } ?> [/code] Where it says NUM I want the number of its position in the array. So if I fed this to this script: [CODE] http://www.google.com http://www.yahoo.com http://www.ask.com [/CODE] The script …
Ok, Im about to rip my hair out in frustration; either IMDB is really good at what they do or I am really bad at what I do :crying: What Im trying to do is get posters from a given IMDB movie page. I can get the URL for the …
Hello, I need some help. Ive got this script which scrapes the [URL="http://www.imdb.com/chart/top"]IMDB top 250 movies[/URL] list. What Im trying to do is add a search link next to the year bit. Ive got it partially working with str_replace but it only adds the link to the first movie. [URL="http://www.theflickzone.com/misc.php?do=page&template=top250"]See …
Can you post your whole script please. You would need to use curl to login to Rapidshare then take the data.
You would need to push the domain to them. I have never used Godaddy before but I know you can push domains to other users on there. You will probably need to ask them for their Godaddy username and then push it to them. Ask for support on Godaddy, you …
[code=php] <?php if (date('j, n, Y') == '10, 3, 2009') { mail('[email protected]', 'Subject', 'Message'); } ?> [/code] Ive not tested it but it should work :)
How would I import a database which is more than 50MB. PhpMyAdmin only allows below 50MB. Ive tried compressing the data but it doesnt work because it takes the decompressed size. So how would I do this?
Hello. Ive got this script which scrapes [URL="http://www.imdb.com"]IMDB[/URL] for their top 250 movies list but its not parsing and Im not sure why. Could you help me out please.... [code=php] <?php function get_inner_string($a,$b,$c) { $y = explode($b,$a); $x = explode($c,$y[1]); return $x[0]; } //Get Page $file = 'http://www.imdb.com/chart/top'; //Open Page …
Im tring to replace a string. But it just doesnt work for some reason. Ive tried str_replace and preg_replace but neither have worked. My script basically caches a webpage then replaces a given string. The problem is replacing the string then saving it. Could you please help me out... [code=php] …
Im not sure what Im doing wrong here but basically this script scrapes pages. The array has 3 urls to scrape but it doesnt work. Could someone please show me where Im going wrong. [code=php] <?php $req_url = array('http://www.first.com', 'http://www.second.com', 'http://www.third.com'); function get_head($a,$b,$c){ // Gets a string between 2 strings …
The End.
theimben