Jump to content

DataRater

Members
  • Posts

    106
  • Joined

  • Last visited

    Never

Everything posted by DataRater

  1. I've got this working RewriteRule ^([^./]*)$ /XYZxyz.php?url=$1 [QSA,L] It is working with www.Website.com/News Tomorrow I'll see if the following works. www.Website.com/News/Today will send ---> XYZxyz.php?url=News/Today
  2. Please help me. I'm using Apache 2 and PHP 5 I want to redirect a URL straight over to a php script and take everything after the web address as a parameter to the php file. So I'm trying to do this and it doesn't work. RewriteRule ^([./]*)$ /XYZxyz.php?url=$1 [R=301,QSA,L] e.g. www.Website.com/News will send ---> XYZxyz.php?url=News another example www.Website.com/News/Today will send ---> XYZxyz.php?url=News/Today Please help me work out the ReWrite rule. Best wishes Stephen
  3. Thanks. I'm trying this downloadUrl("./DomXml.xml?n=1",true, function(data,responseCode) Stephen
  4. Chrome and Firefox on Ubuntu and XP The following code appears to be looking at the cache before downloading so it is not picking up my latest maps data. downloadUrl("./DomXml.xml",true, function(data,responseCode) How can I force it to pull the latest version in from the server? Please help. Stephen
  5. I've found this which appears to be exactly what I was looking for. http://code.google.com/apis/maps/articles/phpsqlajax.html Thanks Steve :-)
  6. Unix Server Has anyone got any suggestions regarding where the map data should be stored and access by the javascript? Steve :-)
  7. I guess this is a big question but I would like some information and comments and opinions about it. Should we initialize the CSS file if we are expecting to go multi-browser and if so how should we do it. I feel there must be an optimal way but have no idea what it is. Please discuss. Stephen
  8. Mchl, I'm using TextPad and the diff is not easy to understand. Have you any suggestions for a good diff to use? Are you thinking of using the UNIX diff? Stephen
  9. Version 5 MySQL I have a development and production database and want to know what differences there are between the two i.e. table and columns. Is there a tool I can use to do this? Preferably a free one! Stephen
  10. Haku, Much appreciated. Stephen
  11. Thanks Haku, If there is more than a screen full of content will it put it after that?
  12. I'm mulling about putting a Footer at the bottom my page and keep finding articles about a "Sticky Footer". What is it? I'd really like to know. Stephen
  13. I've fixed it. Lots of silly mistakes but having the <li>s means I need a class and not an id. Thanks a lot.
  14. This is IK on Chrome and IE 7/8 Fiirefox. Here is the example. <div id='NewsTopInsertForm'> <form action='http://www.test.com/NewsInsert' method='post'> <input name='Mode' type='hidden' value='INSERT' size='40' maxlength='40'/> <table width='100%'> <tbody> <tr> <td> <ol> <li><label for="url" >URL <span class='required'>required</span></label> <textarea class="One" id="url" name="url" rows="2" cols="60 ">http://</textarea> <font style="color:#DCDCDC;"></font> </li> <li><label for="title" >Title <span class='required'>required</span></label> <textarea class="One" id="title" name="title" rows="2" cols="60 ">Put a friendly title here</textarea> <font style="color:#DCDCDC;"></font> </li> <li><label for="description" >Description <span class='required'>required</span></label> <textarea class="One" id="description" name="description" rows="7" cols="60 ">Enter your description</textarea> <font style="color:#DCDCDC;"></font> </li> </ol> </td> </tr> <tr> <td> <div id='NewsTopInsertFormSubmit'><input type='submit' class='submit' value='Add news'/> </div> </td> </tr> </tbody> </table> </form> </div> #NewsTopInsertForm { clear : both; margin : 0px 0px 0px 0px; padding : 20px 0px 20px 0px; display : block; width : 100%; background-color : #6D97B3; } #NewsTopInsertForm ol{ border : 1px solid #FF0000; padding : 5px 5px 0px 5px; list-style : none; } #NewsTopInsertForm li{ margin : 0px 0px 0px 100px; border : 1px solid #00FF00; width : 90%; list-style : none; } #NewsTopInsertForm label{ float : left; border : 1px solid #0000FF; width : 150px; margin-right : 10px; text-align : right; } #NewsTopInsertFormSubmit{ display : block; width : 96%; padding : 5px; text-align : center; } Thanks for looking, Stephen
  15. In IE7 if the SELECT is the first item in the list then it is shifted a tad to the left It is OK in Chrome, Firefox, IE8 Any ideas? Stephen
  16. Thanks!!!
  17. I want to have one field which has a select for a continent. I then want another to be dependent on that value so it only displays fields which are in that continent. Can it be done? If it can, how? Please Help Stephen
  18. This is how you do it... $Filename='Picture.jpg'; header('Content-disposition: attachment; filename='.$Filename); header('Content-type: application/octet-stream'); readfile($MyGlobals['WatermarksDirectory'].$Filename); Stephen
  19. PHP 5 I'm currently working on downloading a file into my server from an HTML form, processing it, and automatically uploading it to the calling HTML page. This is an example of the behavior I want although this is not my site. http://images.my-addr.com/resize_jpg_online_tool-free_jpeg_resizer_for_web.php Notice how when the go button is pressed the file is resized and automatically uploaded. I need to know how to get that automatic upload to work. Stephen
  20. I think this is pretty normal. You could try having a cron job run every minute and move files to a more secure directory. Stephen
  21. The functions returns an array of values and I only ever want one of them. So I have one function instead of many.
  22. PHP 5 I want to simply access an element of array returned from a function. Assume I've got a function Function ReturnArray(){ $Array = array( 'A' => 'Fred', 'B' => 'George' ); return($Array); } I would like to access it like this $Var = ReturnArray()['A']; But it doesn't work. Any ideas? Stephen
×
×
  • 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.