Jump to content

visualazza

Members
  • Posts

    51
  • Joined

  • Last visited

    Never

Everything posted by visualazza

  1. again not from my pc Ive tested with firefox, ie, safari, chrome and opera and nothing is wrong. The large pic is the same as the thumb pic
  2. sorry to say, but from my end, what the thumb picture is is EXACTLY the same as whats being shown on the larger image.
  3. are you saying the images get cut off on some of them. If so are you sure thats not just how they were taken
  4. I was wondering of it was possible to have a file say style.css in the root folder of a site like www.example.com/style.css and then get a subdomain called www.sub.example.com which points to www.example.com/subarea to get that file without the use of absolute paths? Sorry if its not clear.
  5. thanks for your help, it works now. I thought php got the contents of the required file like html does with css and other documents where is gets the contents and acts like that file is in the same folder as the one that is calling it. Guess not Thanks again for all your help
  6. but i dont want to duplicate header.php or functions.php header.php is in the root folder functions.php is in functions folder 1 below root
  7. problem with that is that in area1, functions.php wont be found because the included header has functions/functions.php not ../../functions/functions.php
  8. root functions functions.php areas area1 index.php (this calls header.php 2 levels higher) header.php (this calls function.php) index.php (this calls header.php from same folder)
  9. again its a problem as i need to be able to access the file from another folder lower down
  10. using document_root is a problem my localhost is fine with it but my server is weird and throughs errors saying it cannot find the file
  11. ive made a separate couple of pages and the same thing occurs temp.php <?php require("http://".$_SERVER['HTTP_HOST']."/testfunc.php"); test(); ?> testfunc.php <?php function test() { echo("The function works"); } ?>
  12. but thats the thing, i take it out and it all works as it should so
  13. ok so after doing a few (many many) checks i have found that it is the fact i am using $_SERVER['HTTP_HOST'] in the require (sorry i forgot to put that in the first post) Why is it stopping is from working?
  14. sorry but i cant post the index.php file due to the project being completly secret but other than requiring functions.php and calling notification() its all just design html. The functions.php file is (at the moment) just what i posted before but in <?php ?>
  15. index.php require("functions/functions.php"); functions.php function notification() { $error = $_GET['error']; if ($error != "") { switch($error) { case 0: $error = "Unspecified Error"; break; case 1: $error = "i equals 1"; break; case 2: $error = "i equals 1"; break; } echo("<div class='error'>$error</div>"); } }
  16. hi, im getting the error after including the functions.php file i wrote. It does include it but the data isnt being recognised from it. If i copy/paste the notification() function into index.php it works. Can someone tell me why so i can fix it?
  17. localhost that works fine, but when i upload to my server i get the error
  18. hey, i have been trying all day to get something to work that will allow me to replicate the / part of an href <a href="/images/blah.jpg"> to go from the root folder in php. i thought the easiest way to do this is to use php to get the domain address. require($_SERVER['SERVER_NAME']."/header.php"); i have gotten to this part but am still getting the error that the file doesnt exist probably because there is no http:// in front of it but i do not want to turn allow_url_includes on in the php.ini file. How can i acheive this? Thanks
  19. sorry, you misunderstand. If my url already has a get var in it but i want to add another later how would i do this? If one isnt there already then it just uses the standard ?var=string
  20. hi, im having trouble adding a get variable to a url if one already exists. eg current url = http://www.example.com/index.php?var1=something i want to be able to change this to new url = http://www.example.com/index.php?var1=something&var2=another even so i can have a few get variable there. I can add the first var through a form or link, but how would i add more through a link or through the header function? I am positivly stuck. Thanks
  21. thanks for the help, it works perfectly.
  22. hi everyone, im having some trouble with design im working on. Basically what i want to achieve is when the user hovers on an image, a semi-transparent black box pops up over the image with a description. I have tried a few ways but am now stuck for ideas. My first solution was to make it popup with javaScripts onmouseover but this wouldnt work because the popup then goes over the image so the cursor is now not over the image. Ive tried doing it the way i make some of my navigation bars with a display:none ul and li menu but again no such luck. here is a quick flash version of what i am trying to make. http://staggasaurarts.com/test.swf In the words of Jar Jar Binx "Any help here would be hot" Thanks
  23. yeah, sorry, i meant id. I think ive got it to work. Thanks ever sooo much. If ever you need help with anything with graphics such as banner or logos, video (with vfx) or any music or sounds then im your man. For all your help you can have anything you want. Thanks again
×
×
  • 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.