Jump to content

kade119

Members
  • Posts

    64
  • Joined

  • Last visited

    Never

Everything posted by kade119

  1. no, i tried hiding them - that didn't fix it, the notices still showed.. i actually hid them in my php but it still didn't function properly but did on the other server
  2. why would the code work for one server and not another?
  3. well - there seems to still be an underlying problem other than poorly coded php i install this form http://tutorialzine.com/2009/09/fancy-contact-form/ on a godaddy server and everything runs smoothly yet when it's implemented on my server .. i get the below error i tried adding isset .. still not success
  4. i have wamp setup and currently have a few virtual host setup and working but i'm finding some PHP not working properly on my server but is on other servers, so my first assumption is that it's the php.ini file, could someone look at it for me and tell me if anything should be configured differently. The notices i'm receiving : Notice: Undefined index: sent in C:\wamp it seems to be affecting sessions that post or get appreciate any support. -file attached [attachment deleted by admin]
  5. I have a category of images that are generated in to <li> tags and after 4 <li> tags I need a new line to start so <br /> to insert after that 4th </li> could someone assist me
  6. So say i have this: <link rel="stylesheet" media="all" type="text/css" href="_css/styles.css" /> now the file that is linking to that is 3 directories deep, besides using a rel or absolute link, could i define the path by using something like this <link rel="stylesheet" href="<?php require($_SERVER['DOCUMENT_ROOT'] . "/_css/portfolio-styles.css"); ?>" type="text/css" /> but this is actually opening the CSS in the header thanks for any explanation on how to do this
  7. Besides php.net, what are some websites that you favorite for PHP?
  8. Where would be the most appropriate place to sell a well established web site?
  9. Which e-commerce application do you most of you all use? something like oscommerce?
  10. novice question: when creating a search function for a site, any page i would like searched needs to be stored in a database correct? thanks
  11. well then let's not post the answer, i could create my own site for this but i thought it might assist in driving more traffic for this forum...
  12. I'm starting this thread because there are not many actual exercises for beginners learning PHP only tutorials. So what I'm asking, is for any of the PHP coders out there to begin posting one or two exercises that might be useful to novice PHP coders to work with. Please post your exercise and the answer to it at the bottom of the your post. Thank you.
  13. Do you guys know any applications I can get for creating estimates and project management that is web based and I may host myself .. so i'm not paying a subscription? thanks so much
  14. I setup wamp and wanted to be sure i know where to put files in the correct directories. Do my php functions files go in the bin/php folder? And do just the front end files go in the htdocs or do all files go in htdocs directory? thanks all
  15. i noticed that some editors let you auto pair such as Komodo when you type one "(" the other is automatically paired, does anyone know how to customize this feature and any other editors that provide this function?
  16. which editor do you prefer when coding in PHP?
  17. so if i forget to add the title var on a specific page it will use the default title, is that correct? could you show me how to set it up to use DB functionality? thanks man!!
  18. I have my header file set as an include, so each page at the moment uses the same description and page title. How could I use PHP to make the meta information dynamic?
  19. Let me tell you what i'm trying to accomplish: I want a way to play a flash mp3 player that will not start over each time a new page loads, so i thought i could have php includes swap each time i click on a new menu item that way my page doesn't refresh... would this be an appropriate way of achieve this? please know im new to PHP and found the below script --Thanks <? if ($_GET['part'] == 'page1.php') include('page1.php'); elseif ($_GET['part'] == 'page2.php') include('page2.php'); elseif ($_GET['part'] == 'page3.php') include('page3.php'); ?> [code=php:0] <a href="index.php?part=page1.php">Page 1</a> <a href="index.php?part=page2.php">Page 2</a> <a href="index.php?part=page3.php">Page 3</a> [/code]
  20. any ideas? really appreciate any assistance
  21. i've tested this line and do not think it's acquiring the image based on the file name $banner = substr($_SERVER['REQUEST_URI'], 1, (strlen($_SERVER['REQUEST_URI']))-3).'jpg';
  22. need assistance in complete this function, not sure if i'm implementing it correctly this echo, can it be written like that? echo "<img src='../graphics/$banner' />"; <?php function is_homepage() { return in_array(basename($_SERVER['REQUEST_URI']), array('', 'index.php', 'index.html', '/')); } $banner = substr($_SERVER['REQUEST_URI'], 1, (strlen($_SERVER['REQUEST_URI']))-3).'jpg'; $flash= '<script type="text/javascript"> var params = { wmode: "transparent" }; swfobject.embedSWF("_flash/banner.swf", "fpBanner", "620", "250", "9.0.0", "expressInstall.swf"); </script>'; if (is_homepage()) { echo $flash; } else { echo "<img src='../graphics/$banner' />"; } ?> and this is on my page include... <?php print is_homepage($banner) ?>
  23. this look better? <?php function is_homepage() { return in_array(basename($_SERVER['REQUEST_URI']), array('', 'index.php', 'index.html', '/')); } $banner = substr($_SERVER['REQUEST_URI'], 1, (strlen($_SERVER['REQUEST_URI']))-3).'jpg'; $flash= '<script type="text/javascript"> var params = { wmode: "transparent" }; swfobject.embedSWF("_flash/banner_lecdg.swf", "fpBanner", "950", "300", "9.0.0", "expressInstall.swf"); </script>'; if (is_homepage()) { echo $flash; } else { echo "<img src=\"$banner\" />"; } ?>
  24. $banner = substr($_SERVER['REQUEST_URI'], 1, (strlen($_SERVER['REQUEST_URI']))-3).'jpg'; what does the "1" define? does that mean pull one string?
×
×
  • 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.