Jump to content

RussellReal

Members
  • Posts

    1,773
  • Joined

  • Last visited

Everything posted by RussellReal

  1. this echo <<< _END should be echo <<<_END and inside this you should be able to do $msg: $msg2 because : isn't a valid character for a function name
  2. you can use uhm an opensource script.. google php mail generator.. or you can make your own.. its relatively easy, use $_POST or $_GET ($_POST is probably better lol) to get the data your user supplies.. and then put the data in some string to hold it all then pass it to the correct arguments of mail and viola you made your own mailer
  3. make the field a timestamp and then make the row show the current timestamp (I usually use phpmyadmin.. makes the process alot easier) then when you pull it use php's date to show the correct date from the timestamp
  4. its a typo. they meant to use '=' not '-'
  5. these are some php.ini values that you can modify to suit your needs * file_uploads * upload_max_filesize * max_input_time * memory_limit * max_execution_time * post_max_size list gathered from: http://www.radinks.com/upload/config.php
  6. <script type='text/javascript'> function changeText(){ var xx = '<?php echo $text; ?>'; document.getElementById('reply').innerHTML = xx; } </script>
  7. in php you need to play with imagecolorallocatealpha to create a transparent color, then fill it in the background, because for each image resource the background color is the FIRST color allocated.so if you allocate a transparent color you're more likely to have a transparent background.. ALSO, you need to use different copy functions to merge them imagecopymerge don't shrink the images.. just create a new images with the width/height requirements for that particular image and then merge the two..
  8. I am not exactly sure what you mean by non-smooth lines.. to me they look smooth >.> what you could probably do if you're that interested.. create the horizontal line (which appears smooth for you - whatever that means) inside 1 image resource.. and than resize/rotate it and copy it into the MAIN image
  9. sure they can take what they got and put it all into a database if they parsed just the posts I did something like this for a friend of mine a while back.. he had hired a photographer for his wedding and the photographer wouldn't give him the files but the photographer gave him photo copies and posted his wedding online in some sort of 'display' on his website.. so I created a spider so to speak so he can get his pictures fast.. he probably will do something with the data otherwise why create a spider? Unless hes just testing it.. anyway.. best of luck
  10. php evaluates then pushes your html (what you see when you go to a website) How you're approaching this is wrong.. you're looking to push the html THEN have php 'hang' and receive the data they give to you, NOW this is impossible to do.. in order for you to do t his you'd need to create the form.. and with php 'expect' data to be sent back to the same page.. with the data you can do whatever you do with the data.. but you will not push html then get a response in the same execution of php
  11. add me to MSN or AIM / RussellonMSN@hotmail.com or RussellCrevatas respectively ^^
  12. you could also do this.. if ($row = mysql_fetch_assoc($result2)) { // if it exists.. then $row holds the data for the row. }
  13. 'admin' not admin same for all the others
  14. session_id.. each time you run session_start() if the user isn't passing in his session_id to php via GET, POST, COOKIE, it will generate a new session ID.. meanwhile you're gona rely on COOKIE and other REQUEST vars just the same. You save the session_id into the database.. then you call session_id in the login process when the user sends the correct credentials.. before you call session_start() you will set up session_id($mysqlResult['sess_id']); THEN you'd call session_start().. and then your user will always use the same session.. if you do not store the id in a db.. when the user cleans his cookies or the cookie dies.. you will end up giving him a completely new session file and then any viewed post ids you stored inside the session will be lost..
  15. can you show like.. maybe like 1,000 characters from the csv file so I can write you up some function to help you with this
  16. earlier today I Was working with a table.. and messing with colspan and rowspan in ff works great but in IE8 it seems to NOT work very well.. sadly I had to use a second table inside of a td to get it to function properly.. hope this extra bit of information helps any
  17. you would need to first.. upload the data to the server.. THEN you may open a popup to a link which can point them to the uploaded content.. order of events.. for your coding user enters page -> user fills out form -> user submits form -> data gets sent.. php is working.. storing data in the database -> php finishes working -> You output some javascript to open up your popup window pointing to a link similar to "http://whatever.com/popup.php?dbEntryId=X".. then the data will appear in the popup
  18. honestly guys.. I think hes acting retarded on purpose.. so just don't reply to this post.. delete the topic.. and ban this kid..
  19. You're reading the file's contents to the browser.. which I'm assuming you're outputting the file's contents to be used in an img tag on ANOTHER page.. am I right? it seems like you have a directory attached to the filename.. but if the file is not reading to the browser than it is PROBABLY a mistake on where you stored the file.. or something You might want to send content-length but.. also I see all your updates you probably should do all that in 1 query rather than 4 if it is a .jpg it will not set the correct image type.. it will set image/jpg instead of image/jpeg
  20. second way.. globals and other methods are really outdated and lame looking to say the least
  21. this will probably be moved to phpfreelance.. not being rude or anything but it seems like more of a request than solving an error or two lol
  22. try putting an inside the <td> that doesn't get filled by any values.. and also try specifying bounds.. like width/height to the tds.. because tables aren't exactly mind readers
  23. couldn't tell you unless theres some sort of code shown.. preferably an excerpt from where the possible problems lay.
  24. its what you thought about the rand, computers aren't able to produce a random number, they get a random number in those random functions based on ticks or something or w.e something that is constantly changing so you might end up leaning towards one side way more than the other but code wise you could probably pull off a percentage chance with my method.. and 100 loops happens in a milisecond lol it will not slow your script down any. for #1.. store the session ID in the database under the user table.. like.. sess_id.. than whenever the user loses his session id cookie.. they'll have to re-login.. and when they do re-login you assign them with THAT session ID rather than a totally new one.. so your user will always get his session file back.. so you can store all your viewed post ids in his session.. under an array.. $_SESSION['viewed'] then when you're looping thru posts you just do if (!$_SESSION['viewed'][post_ID]) displayAsNewPost();
  25. sorry.. preg_replace('/<img:([^:]+?):\/img>/ei','crazy_image_function(\'$1\')',$whatever);
×
×
  • 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.