Jump to content

kathas

Members
  • Posts

    113
  • Joined

  • Last visited

Everything posted by kathas

  1. kathas

    Login Error

    Are you sure you have your pass encrypted in your db? Cause if you don't then you need to add an md5 hash of your pass instead of the actual string... Regards, Kathas
  2. well if by broken you mean inexistent... then you might try to fopen() it and see what happens... I haven't actually tried that but if fopen() gets redirected search the result for 404 else it should return false that it isn't able to open the requested file...
  3. hey to all, Here is the case ... I want to make a script that will be used to embed videos on a website while the actual video name/directory will stay hidden... i have reached that far... in the html page instead of the src="video_name" i put php_filename. The php file sends headers that it is a video and then gets the content of the video file... <?php $filename = "video.wmv"; header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public", false); header("Content-Description: Video player"); header("Content-Type: video/x-ms-wmv"); header("Content-Length: " . filesize($file_real)); $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); echo $contents; fclose($handle); ?> and the html page <p align="center"> <object width="320" height="260" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" hspace="0" border="1"> <param name="Filename" value="play.php" /> <param name="AutoStart" value="True" /> <param name="ShowControls" value="False" /> <param name="ShowStatusBar" value="True" /> <param name="ShowDiplay" value="False" /> <param name="AutoRewind" value="True" /> <embed width="320" height="260" hspace="320" filename= "play.php" autostart="True" showcontrols="True" showstatusbar="True" showdiplay="True" autorewind="True" border="1" src= "play.php"></embed></object> </p> I searched everything possible and did not come up with anything that solved my problem... By the way if i put the filename to src attribute it works fine... Thanx in advance for all the help, Kathas
  4. Sure shows a proccess... but ain't that only for pages of my server??? I propably wasn't clear but when i say [i]i have know control over the anotherpage.php[/i] i mean it's from another domain... If i am wrong again please tell me and i'll look for it... Thanx a lot!
  5. yeah i googled for javascript solution first couldn't find anything.... Thanx for the help [i][b]mjdamato[/b][/i] just had to make sure...
  6. Sorry if that won't help or i understood wrong but do you control the page you want to redirect them to??? I mean if you want some values passed in another page of yours why don't you just create a hidden form with the desired values and submit it from the previous page??? Hope i understood your problem kathas
  7. Ok here is the deal... I want to open a frame then after the user interacts with the page in the frame i want to get the frame's new url... is that possible with php??? [b]Example:[/b] I have [b]thispage.php[/b] that contains [b]anotherpage.php[/b] and after the user interacting with the [b]anotherpage.php[/b] it becomes [b]anotherpage.php?stuff here[/b] Can i know what has it become??? By the way to avoid misunderstanding i have know control over the [b]anotherpage.php[/b]
  8. Yeah it's ok... Thanx anyway... I found the UNION clause but that's for two SELECT queries also... I don't know if it is possible... to send a SELECT and an UPDATE together ... i start believing it isn't... :)
  9. yeah but you can't really blend SELECT and UPDATE can you? And JOIN clause doesn't blend queries does it??? I think it blends results from tables...
  10. Yeah i kind of thought of that answer... thanx a lot [b]akitchin[/b] By blend i guess you mean make two queries right?? Anywayz thanx...
  11. No i mean sth like this... i mean have this result... [b]mysql_query(SELECT * FROM table) mysql_query(UPDATE table SET.....)[/b] with one mysql_query()... Sorry if i am being hard to understand... Thanx for the help...
  12. Hello everyone... I have a question, i googled for the answer but couldn't find anything... Can i execute two queries with one mysql_query() statement? Example: [b]mysql_query(two queries here...)[/b] Thanx in advance for all help...
×
×
  • 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.