Jump to content

ayok

Members
  • Posts

    340
  • Joined

  • Last visited

    Never

Everything posted by ayok

  1. Hi guys, I have a new experience today as a webdesigner. A client ask me to show the php scripts I made for his website. He doesn't understand PHP, so he will show this to his friend, which is a programmer. The reason is he wants just to check my script whethe it's good. And so far the website is working properly. Is that a common request? Thank you, ayok
  2. Hi, A short question. I've got this query $fetch = mysql_query("SELECT * FROM table LIMIT 0,3 ORDER BY date DESC")or die(mysql_error()); But then I get mysql error for the limit. I think because I order it based on the date. Could anybody tell why and how to fix this? Thank you, ayok
  3. Ok I'll do that. Thanks a lot, Daniel0. ayok
  4. Hmm.. i c.. I think I don't have access to change those. So do I have to ask the hosting to do that? Thank you for answering my questions so far. ayok
  5. But why it doesn't work as i expect?
  6. Thank you for being so patient to explain me about "former" and "latter". Uh? I think what I want is the other way around. I want detail.php?id=234 become detail/id/234. So my code is wrong? How do I change it then? My code now: RewriteRule ^detail/product/([0-9]+)/?$ detail.php?id=$1 thanks, ayok
  7. Hi Daniel0, I still don't see any effect. My .htaccess now looks like this: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule ^detail/id/(.*)/?$ detail.php?id=$1 What do you mean by former url? http://www.myweb.com/detail.php?id=234? ayok
  8. Thanks Daniel, I didn't know that there is specific forum about this. I am new with configuring .htaccess. I was looking for a solution in seo, and I find .htaccess solution. Basically what i'm going to do is to rewrite the url become seo friendly. I try this way, but end up with a problem. I don't really understand what you mean.. So I should switch it like: RewriteRule ^detail.php?id=$1?$ detail/id/(.*)/ ? ayok
  9. To how much? What 'tried to allocate 9152 bytes' means? I can upload some pictures without this error. What size limit that I can set for the user knowledge to avoid this error? I have no access to php.ini. Thanks, ayok
  10. Hi, I have an upload page for images. It can upload multiple images. However I've got problem when I upload bigger images, and getting this error Is it something to do with the memory_limit? In my phpinfo, I see memory_limit = 16MB. Any idea how I can solve this error? Thanks, ayok
  11. Hi, I'm trying to get a friendly url using the htaccess file, as followed: Options +FollowSymLinks RewriteEngine on RewriteRule ^detail/id/(.*)/ detail.php?id=$1 RewriteRule ^detail/id/(.*) detail.php?id=$1 I expect to get an url like http://www.myweb.com/detail/id/234 from the original url http://www.myweb.com/detail.php?id=234. However I've got two problem doing this experiment. First, for some server I am not able to upload .htaccess file. Even i tried to upload it as htaccess.txt. Second, I finally able to upload to other server, but it just doesn't work.. I still see http://www.myweb.com/detail.php?id=234 on url bar. Could anyone help me with this? thanks, ayok
  12. Hi thanks, Here is the code for the upload page: <? echo "<table width=500 align=center>"; echo"<form enctype='multipart/form-data' action='newpics.php' method='POST'>"; for($i=0;$i<5;$i++){ $no=$i+1; echo "<tr><td>Foto $no:</td><td> <input type='FILE' name='fupload[]'></td></tr>"; } echo "<tr><td><INPUT TYPE=submit value=Uplot></td></tr>"; echo "</form></table>"; } ?> And this is newpics.php <? $fupload = $_FILES['fupload']['tmp_name']; $fupload_name = $_FILES['fupload']['name']; $fupload_type = $_FILES['fupload']['type']; $jml_file=count($fupload); $i=0; while($i < $jml_file){ $direktori_file = "../../writable/products/$fupload_name[$i]"; move_uploaded_file($fupload[$i],"$direktori_file"); $i++; } header("location:index.php"); ?> move_uploaded_file doesn't work. It just goes to index.php with no uploaded image. But, this script are working on my localhost. ayok
  13. Hi, I have a problem with my upload script, the move_uploaded_file doesn't work. It works on other server, but in this server, where I work on now, it's just return false with no error message. Could anybody tell me what's wrong? thanks, ayok
  14. Hi, I'm looking for a way to set up the web content from the rss feed from other website. Is there any tutorial about it? Thank you, ayok
  15. perhaps you can turn the volume down like 20 or 10, so it's not that scary..
  16. Hi. Thanks. I think that's what I need. Is there any tutorial about parsing $_SERVER['REQUEST_URI']? I can't really find it on php.net. ayok
  17. How can I change the apache modul on webserver? Should I ask my hosting?
  18. Hi all, One question. I want to change a php url text, for example: www.myweb.com/gbook.php?id=blah&page=bleh, in to shorter text in order to do an SEO, like www.myweb.com/gbook.php/newpage. What function do I need? thanks, ayok
  19. Yup. it looks like old design. At least you can use photoshop to design the layout and just import it as a table.
  20. ayok

    Upload Problem

    Thanks tibberous, I've checked the root level, but i didn't find any .htaccess file.. well.. there are some folders, i haven't checked it one by one. I named my index, just simple index.html.
  21. Hi guys.. I've got a strange problem. I make a site inside a site. What I mean is I have this site www.woonmodern.nl and I make another website inside the folder /luxury/. The problem is, when I look for http://www.woonmodern.nl/luxury, I can open the webiste, but if I aim specific file like http://www.woonmodern.nl/luxury/index.html, I cannot open the file... What's happened? Has anybody had the same problem? Would you share with me how to solve it? I upload it using dreamweaver. thank you, ayok
  22. Thanks calabiyau, I think I can fix the navigation bar, but I don't know whether the content still drops. I've reduce the width of the content. Could anybody see? I don't see change on screenshot immediately.
  23. Hi, I've just made a website with CSS, and I've checked on opera, firefox and ie7. However, I saw somewhere on IE6 that this website is messed up. I just couldn't see the detail, cos I immediately shut it down. It looks failure. http://www.vanmansomtaxaties.nl Could someone check again for me on ie6? what's wrong with it? Any feedback is also welcom. Thank you, ayok
×
×
  • 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.