Jump to content

Search the Community

Showing results for tags 'testing'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 3 results

  1. I am testing my app to server transport to verify everything is working, I need to write a loop that takes each value sent via GET and/or POST and then echo each key:value back, how do I step through the $_GET or $_POST and extract each to echo? Something like this, but what? <?php /*I know this is not valid, is psedocoded*/ foreach($key in $_GET as $value){ echo $key." = ".$value; } ?>
  2. I've run into a few problems as I was following this guys tutorial to setup a registration, log-in, etc. into my website. - for references here is the tutorial that I was going through and the problem that I have encountered has occurred during the process at: http://youtu.be/740kEwoRPKk?t=15m20s As you can see in the 3rd image attached each one of my .php documents also have a notification bar on the top of the coding which entitles, "Dynamically-related files could not be resolved because the site definition is not correct for the server. Retry | Setup" I have my php files setup exactly as he has it only thing different then his is that I had to change my localhost to localhost:8080 due to a bump in the road that happened due to the fact that I have Skype on my computer which encounters a problem with the testing-server service I am using which is PhPMyAdmin The error that I am getting when I try to connect my database to my testing server is in the image attached. Please reply to this post as soon as possible so I can get this problem resolved asap! Take note that I am working on everything from Dreamweaver CC!! Also I have tried several variables for setting up the database 'MySQL server:' such as 'localhost' , 'localhost:8080' , 'localhost8080' , 'localhost' , etc. If you have any further questions you can reply to me on here or you can add me on skype as well! My skype name is: lowheartrate Thank you to all in advance!! ~Codi Bezouka-Smith 'PHP-Beginner' - screenshots of the other images that weren't uploaded - - http://prntscr.com/302xut - http://prntscr.com/302xz8 - http://prntscr.com/302y3f
  3. Hi, my name is Felipe (aka Sabino) and I am new here! This is my first post! I am working on a code to make you grab a direct MP4 file from the vk.com (a russian facebook like social network) My goal is to use another player with the file, like jPlayer, for example. Here is what I've got so far: I know it's ugly coded, but still, I just want to make it work. <?php //pretending to be a browser function download_pretending($url,$user_agent='Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)') { $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_REFERER, 'http://vk.com/'); $result = curl_exec ($ch); curl_close ($ch); return $result; }//function download_pretending($url,$user_agent) $url = $_GET["url"]; $id = $_GET["id"]; $hash = $_GET["hash"]; $url = $url . "&id=" . $id . "&hash=" . $hash . "&hd=2"; $pagina = download_pretending($url,'Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10'); $host = get_string_between($pagina, 'host=', '&'); echo $host; echo "<br>"; $ps = array(); $count = preg_match_all('/<source[^>]*>(.*?)<\/source>/is', $pagina, $match); for ($i = 0; $i < $count; ++$i) { $ps[] = $match[0][$i]; } // Function to get the MP4 file URL from the page function get_string_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } //I know I can make a for, I was lazy echo '<br>'; echo get_string_between($match[0][0], 'src="', '" type='); echo '<br>'; echo get_string_between($match[0][1], 'src="', '" type='); echo '<br>'; echo get_string_between($match[0][2], 'src="', '" type='); echo '<br>'; echo get_string_between($match[0][3], 'src="', '" type='); echo '<br>'; ?> If you test with this url: http://vk.com/video_ext.php?oid=15318088&id=151930229&hash=e5fb57179b1830c3&hd=1 The result will be something like this: http://cs12492.vk.me/u15318088/videos/aa6b0afa06.720.mp4 http://cs12492.vk.me/u15318088/videos/aa6b0afa06.480.mp4 http://cs12492.vk.me/u15318088/videos/aa6b0afa06.360.mp4 http://cs12492.vk.me/u15318088/videos/aa6b0afa06.240.mp4 But if I try to access any of those links, I gives me a 404 error, from vk.com So, I don't know if this is a protection, if the link works only for the IP that loads the page, don't know... If you want to try the script, go here: http://sabino.net16.net/vk/?url=http://vk.com/video_ext.php?oid=15318088&id=151930229&hash=e5fb57179b1830c3&hd=1 Can someone help me? Thanks in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.