Jump to content

jeet_0077

Members
  • Posts

    50
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jeet_0077's Achievements

Member

Member (2/5)

0

Reputation

  1. Thank you guys thanks a lot. It really helped me. I really need to learn the regex its really cool.
  2. Hi, I have a content stored in a variable as $var = 'some string some string some string some string some string /videos/videoname.mp4 some string some string some string some string some string some string ' ; Can some one help me to get the video name from the above string. Thanks a lot in advance !
  3. Ha what a stupid I am, I can just have a session variable for that. It worked for me. Thanks
  4. Hi all, I working on something using some Apache Rewritable Rule as: RewriteRule ^video_([0-9]{1,8}).html /sitename/display.php?id=$1 Now there is a sutuation like if the user is not logged in and click on a video it will ask to register in a popup form. After submitting the form it will check for some error and will return to the same page if there is any error. the URL will be something like: http://sitename//video_1.html?x=1&message=You+must+enter+all+the+fields This is nothing but will execute a php script and if any error then will be returned as shown above. The problem is due to the rewrite rule I am not able to get the $_GET["message"] to print that in the same page. And for some reason I can not change the code the way errors are sent. Can some one please advice me with the rewritable rule which eventually solves this. Or if someone has better idea to get the $_GET["message"] Thanks for your help.
  5. Hi All, I have an XML file to read and to get all the data from the XML I have used SimpleXML read script in php but some how did not worked out. Here is the link http://i.l.cnn.net/cnn/.element/ssi/www/auto/2.0/video/xml/pipeline.xml If there is some other way with regex to read each value. Please help Thanks in advance
  6. effigy, Thanks a lot, it worked. Can you please suggest me some good tutorial or website where I can learn Regular expression. I think I am not good at al in regular expression.
  7. Hi all, I need to read some part of the website with regular expression. Here is the detail. If we visit the following link: http://eventful.com/events/jazz-dancing-love-fun-/E0-001-011459632-4 and in the above link we have something like http://slurl.com/secondlife/Sweethearts/128/165 and is diffrent for different links (the first link above) http://slurl.com/secondlife/ is common for all but Sweethearts/128/165 part will change every time. in the source code it is as: <li> <span class="faded">[Other]</span> <a href="http://slurl.com/secondlife/Sweethearts/128/165" rel="nofollow" class="click-offsite">Sweethearts (128, 165)</a> </li> Can someone please tell to how to grab the link "http://slurl.com/secondlife/Sweethearts/128/165" from the source code of http://eventful.com/events/jazz-dancing-love-fun-/E0-001-011459632-4 Thanks
  8. Hi All, I have written the script with jquery to load a known size file and on request complete calculated the time difference just as loading an image as before. Till this it works fine. Now I am getting like 6.4 mb file is getting loaded between ajax request and request complete as 0.278 secs. which means the bandwidth is 6.4/0.278 = (approx) 23mbps. Is my calculation is correct. If not please advice
  9. Thanks for the idea, I made something like this. Does this make sense? <script type="text/javascript"> var began_loading = (new Date()).getTime(); function done_loading() { new Image().src = 'images/loading_test.JPG'; var end_loading; end_loading= (((new Date()).getTime() - began_loading) / 1000); alert("395 Bytes/"+end_loading+" sec"); } </script> </head> <body onload="done_loading()"> </body>
  10. Hi All, Can some one please help me on the following: I want to have something like while any user uses my website I want to know the bandwidth of that user. Is it possible to get through PHP or Javascript. Please advice. Thanks for helping
  11. Thanks for the reply.. Yes I have json installed on the server. I just got the contents using file_get_contents(). Upto this it works fine. Next I have to get the json return value in an array so that I have all the values. I used something like: $var = json_decode($contents, true); tried to do print_r($var); but showing nothing. But is should return the array. In subsequent steps when I try to use any index saying that undefined array index.
  12. Hi, You can develop a multi language we site by: 1. Using Array for the static content 2. Using the database as well. I would prefer to have the array as it is faster and better unless you have to have the dynamic content in multi language Concept is something like : - create files like engilish.php, espanol.php etc Now the files will contain something like: english.php: $cfg["Login"] = "Login"; $cfg["First Name"] = "First Name"; espanol.php: $cfg["Login"] = "Usuario"; $cfg["First Name"] = "Nombre"; These files will contain $cfg and the key will be same for all the files but values will be different as per the language. Now while you change from language to language just keep the current language value in session and include that language file in your page. Say in login.php file you just write : echo $cfg["Login"]; where you want to echo Login. It will include as per your language selection and will add the text.
×
×
  • 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.