SitePoint Sponsor

User Tag List

Page 4 of 8 FirstFirst 12345678 LastLast
Results 76 to 100 of 184
  1. #76
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hmm 666 should do the trick. Are you sure the script isn't trying to overwrite a file in the directory?
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  2. #77
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm yep I'm quite sure because the message I got is this:

    OK I think I kind off messed up there .. wsftp didn't do my chmod correct now I did it with another Iglooftp and it worked

    Anyway Kevin.. Thanks for the help and I luv your book!!!
    Last edited by peanuts; Nov 23, 2001 at 09:33.
    the neigbours (free) WIFI makes it just a little more fun

  3. #78
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope wasn't me

    I posted a request to my host explaining the problem and they fixed (atleast thats what they say) they change it to chmod 777 but I think that is a bit of a security risk (whats you opinion??? ) SO I changed it again

    this is the error that I get.. :

    Code:
    Warning: Unable to create '/www/htdocs/site/images/upload/peanuts_1006528202.gif': Permission denied in /www/htdocs/site/webadmin/upload.php on line 29
    and line 29 is ofcourse:

    PHP Code:
        if ( is_uploaded_file($uploadedfile) && copy($uploadedfile$filename)) 
    Hope you can tell me more..

    Greets,

    Peanuts
    the neigbours (free) WIFI makes it just a little more fun

  4. #79
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Peanuts.. please do not swear! Please edit your post.
    I swear to drunk I'm not God.
    » Matt's debating is not a crime «
    Hint: Don't buy a stupid dwarf ö Clicky

  5. #80
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by weirdbeardmt
    Peanuts.. please do not swear! Please edit your post.
    oops sorry .. edited
    the neigbours (free) WIFI makes it just a little more fun

  6. #81
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What did you change it to? If you want to allow people to upload files, you must have a publically writable directory.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  7. #82
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by kyank
    What did you change it to? If you want to allow people to upload files, you must have a publically writable directory.
    I know so I changed it to 766 which I think stands for owner do all and rest only read and write.. but still the error message..

    the neigbours (free) WIFI makes it just a little more fun

  8. #83
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    766 does indeed mean:

    owner: read/write/execute
    group: read/write
    other: read/write

    Don't know what's wrong.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  9. #84
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by kyank

    Don't know what's wrong.
    Never ever thought I'd see that!
    I swear to drunk I'm not God.
    » Matt's debating is not a crime «
    Hint: Don't buy a stupid dwarf ö Clicky

  10. #85
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hmmm...

    I received my book today. I have to say I am a little disappointed. On first look it doesn't appear to be of the same quality as other £25 books might be.

    Furthermore, I opened it at Chapter 6 and was immediately presented with errors, whether grammatical or code:

    p.77 info is culled from a MySQL database. Should surely be "called"?

    p.83 3rd block of code down <intput type="text">

    I have seen similar errors to this elsewhere in the book. Did no-one give it a proper proofreading?
    I swear to drunk I'm not God.
    » Matt's debating is not a crime «
    Hint: Don't buy a stupid dwarf ö Clicky

  11. #86
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Not knowing in advance what kind of demand we could count on for the book, we elected to publish it using a Print On Demand (POD) process, which keeps the per-copy costs manageable whilst allowing us to produce copies as they are sold. Unfortunately, the tradeoff here was in the uniformity of the cover, which in some print runs looks a little washed out, while in others looks almost too vibrant. I hope that explains why the book may not have quite the same lustre as those found on store shelves.

    You're right about the typo on p.83. I'll have this fixed in the next edition of the book, and added to the errata page ASAP. Please check that page for any other errors you have found, and if they're not listed please email me about them at kevin@sitepoint.com.

    As for 'culled', the word is printed as intended; check your nearest dictionary.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  12. #87
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by kyank
    Not knowing in advance what kind of demand we could count on for the book, we elected to publish it using a Print On Demand (POD) process, which keeps the per-copy costs manageable whilst allowing us to produce copies as they are sold. Unfortunately, the tradeoff here was in the uniformity of the cover, which in some print runs looks a little washed out, while in others looks almost too vibrant. I hope that explains why the book may not have quite the same lustre as those found on store shelves.
    Fair point. Just a bit of a shame that's all .


    As for 'culled', the word is printed as intended; check your nearest dictionary.
    cull (kl)
    tr.v. culled, cull·ing, culls
    To pick out from others; select.
    To gather; collect.
    To remove rejected members or parts from (a herd, for example).
    Lol.I was thinking of it in terms of no.3 and more spcifically killing herds of animals rather than no.1. -- I have learnt something, although perhaps you can see where the confusion arose?
    I swear to drunk I'm not God.
    » Matt's debating is not a crime «
    Hint: Don't buy a stupid dwarf ö Clicky

  13. #88
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by kyank
    766 does indeed mean:

    owner: read/write/execute
    group: read/write
    other: read/write

    Don't know what's wrong.
    I spoke to a friend of mine who happens to be an absolute Linux freak (so he sais anyway) and he told me that folders have to have the execute right or you can't do anything in there and so it has to be 777 the files in the folder will get other rights pending the mask set in Linux (unlike windows where the files inherit the rights from the folder)

    So there is my answer.. just to be sure I'm going to set all files to read only once uploaded..

    Thanks for the help!!!
    the neigbours (free) WIFI makes it just a little more fun

  14. #89
    Rent A Cop Dan
    Join Date
    Jul 2001
    Location
    Madison, WI
    Posts
    799
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Kevin & Everyone else,

    I need a little bit of help and am hoping you can help.

    First I found an error on the code on p.142, it also exists in the code archive for Chapter 10.
    <title> Generating <?=$targetfilename?> </tutke>

    </tutke> should be </title> I would assume
    Has anyone been able to get the code for the generateindex.php code to work? I was getting lots of errors until I changed the permissions to 777 for index.htm and tempindex.htm and generateindex.php, I think that is wrong, what should they be at?

    But now I get the following error when I run generateindex.php
    Warning: Failed opening '/home/xxxxx/public_html/generateindex.php' for inclusion (include_path='') in Unknown on line 0
    I am out of ideas on this one, I am pretty sure I have covered everything but I am still getting no where. If you need more information let me know.

    Thanks in advance,
    Dan

  15. #90
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In php.ini, there is a directive "include_path". Check it to see if the path /home/xxxxx/public_html/ is there. It looks empty to me.

  16. #91
    Rent A Cop Dan
    Join Date
    Jul 2001
    Location
    Madison, WI
    Posts
    799
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by johnn
    In php.ini, there is a directive "include_path". Check it to see if the path /home/xxxxx/public_html/ is there. It looks empty to me.
    Well I think it is empty, since I am on a virtual hosting account. Is there a work around, or do I absolutly need it there.

    Thanks,
    Dan

  17. #92
    Non-Member
    Join Date
    Nov 2001
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good book, worth to keep one.

  18. #93
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    MissingArrow,

    Thanks for pointing out the typo. I'll have it posted in the errata list and updated in the code archive momentarily.

    As for the error you're getting, I don't think your include path has anything to do with it. On Apache servers configured with PHP defaults, trying to load a PHP script that doesn't exist produces the exact error you're seeing. Are you sure the file in question exists on your server? If so, how are you trying to run it (e.g. through your Web browser, from the command line, or as a cron task)?
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  19. #94
    Rent A Cop Dan
    Join Date
    Jul 2001
    Location
    Madison, WI
    Posts
    799
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by kyank
    As for the error you're getting, I don't think your include path has anything to do with it. On Apache servers configured with PHP defaults, trying to load a PHP script that doesn't exist produces the exact error you're seeing. Are you sure the file in question exists on your server? If so, how are you trying to run it (e.g. through your Web browser, from the command line, or as a cron task)?
    I double checked all the file names and I have them all on the server. I am running the generateindex.php from my web browser.

    Thanks for any help,
    Dan
    Dan's Site
    Some Current Sites:365 Puns! # Joke It! #
    Pride & Joy!
    Current Projects: ArcadeRat! # Scouting News # yW

  20. #95
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What are the permissions on the generateindex.php file? The fact that the error is being produced by "line 0 in Unknown" means that the Web server is simply unable to open the script file for reading.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  21. #96
    Rent A Cop Dan
    Join Date
    Jul 2001
    Location
    Madison, WI
    Posts
    799
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by kyank
    What are the permissions on the generateindex.php file? The fact that the error is being produced by "line 0 in Unknown" means that the Web server is simply unable to open the script file for reading.
    You were on the right track... I was just setting the permissions through cpanel and it wasn't actually changing them. So my permissions were wrong, but now that I have edited it through my ftp program it is working now.

    Thanks for your time,
    Dan
    Dan's Site
    Some Current Sites:365 Puns! # Joke It! #
    Pride & Joy!
    Current Projects: ArcadeRat! # Scouting News # yW

  22. #97
    SitePoint Addict mserms's Avatar
    Join Date
    Jun 2001
    Location
    Scotland
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I loved the online tutorial, so I'm in no doubt that I'll love the book. The only thing that bothers me slightly is something Chris Beasley said in his review of the book. Something like "readers of the tutorial will find that their familiarity with the book will run out at the end of chapter 10". There are only 12 chapters in the book!

    Is there enough new content in the book to warrant buying it? If there is...it's on my Christmas list :-)

  23. #98
    SitePoint Enthusiast
    Join Date
    Oct 2001
    Location
    Gold Coast
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I bought the book and the information contained inside goes a lot further than than the online stuff. I gives you a very good base to start your php development covering a lot of areas. Things like mysql managment, cookies/sessions and lots more are covered. I will probably look into buying another more advanced book but this gives me the basis i need to start developing things straight away while not getting too deep to early.

    PS kevin. What other xslt engines can we use with php 4.1.0?
    Last edited by 14zero; Dec 12, 2001 at 05:11.

  24. #99
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Is there enough new content in the book to warrant buying it? If there is...it's on my Christmas list :-)
    In addition to the two all-new chapters, you get four reference appendices that give you quick access to detailed descriptions of MySQL queries, MySQL column types, MySQL functions, and PHP functions for MySQL. These references are really, really handy to have around and I use them myself on a daily basis!
    PS kevin. What other xslt engines can we use with php 4.1.0?
    From the PHP 4.1.0 manual:
    This PHP extension provides a processor independent API to XSLT transformations. Currently this extension only supports the Sablotron library from the Ginger Alliance. Support is planned for other libraries, such as the Xalan library or the libxslt library.
    I'll be updating my PHP/XSLT article to reflect the new functions next week.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  25. #100
    SitePoint Addict mserms's Avatar
    Join Date
    Jun 2001
    Location
    Scotland
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are the non-new chapter (sessions etc) expanded a fair bit? I certainly sounds like it, I'd just like a confirmation.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •