Jump to content

Laash

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by Laash

  1. Hi There's an awesome way to do it: http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php/ I use this script on my websites.
  2. Don't think you can use the full url with the embed tag, just the l1G7TJD6Xu0 which is the video's id on youtube. I would suggest to use youtube's new iframe code anyway.
  3. Hi Connect to the remove server with ftp_connect php functions, then read the csv file using fopen, or file_get_contents, and the upload it back to the remove server with the ftp_connect set of functions.
  4. Use this function: http://www.php.net/manual/en/function.scandir.php However, I'm not sure that it would be possible, because as you said, the user doesn't have access/read privileges to the folder.
  5. First of all, use different name and different id for every checkbox. Like this: "<input type='checkbox' name='option'"+$row[0]+"' id='checkbox'"+$row[0]+"' value='"+$row[0]"' />"; Second, put the checkbox's value in quotes, like in the above example.
  6. Apply this php code on your uploads folder: <?php chown ("$your_uploads_folder", "$server_user"); ?> server_user is usually apache, data-www, httpd or some other server user that is allowed to upload files via php. Ask your hosting company, they must know who that user is.
  7. For members, create an sql table that will contain a user's id + an image id, then select all the images for for that user that does not appear in this table. For non-members, create a cookie and fill it with an array of the images' ids, then check on every image load if the img id is located in your cookie's array of viewed images. Good luck!
  8. Have you tried to remove the @ sign?
  9. Hi You've done $checked1 as an array. In order to access an array, you have to access its nodes, like this: echo implode(",", $checked1[1]); or: echo implode(",", $checked1[0]); My suggest to you is to make the implode inside the loop
  10. Hi First of all, in PHP, you do arrays like this: $fields['Name']="$var or string"; Second, you need to send headers with your mail. Look here: http://www.w3schools.com/php/func_mail_mail.asp
  11. Hi You can use jQuery to do that in a much easier way. You will need the jquery library from here: http://docs.jquery.com/Downloading_jQuery#Current_Release And the code: <script type="text/javascript"> $(document).ready(function() { var temp=$(".description").html(); alert("description is"+temp); });
  12. Hello everyone I've build a PHP CMS with SQL Server 2008 DB, and I'm trying to put a really long long text into at textarea on my html form in the cms. The problem is, it's being cut in the middle. I've tried text, ntext, nvarchar(max), varchar(max) - and nothing works! Does anybody know how to set a db column type for a really long text? In MySQL, my usual db client, they don't have these issues... Thanks in advance, Liron
  13. Hello everyone. I'm new here and I have a question. I know about php forums like phpbb and invision power board, but I am looking for a forum which is built in tree-structure, a non-threaded one. I want messages to appear right under the other, with a little margin. Well, you get me. I couldn't find any freeware/non-freeware forum like that on Google. Can anyone please help me on that matter? Thanks a lot! Lasash.
×
×
  • 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.