Jump to content

hix_boty

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

hix_boty's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. well .. the site looks ok .. the colours are ok .. not disturbing ... i would say too little info .. gives the impresion of a very small bussines .. so no credibility .. but dont try to fill that with fairy tales ... My only real Critique ... EXACTLY IN THE WEBDESIGN PAGE ... YOU HAVE 3 LINKS ON THE LEFT ... WICH WHEN YOU READ THE TEXT .. YOU READ THOSE TOO THINKING ITS PART OF THE TEXT BUT BAD ALLIGNEMNT SO I WOULD SAY ... THE SPACE BETWEEN THE LINKS AND THE TEXT SHOULD BE BIGGER HERE ( AND IN THE FORM PAGE EARLYER MENTIONED IN THIS THREAD ... SMALLER ) AND TRY TO MAKE SOMETHING TO MAKE THOSE LINKS LOOK DIFFERENT FROM THE TEXT ( INFO ) .. AT LEAST DIFFERENT COLOR IF NOT BUTTONS. i HOPE THIS WILL DO :)
  2. [quote]If the pictures show only after you've 'opened' them before, then you're seeing a cached version of the image from your temporary internet files. If the html generated by your script is the same as an html page that will work on the same server, I'd be very surprised. My bet is that either your php script is producing an incorrect image URL - which you can easily see by viewing the source of the generated html - or your image hosting service is blocking remote image loading.[/quote] I just copied the html generated by my script, saved it as .html, upload it on the server .. and worked. And after that .. i opened the .php script that was supposed to do the job ... worked just fine As you sayd .. and as i mentioned ... it gets the images from the cache. So my problem is that the php wont load the images from the internet. There must be a coding mistake i think ... or deep linking (hotlinking) can prevent only php? Lots of Thanks. :)
  3. [quote=Sr. Helper]As for the problem of TS, the only reason for this happening I can think of, is that the server hosting the images has some sort of 'hotlinking' protection.[/quote] The thing is that if i do a simple html like ...[code] <html> <head> <title>Pictures</title> </head> <body> <img src="http://example.com/john/january/pic01.jpg"><br> <img src="http://example.com/john/january/pic02.jpg"><br> <img src="http://example.com/john/january/pic03.jpg"><br> // .... <img src="http://example.com/john/january/pic31.jpg"><br> </body> </html> [/code] ... the pictures will work just fine and load ( or javascript ) So the problem is still in php ... it wont load my pictures into the page unless i previously opened them Something like ... I open the url: http://example.com/john/january/pic31.jpg in my browser ... i see the picture and then if i try the php code, the picture will show just fine .. otherwise ... will show just the X that tells the picture doesnt exists. And many thanks you for the correct way of ... [code]<?php // Some people prefer passing multiple parameters to echo over concatenation. echo 'This ', 'string ', 'was ', 'made ', 'with multiple parameters.', chr(10); echo 'This ' . 'string ' . 'was ' . 'made ' . 'with concatenation.' . "\n"; ?>[/code]
  4. Hey ! Let me xplain what i have then my problem. I have: - one free web hosting server on wich i keep the images (.jpg) - the images are grouped by name and month          ( Example: http://example.com/john/november/pic01.jpg   &   http://example.com/mary/october/pic05.jpg ) - another free web hosting server on wich i keep my personal site that allows php .. BUT HAS SAFE MODE ON Now i want to use a form like this to ask the user wich set of pictures he wants to see: Name: Month: On submit will transmit the info to pics.php that i want to display all the pictures on that month ... The server on wich i keep the php has safe mode enabled, so i guess wont display the image if they are from another server ? My php code looks like this: (I also tryed to make it display a message if no image exists on that month) [code]<?php $i=1; //Code here for the images from 1 to 30, in all folders are max 31 pics so ill write the code below 31 times for all the pics that may exist in that folder, so nothing to do with scan the folder. $pic31 = 'http://example.com/' . $_POST['name'] . '/' . $_POST['month'] . '/pic31.jpg'; if(file_exists($pic31))  { echo '<img src="http://example.com/', $_POST['name'], '/', $_POST['month'], '/pic31.jpg"><br>';    $i++; } else { echo "."; } //echo-ing these points i hope will look like loading :) while($i<=1)   {   echo "No picture made this month";   $i++;   } ?>[/code] So all i have to output is something like this .. [code] <html> <head> <title>Pictures</title> </head> <body> <img src="http://example.com/john/january/pic01.jpg"><br> <img src="http://example.com/john/january/pic02.jpg"><br> <img src="http://example.com/john/january/pic03.jpg"><br> // .... <img src="http://example.com/john/january/pic31.jpg"><br> </body> </html> [/code] Even without the php code above ... submit the form and I do a simple echo ... [code] <?php echo '<img src="http://example.com/', $_POST['name'], '/', $_POST['month'], '/pic31.jpg"><br>'; ?> [/code] The image wont show even thr html displays correct The image doesnt loads ... because if i click properties on that X that shows instead of picture .. i copy the link and put it in my browser .. the image will show .. next time when i submit the form ... the image will show correctly as image is in temp folder. This is very weird for me and i dont know what to do ???? Im very very new at this and ived tryed to make this work for 2 weeks, in wich i keept reading docs about php .. but didnt found any clue about a workaround. This also applies to my script ... i know i migh didnt wrote it corectly ( example: " instead of ' and things like that ) So please tell me what is not corect here and how ill have to change it. Its because the server has safe mode enabled? I also tryed on a server with safe mode off ... but still not working si my coding is not good :) If this wont work on my server with safe mode enabled .. php to javascript would be a solution? Ived tryed a little of that ... but offcourse didnt worked. Any sugestion will help. Thanks alot
×
×
  • 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.