Jump to content

zhahaman2001

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

zhahaman2001's Achievements

Member

Member (2/5)

0

Reputation

  1. Well I just upgraded to PHP 5 but now no variables will pass page to page like I use to have them do and im getting error messages that say undefined variable bla bla bla. I think this is a quick fix by changeing something in php.ini. I just dont know what to change any ideas?
  2. display_errors was off and I turned it on but it still will not display errors...
  3. ok i just installed apache 2.2 php 5 mysql 5 and when i write a php file and have any mysql commands the script like jumps right over them and ignores them this is really wierd because i have phpmyadmin installed and that is working fine with both php and mysql becuase i am reading and writeing data with it theres got to be a setting wrong somewhere in my server or something... anyone have any ideas? (if it matters this is how i set my server up) http://autoindex.sourceforge.net/forum/apache.php?id=0
  4. ok i have a page that generates some images... problem is users keep clicking off the page before its done loading and makeing all the images... is there something i can have that will indicate when the page is done loading....like text changeing on the page or something...
  5. Thanks google <?php $files_to_upload = 3; if($step == 2){ for ($i = 1; $i < ($files_to_upload + 1); ++$i) { $tmp_name = $_FILES["file"]["tmp_name"][$i]; $name = $_FILES["file"]["name"][$i]; $upload_dir = "uploads/$name"; if(move_uploaded_file($tmp_name,$upload_dir)) { print "Upload Successfull!"; }else{ print "Error and its all your fault!"; } } } print "<form method='post' enctype='multipart/form-data' name='frm' action='test.php?step=2'>"; for ($i = 1; $i < ($files_to_upload + 1); ++$i) { print "<input type='file' name='file[$i]'><br>"; } print "<input type='submit' value='Upload'>"; print "</form>"; ?>
  6. I can not get files to upload in and array!! how do i do it? Heres what i got can anyone get this code to work? <?php $files_to_upload = 3; if($step == 2){ for ($i = 1; $i < ($files_to_upload + 1); ++$i) { $file_name = $_FILES['file[$i]']['name']; $upload_dir = "uploads/$file_name"; if(move_uploaded_file($_FILES['file[$i]']['tmp_name'], $upload_dir)) { print "Upload Successfull!"; }else{ print "Error and its all your fault!"; } } } print "<form method='post' enctype='multipart/form-data' name='frm' action='test.php?step=2'>"; for ($i = 1; $i < ($files_to_upload + 1); ++$i) { print "<input type='file' name='file[$i]'><br>"; } print "<input type='submit' value='Upload'>"; print "</form>"; ?>
  7. I got custom fonts on a server lets say its http://www.server.com/font.ttf so what html code could I use to display that? like <font face='http://www.server.com/font.ttf'>The Font Looks Like This</font> how do I get that to work?
  8. i do not understand what you are trying to say....
  9. i seem to keep haveing that javascript error icon in the bottom of my browser what am i doing wrong? i am puting <script language="javascript"> function popup(){ var query_str = ""; for(i=0;i<document.formname.elements.length;i++){ query_str += document.weburl.elements(i) .name+"="+document.weburl.elements(i).value query_str += "&"; } window.open("prevew.php?"+query_str,,'width=100;height=100'); } </script> in the head right?
  10. ok I have a page that has like 50 inputs... (to create an image) so many that I want a preview button and a submit button the submit will add the info to the database like it should but the preview button will make a pop up with a new page my problem is that i need all the info sent to both pages....if they click preview i need all the inputs send to preview.php and if the user clicks submit i need all the inputs to go to generate.php how do i do this?
  11. <?php $im = imagecreate (250, 28); $black = ImageColorAllocate ($im, 0, 0, 0); $yellow = ImageColorAllocate ($im, 235, 235, 51); ImageTTFText ($im, 20, 0, 10, 20, $yellow, "/WINDOWS/Fonts/IMPACT.ttf", "IMPACT FONT HIP HIP Hurray!!!"); ImagePNG($im); ?> I got that code to work but how would I save that image to a dir like /images ?
  12. ok I need to open this file http://www.myresistance.net/ustat_jake.php?pname=CLK1841 coppy all the text and then print it in my page i tried $file = implode(file("http://www.myresistance.net/ustat_jake.php?pname=CLK1841")); but that dosnt work i get this error: Warning: file(): URL file-access is disabled in the server configuration in /home/content/z/h/a/zhahaman2001/html/zhahaman2001/index.php on line 9 Warning: file(http://www.myresistance.net/ustat_jake.php?pname=CLK1841): failed to open stream: no suitable wrapper could be found in /home/content/z/h/a/zhahaman2001/html/zhahaman2001/index.php on line 9 Warning: implode(): Argument to implode must be an array. in /home/content/z/h/a/zhahaman2001/html/zhahaman2001/index.php on line 9 so anyway to fix this? Or is there another way to get that pages data?
×
×
  • 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.