Jump to content

9999

Members
  • Posts

    99
  • Joined

  • Last visited

    Never

Everything posted by 9999

  1. Oh, one last question: What is the advantage of doing this versus the traditional method?
  2. Thanks. So, when I upload a page to be displayed as http://www.mysite.com/index.php?page=2 do I upload it as "2.php"
  3. How do you name your pages like this?: www.mysite.com/?pageid=1 www.mysite.com/?pageid=2 Instead of the normal way: www.mysite.com/page1.php www.mysite.com/page2.php Also, what are the advantages/disasdvantages of this and how does this effect the way search engines view the page?
  4. Thanks. I got it now. I actually had an error in another line that was causing my problem.
  5. How would I put a custom google search script inside this if-then statement. I need to end php, insert html google code, then restart php while inside the if-then statement. This is what I have so far: <?php // some stuff here if ($count == 0) { echo "No results were found for your search, please try the google search instead:"; <!-- Search Google --> Custom google search script code goes here <!-- Search Google --> } // some more stuff here ?>
  6. ... point the src to a php script that serves the image dynamically, still with the param for the same reason. This is whtat I was refering to. Is there anyway I could point to the php script that I have or modify it so it would work for me?
  7. Ok, sorry for not responding last week, I was out of town. I have created and uploaded 365 images (one for each day of the year). I name my orginal images like this: "dec11.gif", "dec12.gif", "dec13.gif", "dec14.gif" and so on.. Then I use this php script which we can call "daily.php" to match the current date (using the "Mj" date formatting system) to the image saved that corresponds to the date. It then creates the "image3.gif" and saves it to the server. I use CRON to automatically run this script at midnight daily. Code for "daily.php" <?php $im = imagecreatefromgif("".date("Mj").".gif".""); imagegif($im,"image3.gif"); ?> I then give out the code which references "image3.gif" Image3.gif is the only image that will always change every day. With this in mind, how would I implement the suggestions you guys previously mentioned so it would work not only on regular websites but social networking sites such as myspace that don't allow JavaScript, Meta tags, or Server Side Language. Thanks.
  8. I have this code I want to give users to display on their websites or myspace pages. Its bascically some images. However, the content of one of the images changes daily even though its name will remain the same. <TABLE border=1> <TR><TD><IMG border=0 src="http://www.mysite.com/image1.gif"></TD></TR> <TR><TD><IMG border=0 src="http://www.mysite.com/image2.gif"></TD></TR> <TR><TD><IMG border=0 src="http://www.mysite.com/image3.gif"></TD></TR> <TR><TD><IMG border=0 src="http://www.mysite.com/image4.gif"></TD></TR> <TR><TD><IMG border=0 src="http://www.mysite.com/image5.gif"></TD></TR> </TABLE> Is there some simple code or script that I can include with my code to either prevent the images from caching and/or force a visitors browser to load current images? Thanks
  9. Is imagecreate the best way to do this?
  10. Maybe I should have explained everything differently. What I want to do is take the result of this php file: http://www.dailyscripturecards.com/daily.php which is literally this: Can you give me the code that would take that text output and put it in a box, thereby creating an image. Then that image needs to be saved on the server. Thanks.
  11. I guess you could say I am a newbie when it comes to php? How do I check for the errors and should I be using file_get_contents for what I'm trying to do?
  12. no, nothing is displayed when I run it
  13. OK lets try this php file: http://www.dailyscripturecards.com/daily.php I want to take the output of that file and create an image out of it and save it to the server. Does this help?
  14. OK, here is what i have. This is what I want my php output to look like: http://www.dailyscripturecards.com/daily2.php when done. Instead of outputting it like the example above in which I used a table with a black background color, I want my php file above to just output the text. Then I will take the php script with the image create and use the outputted text from daily2.php and place that inside of the black box it creates then save the whole thing to the server.
  15. I have a php file that when executed yields an output. I want to take that output and create an image out of it and save it to the server.
  16. No, it does nothing. I was wondering if there are any syntax errors and iseverything used properly.
  17. want to tke the output of php file and write image and save to server. <?php $file = file_get_contents('http://www.myfile.php'); $im = imagecreate(325, 160); $bg = imagecolorallocate($im, 0, 0, 0); $textcolor = imagecolorallocate($im, 255, 225, 255); imagestring($im, 5, 0, 0, $file, $textcolor); // write the string at the top left header("Content-type: image/gif"); // output the image imagegif($im,"new_image.gif",80); // save the image to server ?>
  18. i was wondering was there something that could be type in the address bar or the searrch bar of a search engine that would force it to search.
  19. Does anybody know how you can search a php bulletin board (powered by vbulletin) where search feature is disabled. Login is required, which is no problem, but the modereator put a silly restriction that you must hve at least 1,000 posts to search. Thanks in advance.
  20. What do I use to open/run the php file?
  21. Kinda like what fert is doing im his signature.
  22. OK, I am a newbie. What I want it to do is display the result of a php file in the box instead of text I type. What do I need to do that?
  23. I can get this to work if I manually type in some text and assign it to the $text variable. When I try to assign a file to the text variable all that is displyed is "array". Also, what would be the correct way for me to save the image as "testimage.gif"? <?php $text = file('myfile.php'); // file used for output data $im = imagecreate(325, 160); // create a 325*160 image $bg = imagecolorallocate($im, 0, 0, 0); // black background color $textcolor = imagecolorallocate($im, 255, 215, 0); // gold text color imagestring($im, 5, 0, 0, $text, $textcolor); // write the string at the top left // output the image header("Content-type: image/gif"); imagegif($im); // save the image imagegif($img,"testimage.gif",80); ?> Thanks
×
×
  • 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.