1. fake 404 error redirection.

    Date: 10/04/05 (PHP Development)    Keywords: php, apache

    ok, so maybe I have this thought out incorrectly, so I am looking for some advice.

    In my apache config we have

    ErrorDocument 404 /path/to/file.php

    so that anything that receives a 404 response should get redirected...

    I have a script..

    header("HTTP/1.1 404 Not Found");
    ?>

    This sends a 404 message. I would expect it to redirect to the ErrorDocument, but it doesn't Is this what is suppose to happen? or am I missing a piece to the puzzle?

    Source: http://www.livejournal.com/community/php_dev/60484.html

  2. unit testing

    Date: 10/07/05 (PHP Community)    Keywords: php

    I don't normally do php but I am currently and need to write some unit tests. I did a search for it and found a handfull of different packages including what appears to be two different ones called phpunit. What is the most commonly used?

    Source: http://www.livejournal.com/community/php/352099.html

  3. Daniel Robbins, Founder of Gentoo works WHERE?

    Date: 10/07/05 (Computer Geeks)    Keywords: php

    I mean, I know open source developers need paying jobs, but talk about being in the belly of the beast!

    http://www.osnews.com/story.php?news_id=10838

    Source: http://www.livejournal.com/community/computergeeks/792154.html

  4. PHP anyone?

    Date: 10/07/05 (WebDesign)    Keywords: php, html

    i just started a class on PHP and i work on a mac.
    but the class is being taught on PCs.

    i'm told that PHP is already on my mac.
    i did a search for it - and it is indeed here, but i don't have a clue what to click on to start running it.
    don't really understand how to use it
    nor do i know what text editor to use to type PHP and HTML code...

    i'm a novice so any help here would be greatly appreciated!

    x-posted to '[info]'macintosh

    Source: http://www.livejournal.com/community/webdesign/991745.html

  5. includes

    Date: 10/08/05 (PHP Community)    Keywords: php

    What's the convention for using includes? That is, does one make sure all files to be included are saved as .inc files with no php open/close tags, or all files as php files, or what?

    Source: http://www.livejournal.com/community/php/352590.html

  6. Web Hosting Plans and Long-Running Processes

    Date: 10/09/05 (Web Development)    Keywords: php, web, hosting

    Maybe this is a counterpart to all the "where can I find a good web host?" questions that are continually asked around here. I don't need a web host; I run my own server. But I'm starting on developing an application that will be doing some long-duration socket communications, and the target audience includes people with the standard $9.95/month-or-cheaper kind of hosting plans.

    Do these sorts of hosts usually have anything running to automatically kill any long-running processes? I need to keep a socket connection up for anywhere from 5 to 60 minutes or so, and if the average hosting provider has a setup that auto-reaps any user's processes after 30 seconds, it's going to be a real problem.

    So, can anyone who has a standard web-hosting account tell me: what happens if you have a process that wants to run for longer than a minute or two? I don't mean a busy-loop; it won't be chowing up huge numbers of CPU cycles or driving the load rating through the roof. But it will be sitting there, holding a socket open and maintaining asynchronous communication, for a fairly long time. Does anyone know what your hosting provider would do with that?

    Also, since the development language for this is likely to be PHP: what PHP libraries does your web hosting provider include? I'm particularly interested in whether they include the --enable-sockets and/or --enable-pcntl options, and the associated Sockets and Process Control functions. (I realize the latter isn't available on Windows platforms. If your web host is on Windows, that's information I can use, too.)

    Source: http://www.livejournal.com/community/webdev/252501.html

  7. INI handling functions... They were nonexistent as far as I knew...

    Date: 10/11/05 (PHP Community)    Keywords: php, mysql, database, sql, web

    This has irked me for some time: The lack of INI handlers in PHP.

    I was moving my website around from host to host, until I settled, and needed a universal standard that I could write on and rely on that would work anywhere as I really wouldn't have a MySQL database everywhere I went. So I wrote this up after not finding a shred of a command for userlevel INI file handling. INI.Lib (Last Built Oct. 3rd, 2004)

    I hope some other people can make some use out of it as well I was able to. If you see any major errors or when you use it you can't for the life of you get past a certain bug, let me know and I will see if this one is any real difference from my current build (Apr. 3rd 2005). I may have just patched up a few commands here and there with my build that I caught in the original code and done a few optimizations. If anyone wants the current build, go ahead and drop me a line to cynagen at cynagen dot com, and I'll be more than happy to send you a copy of the current copy on my server; if enough of you report problems, I'll just repackage my current build and post that instead.

    (X-Posted on October 10th 19:54)

    Source: http://www.livejournal.com/community/php/353909.html

  8. database randomness

    Date: 10/11/05 (PHP Community)    Keywords: php, database

    I had posted a while ago (I can't even remember if it was the php community) on the best way to pick a random item out of a database. The code I was given was "ORDER BY rand() LIMIT 1", except this is not random - the percentage of times the first item is taken out of the database is very high. Does anybody have a better way?

    Source: http://www.livejournal.com/community/php/353721.html

  9. INI handling functions... They were nonexistent as far as I knew...

    Date: 10/11/05 (PHP Development)    Keywords: php, mysql, database, sql, web

    This has irked me for some time: The lack of INI handlers in PHP.

    I was moving my website around from host to host, until I settled, and needed a universal standard that I could write on and rely on that would work anywhere as I really wouldn't have a MySQL database everywhere I went. So I wrote this up after not finding a shred of a command for userlevel INI file handling. INI.Lib (Last Built Oct. 3rd, 2004)

    I hope some other people can make some use out of it as well I was able to. If you see any major errors or when you use it you can't for the life of you get past a certain bug, let me know and I will see if this one is any real difference from my current build (Apr. 3rd 2005). I may have just patched up a few commands here and there with my build that I caught in the original code and done a few optimizations. If anyone wants the current build, go ahead and drop me a line to cynagen at cynagen dot com, and I'll be more than happy to send you a copy of the current copy on my server; if enough of you report problems, I'll just repackage my current build and post that instead.

    (X-Posted on October 10th 19:54)

    Source: http://www.livejournal.com/community/php_dev/61141.html

  10. For any Mac wishers

    Date: 10/12/05 (Computer Geeks)    Keywords: php

    This will make your boring windows look like a mac...I know this is going to cause a huge amount of comments...enjoy!





    This is what my pc looks like
    also, if anyone knows about the mac beta, can they inform me about that, please and thank you.
    Download FlyakiteOSXv2.0:
    http://www.osx-e.com/files/download.php?file=71

    Source: http://www.livejournal.com/community/computergeeks/795948.html

  11. UK Web Design Volunteers wanted

    Date: 10/12/05 (Web Development)    Keywords: php, web, spam

    Hi everyone, sorry if anyone thinks this is spam, but I've signed up for a pledge at the address below looking for web designers who are willing to give up some of their time to help design websites for good causes. So whether you're a PHP guru, a graphic designer, or just good and bossing people around and getting projects done, we could use your help.

    http://www.pledgebank.com/webcharity

    Cheers,
    @<

    Source: http://www.livejournal.com/community/webdev/255254.html

  12. favorite benchmark utility?

    Date: 10/12/05 (MySQL Communtiy)    Keywords: php, mysql, sql, apache

    I'd like to hear what (if any) you all use for benchmarking.

    I'm currently doing some benchmarks for dynamic content on a php/mysql setup between Apache and LightTPD. I'm currently using "siege" but it's not working out as well as I hoped. Any application suggestions are welcome. :D


    thanks!

    Source: http://www.livejournal.com/community/mysql/70392.html

  13. GD Library

    Date: 10/13/05 (PHP Community)    Keywords: php, browser, apache

    I'm on WinXP and am trying to get the GD library to work. I got the "Fatal error: Call to undefined function: imagecreate()" message.

    From the php manual:

    On windows.

    When you get undefined function image* it means the gd library isnt being used. Check the php.ini file. Make sure the php_gd.dll isnt commented out. Restarting apache should result in the image functions working.

    The GD Library FAQ says the same thing. My extension dir is correct, and I uncomment out the required line. When I load the page in my browser I get:
    Warning

    Unknown(): (null): Unable to initialize module
    Module compiled with module API=20040412, debug=0, thread-safety=1
    PHP compiled with module API=20020419, debug=0, thread-safety=1
    These options need to match

    I can't really make sense of this, and was wondering if you guys could help.

    Source: http://www.livejournal.com/community/php/354706.html

  14. ASP help

    Date: 10/14/05 (Web Development)    Keywords: php, asp, web

    I'm trying to install a script to send an email from a form on a website. I'm primarly a PHP programmer so this would super easy to do for me normally. But the site I'm working with has to use ASP, which I don't know (the client doesn't seem to think that's an issue though). I found some mail scripts on a site or two but I get errors when I try to get them to work.

    Example 1
    Example 2

    The site is hosted with EarthLink and I can't seem to make heads or tails of their support center so that's no help. I'm not sure if there's a setting I have to change or something in order to get this email thing to work. Any ideas? I'm stumped and the deadline is looming.

    Source: http://www.livejournal.com/community/webdev/256119.html

  15. Mail() function sometimes doesn't work

    Date: 10/14/05 (PHP Community)    Keywords: php, database

    I have a form that allows users (based primarily in the former Soviet Union) to submit proposals, uploads the proposals to a database, and is then supposed to inform me when said proposal is uploaded, using PHP's mail() function. While it's always put into the database, it doesn't always send the email. I've tested as many variations as I can think to test, but I always get the confirmation email.

    I'm at my wits end to figure out why I don't always get a confirmation email. Is there anything I should be checking for or stripping or adding that would make this work more consistently?

    Source: http://www.livejournal.com/community/php/355540.html

  16. forum with email replies?

    Date: 10/15/05 (WebDesign)    Keywords: php, web

    ok folks another bit of help on this site I'm doing for a friend of mine

    he wants to have a forum which you can reply to though emails to threads/post also which post to the wbsite as well.

    I'm thinking kinda how livejournal works when you can get replies and reply though your mailbox without having to go to the actual site itself but still gets posted on the site you know?

    I've been looking at phpbb at the moment as I have used this one in the past and easy to set up. Is this one up to the job of what I have said? or is there anything else out there?

    Update:
    Looks like he basically wants to be able to read and reply to post as a mailing list thought email as well as a web forum front end for people liking the forums that are already out there

    --
    ~ B ~

    Source: http://www.livejournal.com/community/webdesign/997198.html

  17. Working with parameters in a url string

    Date: 10/16/05 (PHP Community)    Keywords: php, database, web

    One of the things I'm working on for my family's website is a photo album. It displays 15 thumbnails in a 3x5 table and then has links at the bottom to further pages (something I'll figure out later). The part with the thumbnails is what I'm trying to figure out right now. My current query pulls just the image url, the date, and the photoid from the database and prints each into a cell. I want to have the thumbnail linked so that it pulls up the full image, the date, the event, and a few other tidbits of information. The url for this new page would be photoalbum.php?id=324 or something like that and would have a new query where all information associated with that particular photoid is printed to the page. However, I've never dealt with passing parameters through a URL string before, and I haven't been able to find a good explanation of it, either online or in my books. What are the general guidelines for using the URL to pass parameters through a query?

    Source: http://www.livejournal.com/community/php/356100.html

  18. another gallery script

    Date: 10/17/05 (PHP Community)    Keywords: php, database, security

    Im having some trouble writing a thumbnail view for a gallery script ive been working on. Now I have a nice little admin section which allows you to add pictures. It even makes the thumbnails for you. The problem occurs when I want to show these thumbnails. I would like to have a table maybe something like below

    gallery title



    image 1 image 2 image 3 image 4 image 5
    image 6 image 7 image 8 image 9 image 10
    image 11 image 12 image 13 image 14 image 15
    image 16 image 17 image 18 image 19 image 20
    image 21 image 22 image 23 image 24 image 25


    page < 1 | 2 | 3 | 4 | 5 | 6 >





    Now in my database I store the filename, its title its security level (either a 1 or a 0), and its group id. Now what I would like to have is a script that shows images as above when the group id is passed into it via the url (something like index.php?group=1). The problems I have are

    a) how do I get this to display all the images that are in that group in the format I want showing their title as shown. i.e how do I get it going 5 in a line for only 5 lines for that page

    b) how do I get it to display links to the other pages. So if there were 50 image in that group it would show page 1 and 2 at the bottom and if there were 51 images it would show 1, 2 and 3 at the bottom…

    c) how do I get it to only show that image if it is either not a secure image (so secure==0) or it is a secure image (so secure==1) but that person has a session var set to true...

    ok, I know I’m asking a lot here, and I may not be very clear but this is driving me up the wall as so far I only seem to be coming up with answers that are only dealing with part of the problem, not the whole thing. If anyone has any suggestions/ideas/code/snippets etc it would all be gladly received. I am not new to this, but I haven’t been doing it very long and am so not very good at it.

    Thanks

    Source: http://www.livejournal.com/community/php/356563.html

  19. Fibonacci Series in 1-Line PHP

    Date: 10/18/05 (Java Web)    Keywords: php, programming, java

    No, I am not competing for obfuscated code context. I realized while showing it to someone that Fibonacci series can be written much more succintly using modern programming languages like php and java. Here is the php version: <?php for($current = 1, $last = 0, $i = 1;$i < = 100;$i++) echo ($current = $last + ($last [...]

    Source: http://blog.taragana.com/index.php/archive/fibonacci-series-in-1-line-php/

  20. Get Insulted - Menu: Biblical or North Korean

    Date: 10/18/05 (Java Web)    Keywords: php, java, web

    Biblical Curse Generator - Now you would never run out of juicy insults, O thou denizen of the underworld, with this javascript based curse generator. Lets also see how you can make one for your weblog. If you like modern curses better - php based random North Korean insult generator should be your staple diet, [...]

    Source: http://blog.taragana.com/index.php/archive/get-insulted-menu-biblical-or-north-korean/

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home