Jump to content

jeet_0077

Members
  • Posts

    50
  • Joined

  • Last visited

    Never

Everything posted by jeet_0077

  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.
  13. Hi I am trying to read the contents of the following link: $link = 'http://sports-ak.espn.go.com/broadband/espn360/upcomingEvents'; $content = file_get_contents($link); $res = json_decode($content, true); the link is returning json out put. But when I use json_decode function its not returning anything. Can you please tell me what went wrong. Or can you please suggest me what has to be done for that. Thanks
  14. Hi I am trying to read the contents of the following link: $link = 'http://sports-ak.espn.go.com/broadband/espn360/upcomingEvents'; $content = file_get_contents($link); $res = json_decode($content, true); the link is returning json out put. But when I use json_decode function its not returning anything. Can you please tell me what went wrong. Or can you please suggest me what has to be done for that. Thanks
  15. Hi I have a date on a variable as: $date = '2008-02-13 06:43:45' ;// ' Y-m-d h:i:s ' I want 30 minutes to be added with this output. Can some one help me in that;
  16. Hi Can some one help me on how to assign a javascript value to php variable. Say I have a script like this: <script> var jsVariable = 'some value'; </script> I need that value to be assigned in a php variable $phpVariable I know that I can redirect the page with the variable as : http://domain.com/pagename.php?var=jsVariable with javascript and in the page I can get this value there. But I need in the same page and I cant refresh the page as well. Please help. Thanks in Advance.
  17. Saha, Thanks for your reply. The second one worked for me.
  18. Sasa, Thanks this works fine now I have the contents in the array. Now I have the array as: [1] => buildScheduleDiv('scottcam','♫ScottKam♫','http://static.stickam.com/media/image/converted/thumb/1747/9798/9/0d87768c-cfd4-11dc-87c9-b9d39bf5edbe.jpg','165312','Aphex Studio Sessions w/ SCOTTKAM','Updates on my Music','Mon, 04 Feb 2008 21:15:00 +0000','Mon, 04 Feb 2008 23:15:00 +0000') Here if you can help me as my intention is to get each item from the array. If I store the values in a string variable and I can use string_replace() to get rid of buildScheduleDiv. But here I have one more problem as I need each value to be entered in the db. Ex: val1 = scottcam val2 = ScottKam val3 = http://static.stickam.com/media/image/converted/thumb/1747/9798/9/0d87768c-cfd4-11dc-87c9-b9d39bf5edbe.jpg','165312 and so. I can not use the explode function in the string as in the description part there may be a comma or in some other place as well. If u can figure out what would be the best thing to do. Thanks.
  19. Hi have a strange situation. I have to parse a file which is having some javascript. http://www.stickam.com/viewCategorySchedule.do?category=show/css/en/category/show/schedule.css The above is the URL from which i have to parse the contents. basically this is to get the Feeds from the site. I have done for XML and HTML but this is something different. If u see the source code of the link u can see it is having something like <script>buildScheduleDiv('scottcam','♫ScottKam♫','http://static.stickam.com/media/image/converted/thumb/1747/9798/9/0d87768c-cfd4-11dc-87c9-b9d39bf5edbe.jpg','165312','Aphex Studio Sessions w/ SCOTTKAM','Updates on my Music','Mon, 04 Feb 2008 21:15:00 +0000','Mon, 04 Feb 2008 23:15:00 +0000');</script> <script>buildScheduleDiv('millsyfm','The Lee Mills Show','http://static.stickam.com/media/image/converted/thumb/1747/5197/7/ae54e146-bf71-11dc-a6b7-cbddd6b72ad7.jpg','123373','THE LEE MILLS SHOW','Todays Best Music Mix - Music from all over the globe','Mon, 04 Feb 2008 22:00:00 +0000','Tue, 05 Feb 2008 00:00:00 +0000');</script> <script>buildScheduleDiv('faderwaveradio','Faderwave Radio','http://static.stickam.com/media/image/converted/thumb/1740/4491/1/15425039-731f-11dc-861a-2135e338a83b.jpg','110851','DJ Denis/House ','DJ Denis has been interested in DJing ever since he started listening to electronic music about 4 years ago, shortly after he became interested in what it is to be a DJ. After playing for about 3 years now, DJ Denis has come to like all forms of house and trance, and even some breakbeats. His playing history goes back to a multitude of clubs in Delhi, and soon moving to Providence he will be looking to start playing in the clubs regularly there.<br><br>','Mon, 04 Feb 2008 22:00:00 +0000','Mon, 04 Feb 2008 23:00:00 +0000');</script> I need to parse the contents available between buildScheduleDiv() so that I can enter the data in the database. If someone have any idea how to do that please help. Currently I am using file_get_contents() to get the content but unable to parse. Thanks in advance...
  20. Dooley Thanks, well I have not used those "report generation PHP open source" a lot but yes we have implemented the idea from different open source scripts to our project, as you might be knowing that client will always have different requirement and mostly it will not match with exactly the Open source script. And you need to change the code for matching the requirement.
  21. Humm that seems like a problem as the site is offering the report for trial for 30 days. So I guess that wount be very much helpful for you. You can visit here https://sourceforge.net and can search for "php report maker" You will get thousands of such report generator and of course open source. Hope that might help you.
  22. Hi there are many codes available for the report generation. But there is one which is really cool http://www.hkvstore.com/phpreportmaker/demo.asp You can vew the demo and can download the entire codes for report generation
×
×
  • 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.