Jump to content

libertyct

Members
  • Posts

    73
  • Joined

  • Last visited

Everything posted by libertyct

  1. I am working with the ID3_GET_TAG() func to read mp3 information from a directory. The id3 tags are returned successfully but some attributes with longer string values for example: song title, are being trimmed to just 30 characters. It does not make any sense to me why you would force to cap-off the number of characters in the song title at just 30 and I haven't been successfully in my attempts to overwrite the default 30 character limit from either the .ini file or within my code. Can you recommend a solution to get around this? see: http://ca3.php.net/manual/en/function.id3-get-tag.php
  2. Does PHP GD allow conversion of images from full color to monochrome or black/white?
  3. @Teamatomic I f a user uploaded an MP3 with higher quality example 128kbps and i wanted to drop it down to 96kbps after the file is uploaded, that would give me a smaller file to serve to users on the website. Instead of feeding a 10MB file to the swf player I could end up fetching a 6MB file, this is what I am trying to achieve.
  4. Is basic MP3 compression to smaller size possible with either PHP 5+ or Zend Framework?
  5. for anyone that might be running into the same issue I came up with a solution, you have to construct your Ajax url as follows: http://username:password@stage.domain.ca/gateway.php this will bypass the .haccess login form when your local script hits your remote script RESOLVED
  6. I have a .htaccess protected page that requires users to enter a user-name and password before viewing the page. This page is uploaded to a remote staging server. What I would like to do is be able to make Ajax requests to the page from code residing on my localhost, and as part of the call, perhaps pass the user-name and password as HTTP headers so my script will be allowed access to the protected page. I know this is possible with Flash but I would like to give it an attempt with just Ajax. Any suggestions?
  7. Im having trouble getting ht-access redirects to work on the remote server which has IIS7 installed. I usually work on my localhost with WAMP and everything works fine: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php Whats the best approach to get an .ht-access file to work on IIS7? It looks like the server totally ignores it. I looked up the PHP info and it lists _SERVER["IIS_UrlRewriteModule"] = 1 There is definitely an IIS RewriteModule installed but how do I get it to read the .ht-access? - Liberty
  8. thanks. but what i am looking for is password protection to a url and not protection based on a location. something that would still use the .htpasswd file but applied to a url
  9. is this possible by any chance? and how would you implement .htaccess protect on a url instead of a folder
  10. thnk u very much DarkWater & dropfaith works!
  11. I have simplified what i am trying to do and I setup an example below. basically im trying to figure out how to capture data posted from a Select with multiple options selected. any ideas? <form name="form" method="post" action="save.php" > <select name="categories" multiple > <option value="1" >1</option> <option value="2" selected >2</option> <option value="3" selected >3</option> </select> <input type="submit" value="submit" /> thnx!
  12. i have a script that collapses divs (jquery) and i have a div that i populate with a page that uses this script using ajax(prototype) now it works fine in IE but not in FF. i have uplaoded an example of what im talking about. http://cduncanlaw.com/dorna/collapsablediv/index(ajax).php any ideas? thnx!
  13. yup im having the same problem. it seems javascript wont work in divs populated with data from my ajax resquests ??? im using prototype btw
  14. simply cast the variable to an integer type e.g. (int)$variableName;
  15. I have done adjustments to the session lifetime before, so if a user returned to a page and thier session had died out i could redirect them to a logout page, but i want to have this automated, such that the user gets booted automatically without the user refreshing the page. maybe this is something possible on ASP.NET and not PHP?
  16. well i am looking for a way to automatically redirect to something like a error page eg after 5 mins of inactivity -> logout user -> show inactivity message!
  17. i need to setup functionality that automatically logs out a user after a certain amount of time of inactivity. how would you go about this task? I am not asking for code, just ideas, i was thinking of using a javascript timer but im not sure if that would work well on a page that uses Ajax since i wont be able to detect any page re-loads. thnx!
  18. if you need something that can freeze the page background maybe you can try this custom modal script? http://javascript.about.com/library/blmodald1.htm
  19. i agree with darkwater, first thing is deciding on what type of service u want to work with, i would recommend SOAP, based on the job postings i have seen recently.
  20. well thanks, im actually going to work with SimpleXML later too, but i wanted to get a feel of both as well.
  21. Hi, I just started working with the php XML DOM and need help getting around a simple task. i created my first xml file :-) now i know how to loop through the file and print all elements but i am not sure how to go about printing specific elements. eg how i do it if i just wanted to print the persons age in the <information> node? i have attached a piece of my working-in-progress code below:
×
×
  • 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.