Jump to content

dsdsdsdsd

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by dsdsdsdsd

  1. so is ffmpeg kind of like the GD engine that processes images on the server? if I am not mistaken, GD is a server-based application, and php has an API to it ... it is the API that I interact with in php scripts. IF so then getting ffmpeg is a process, really: 1 - download 2 - install onto server 3 - learn how to interface with it via php ... is this correct? -- thanks.
  2. to be honest, I still don't understand ffmpeg ... if you go to the wiki it doesn't even mention php. I keep seeing people refer to 'command line' software, but I am looking for a php script that can do all the conversions.
  3. is there a library that can convert between these filetypes: mp3, wav, ogg, webm thanks, dsdsdsdsd
  4. aha of course ... and it worked as you said ... thanks! I have since learned that facebook apps have a app_secret that is intended to be secret, and that that is included in the $_REQUEST sent with the child_index.php ... I suppose that child_index.php will check for that ... getting ready to test it. thanks for your answer!
  5. Christian, thanks for responding; your response is helpful. I am trying to create the scenario, so I made 2 php files, iframe__parent.php and iframe__child.php // iframe__parent.php <?php $_REQUEST[ "signed_request" ] = "blah" ; ?> ... <iframe src = "iframe__child.php"> </iframe> ... // iframe__child.php <?php print_( isset( $_REQUEST[ "signed_request" ] ) ) ; ?> // ..... returns false so although I understand that it is possible (otherwise how would facebook do it, right?), but how? thanks for your time, Shannon
  6. I guess another way of asking this question is: If I load somebodys_url into an iframe on my_page, can I inject values into the $_REQUEST array that accompanies that request for their page? please see my first post for the explanation of why I want to know this.
  7. I have my_app which is intended to be accessed only as a facebook canvas app, and I am looking for a solid test which my_app will perform during the loading phase to verify whether it or isn't being loaded into a facebook iframe. So one approach I am looking at is to check the $_REQUEST array. In a legitimate facebook iframe, the $_REQUEST[ "signed_request" ] is readable. But I would like to know if somehow another webpage could attempt to load my_app and send a fake 'signed_request'. - thanks, Shannon
  8. hello. I am installing a joomla site on a client server. So far the site works fine on my local machine, fine on my hosted development server. The specific problem I am having is that when I attempt to login to the joomla administrator, my un/pw fail, but I can see in the database that the un/pw are there ... BUT the pw is encrypted. So I was thinking that maybe on my server's php install that when a password is encrypted, maybe it uses encryption-algorithm-AAA, which checks positive against the database value, BUT on the client's server maybe a encryption-algorithm-BBB is being used, and thus checks false against the stored AAA-generated value. any thoughts? thanks, Shannon
  9. I figured it out ... effectively what I was doing is the same as this: function M ( ) { //--vvvvv-- from the include $gvi = 10 ; function N( ) { global $gvi ; return $gvi ; } //--^^^^^-- from the include print "N : " . N() . "<br/>" ; print "N : " . $gvi . "<br/>" ; } M() ; and of course $gvi is NOT in the global scope in this example ...
  10. I have 2 php files. I am unable to get B's global variable from A's static method: A.php class c_A { public static function f_A() { include_once( "B.php" ) ; print f_B() ; } } c_A::f_A( ); // only prints "B : " B.php $gvs = "global variable from B" ; function f_B() { return "B : " . $GLOBALS[ "gvs" ] ; } any thoughts? thanks, Shannon
  11. very interesting ... this has been a learning experience for me ... I take for granted that .php files are 'text', but they are not ... rather they are rendered as text even in the text-editor-environment ... thanks.
  12. this is a php file ... it's only content is: <?php header('Content-Type:text/html; charset=UTF-8'); $gvs = "Č芚ŽžÄäÉéÖöÜüß" ; print $gvs ; ?> my text editor is dreamweaver. currently this file has been encoded as Western. But notice the header(... utf-8 ). low and behold the DW setting dominates even when the php file IS NOT in the text editor environment, but rather in a browser environment. Ivan, MadTechie ... I wasn't really using Western ... in fact I was unaware that DW even had this setting available at all. So my question is: where is the DW encoding setting actually being stored ... there's no visible indicators in the text editor. if I change the DW setting to 'utf8', all is well in the browser. - thanks, Shannon 17482_.php
  13. I wish I was getting the same result as you ... within my texteditor (dreamweaver) characters display fine, regardless of whether I am using Western or utf8. But when I look at it in the browser, then I get the ?-marks when having used the Western. . <?php header('Content-Type:text/html; charset=UTF-8'); $gvs = "Č芚ŽžÄäÉéÖöÜüß" ; print $gvs ; ?> If I was getting the ?-marks in the texteditor environment, I would actually be relieved: wysiwyg, which is always reliable So I guess I am still confused about where the texteditor's encoding is actually stored, since it doesn't seem to be stored in the .php's visible space. -Shannon
  14. I am unfamiliar with the idea that a .php (which is just plain text) can have itself be 'utf8' or whatever. Where is this info stored? If I take my .php file, upload to a remote server ... where is that data from dreamweaver stored ... there's nothing visible in a text editor showing that DW injected something into it. thanks, Shannon
  15. weird weird weird .... I did not mention in the original post that there are actually 2 php pages, one included by the other. I determined that the variables from the included file were the problem (if I moved them to the main.php, no problems). I use dreamweaver as my text editor AND APPARENTLY dreamweaver saves the files with an encoding, and indeed the included.php was saved with Western encoding. in dreamweaver: CTRL-J ... TITLE/ENCODING ... ENCODING so even though I had header( ... UTF- all over the place, the included.php did not care as it was saved in Western encoding.
  16. hello; I have: mysql: utf8_general_ci index.php: header( ... UTF- index.php: <meta ... content-type ... UTF-8> index.php, mysql query procedure: ... mysql_set_charset( utf8 , .. ) ... So, if I put a special character in my db, it WILL display correctly in index.php But, if I put the same character in a php variable, it is BAD ... diamond-shape with question mark inside Since my special characters work from the db, I would like to also use them in html (index.php ). am I missing anything? thanks for your time .. Shannon
  17. unfortunately I am still developing php as if it were 2004 ... I ordered a php5 book today ... I keep telling people that I am a php person
  18. ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = On I wonder if it had been Off prior to their changes ... they were only supposed to be looking at session.save_path ... hmmm I will call them to tell them. - Shannon
  19. hello; my webhost made a change to my php.ini file yesterday. since then php is escaping single quotes that it receives from flash. //-- AS3 var myVariables:URLVariables = new URLVariables(); myVariables.pvs_params = "'h'e'l'l'o" ; var myURLRequest:URLRequest = new URLRequest("mysql_task_mgr.php"); myURLRequest.data = myVariables ; myURLRequest.method = "get" ; navigateToURL( myURLRequest, '_blank' ) ; //-- php print( $_GET[ "pvs_params" ] ) ; // --> \'h\'e\'l\'l\'o any thoughts? my webhost is stumped;
  20. hello; I'm looking for number of webcams, maybe by country. For instance what percentage of laptops currently being produced include a built-in webcam? etc. any thoughts, Shannon
  21. because php people have the knowledge to give insight into my indirectly-related problem ( if they wish that is ) ... I stated "this question has nothing to do with php" for the sole purpose of indicating that I was aware that I was stepping out of bounds regarding topic-focus, and implying that I would appreciate a little lee-way.
  22. yeah I figured that somebody would be a complete jerk ... thanks Maq... for anyone else: I posted it here because I know that many php people understand email servers and web servers and the basics of emailing in general.
×
×
  • 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.