1. More PHP Help

    Date: 03/17/06 (PHP Development)    Keywords: php, html

    Okay, a little back story. For several years now I've had some PHP queries of story listings. I don't want them run repeatedly, so in addition to this I run a cron job with curl statements like:

    curl http://.../all-stories-num.php -o /home/.../all-stories-num.html

    This has worked beautifully, makes an HTML for each file, and I just run it nightly to account for updates during the day. However, as the site has grown, there number of PHP files has grown to 1010. So I thought I'd consolidate them into a few files passing variables in to differentiate. Then still run a cron of curl statements, except now they'd look like this:

    curl http://.../charbytitle.php?cid=80&letter=W&pageno=1 -o /home/.../ofcw.html

    Well after extensive testing, apparently this won't work, at least not the way I've done it. The curl statement doesn't handle the variables passed in.

    Does anyone have any ideas of how else I could get the same effect? i.e. one HTML for each type of query without having to maintain over a thousand PHP files? Or someway to cache the results for 24 hours if I used the PHP files directly?

    cross-posted to '[info]'php and my journal

    Source: http://community.livejournal.com/php_dev/67216.html

  2. ErrorDocuments

    Date: 03/19/06 (Apache)    Keywords: html, apache

    I have a directory called "errordocs" just beneath my DocumentRoot.

    I have a .htaccess file also just beneath my DocumentRoot.

    Here's a sample from my .htaccess:

    ErrorDocument 400 /errordocs/400.html
    ErrorDocument 401 /errordocs/401.html
    ErrorDocument 402 /errordocs/402.html
    ErrorDocument 403 /errordocs/403.html
    ErrorDocument 404 /errordocs/404.html


    When I then visit a non-existent page, I still see the default 404 message instead of my custom message.

    Any idea what's going on? I'm using Apache2 on Debian sarge.

    Source: http://community.livejournal.com/apache/31366.html

  3. Firefox?

    Date: 03/22/06 (HTML Help)    Keywords: html

    So I recently changed to Firefox, and I noticed that my Livejournal layout which I created is messed up now. It worked fine on Internet Explorer but on Firefox the black in the background (strong accent, I think) is not coming up, and neither do my scrollbar colors or the custom cursor (I have a url for one). Is Livejournal not compatible with Firefox or something? Or is there any special html codes anyone knows that people use for making Livejournal layouts with Firefox? Please help, thank you =)

    Source: http://community.livejournal.com/htmlhelp/2276347.html

  4. n00b question

    Date: 03/22/06 (PHP Community)    Keywords: php, html, web, seo

    Hi everyone,

    I have a PHP question, that I bet is pretty simple, but I only play around with the language to do a few website things.

    Recently, the webserver I am hosted on has upgraded to PHP5 and broken one of the main drivers of my website. I'm hoping you may be able to help.

    Explanation of problem: My website has an "index" table with links. When you click a link, PHP will go out, grab an HTML document, and insert that into a main table also on my index page. This is no longer working since the upgrade.

    My website is at www.erikwilson.net if you are curious. The links I am referring to are in the "Site Stuff" table.

    This all worked perfectly before the upgrade to PHP5.

    See anything that would cause this to fail in PHP5 or how I can fix it?

    ANY help would be much apprecaited.

    =========================================================================

    Example URL I'm trying to use:http://www.erikwilson.net/index.php?page=geocache

    Example Hyperlink that is calling the PHP:< a class="nav" href="index.php?page=geocache" onmouseover = "over_image('img29');" onmouseout = "off_image('img29')"> Geocaching</a>

    Actual PHP driving the page:
    <?php
    if ($page == '')
    {
    $page = "livejournal";
    $l = "?";
    }
    else
    {
    $page = "$page";
    }
    ?>

    Table the HTML will be intserted into:
    < table border="0" cellpadding="8" cellspacing="1" width="100%">
    < tr>
    < td bgcolor="ffffff">
    < ?php include("$page.shtml");?>
    < /td>
    < /tr>
    < /table>

    Source: http://community.livejournal.com/php/429552.html

  5. Introductory Post + Question

    Date: 03/22/06 (Javascript Community)    Keywords: programming, browser, html, xml, java, microsoft

    I'm writing a bit of Javascript (not quite a total newbie but gosh-darn close, though I have experience in other programming languages) to display some XML transformed by XSL. I've created the files to do this and if I use them seperately (sans Javascript), it displays just fine. And that's fine for browsers that have that capability and can handle that without issues, but I'd like to see if I couldn't increase its compatibility a bit by using (drum-roll) Javascript.

    Here's the contents of the two files. All of the info is completely made up.

    employees.xml contains:


     
      MAIL,PHONE,EMPLOYEE_NUM,MARRIED)>
     
     
     
     
     
     
     
     
    ]>

       EMPLOYEES
       
          John
          Rountree
          213-13-1512
          02-03-2006
          jr@newbieworld.com
          5556200922
          00000128
          No
       

       
          Larry
          Becker
          252-43-1321
          02-15-2003
          lb@newbieworld.com
          5556202435
          00000025
          Yes
       

       
          Alison
          Rountree
          323-54-9992
          11-07-2001
          lr@newbieworld.com
          5556204222
          00000005
          Yes
       

       
          Catrina
          Becker
          442-22-9929
          02-01-2006
          jb@newbieworld.com
          5556203432
          00000123
          Yes
       

       
          Edward
          Newbourne
          123-45-6789
          12-25-2004
          en@newbieworld.com
          5556204356
          00000075
          No
       

       
          Dana
          Newbourne
          211-53-1212
          02-03-2002
          jn@newbieworld.com
          5554350922
          00000032
          Yes
       

       
          Cassandra
          Porter
          755-42-2312
          07-25-2003
          cp@newbieworld.com
          5556201922
          00000056
          No
       

       
          Pamela
          Jackson
          232-47-7568
          04-32-2005
          pj@newbieworld.com
          5556208822
          00000110
          No
       

       
          Jess
          Tucker
          213-56-8695
          08-11-2004
          jt@newbieworld.com
          5556207882
          00000100
          No
       

       
          Kimberly
          Jones
          987-99-1232
          02-01-2006
          kj@newbieworld.com
          5556207892
          00000124
          Yes
       



    employees.xsl contains:


    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

     
     
       

    Newbie World Inc. Employees


       
       
         
         
         
         
         
         
         
         
       
       
       
       
       

         
         
         
         
         
         
         
         
       
       
       
    First NameLast NameSSNDate Of HireEmailPhoneEmployee #Married?

     

     





    And finally employees.html contains:



    Newbie Incorporated Employee Roster













    Don't be afraid to let the newbie have it. I'm trying to learn here, but I've been grinding my wheels on this one and I thought it worth asking about.

    Source: http://community.livejournal.com/javascript/97239.html

  6. DB_DataObject and OOP

    Date: 03/22/06 (PHP Community)    Keywords: php, html, database, asp, sql

    Ok - I'm going to try my best to not sound like I have no idea what I'm talking about -

    I'm trying to move more towards pure OOP practices in my PHP projects, and I've been sifting through a couple of packaged MVC frameworks and some OnLAMP tutorials on writing you're own... very cool stuff, too bad i'm only like 3 years behind...

    anyway - I use DB_DataObject primarily for my database interactions (if you don't know DB_DataObject is an object relational database tool with an automatic class generating script) - I _would_ like to be able to do some things easier/better with DB_DataObject (PK+FK JOINs in particular could be a bit more elegant) but overall it's a useful tool that cuts out a lot of SQL coding...

    So - my actual question - in the article I'm digging thru (http://www.onlamp.com/pub/a/php/2005/09/15/mvc_intro.html) the author is extending his base framework class with a framework DB class that provides the database connection (it's basically a tiny class that sets $this->db) - I'm wondering what is the best way to incorporate DB_DataObject into a solid OOP class schema

    - should I use the DataObject generated class as my base class that I extend - then what if I'm writing a class that doesn't need DB connectivity? The other thing I was thinking was to attach it to my other classes like $this->DO = new DataObject_Class but I really like having my class properties line up with my database fields (user.email = $user->email _not_ $user->DO->email); Is there something I'd be better off using the DB_DataObject (I can't bear the thought of -gasp- writing SQL anymore)

    I'm somewhat new to this OOP game so any help is appreciated

    Source: http://community.livejournal.com/php/429624.html

  7. html code for search box and login box

    Date: 03/23/06 (HTML Help)    Keywords: html, web

    Hello Iam new and I have just two simple questions. I have a search box on my html site and i can place text inside that box when I publish it to the web but it does not go anywhere. Does anyone know how I set up the html to do a simple search of the information that I have on my site. Second question I have a login user name and pasword html boxes set up on my html site as well. I can also type in words in both boxes but when I hit enter I go no where. Does anyone know how to set up the code to make the user name and pass word section work. Thanks :)

    Source: http://community.livejournal.com/htmlhelp/2277161.html

  8. stupid question -- dns?

    Date: 03/25/06 (WebDesign)    Keywords: html, hosting

    Please bear with me -- really, I should know how to do this.

    I have a hosting account, but my domains are registered elsewhere. I'm hosting three different domains on the hosting account, which works well in that I get a zillion email addresses and can have different addresses for each domain. However, the way it's set up in the hosting is so when you type in any of the three domains, you get the same page. So, if I want three different "sites" I have to either use a "choose your destination" type thing, or make a url like www.domain1.com/page.html, which doesn't really work if the user doesn't put in the page. So I know that I have other options, but I'm not sure what they are. Am I missing a step? Is this a DNS issue? My hosting has a "custom dns record" area, but I'm not sure how to use it, or if it even matters. I don't want to mask my domains, and I can't anyway because my registrar (GoDaddy) won't let me since they are actually with the hosting account.

    Thanks!

    Source: http://community.livejournal.com/webdesign/1084070.html

  9. Profile Help Question!

    Date: 03/25/06 (HTML Help)    Keywords: html

    I was wondering what kind of HTML is used when creating the border & background color for a profile, like the one featured here?

    Also, I was wondering if anybody knows what the LJ tag is to quickly enter in a LJ community. I used to know but forgot. It's really close to how you enter in an LJ user like this: [lj user="ljsnameofuser"]

    Note: Obviously replace the [ & ] with < & >

    Source: http://community.livejournal.com/htmlhelp/2277946.html

  10. Possible Design

    Date: 03/27/06 (WebDesign)    Keywords: css, html, web

    Greets all, looking for some crit and comments please. The design is pretty weird I think, but I think it needs something more. I find it very boring actually, so looking for options if possible.

    Notes: Still fixing IE 5.5 breaks and the bottom left corner aligns with content.

    Click to enlarge

    HTML

    CSS

    Thanks all.

    Cross to '[info]'graphicdesign & '[info]'webdesign.

    Source: http://community.livejournal.com/webdesign/1084502.html

  11. help..please...adding dynamic links

    Date: 03/27/06 (PHP Community)    Keywords: php, html

    Hi everyone

    I am a PHP novice. I'm the first to admit that. I've been working on this script for 2 days. I finally got it to display the table that I need. (yes, all that work to display my table - long story) but now I need to create a clickable link to take the user to a field specific page. Let me show what I mean

    LJ ate my code up so I saved it as a TXT file and put it here - http://s88513928.onlinehome.us/grumpycode.txt

    In the row with 'cust_PO' output, I need to create a link that works like this - http://www.mydomain.com/purchase.php (or HTML) that goes specifically to the page for that purchase order number ie. 5555. Help? Please? pretty please?

    Thank you in advance.

    Source: http://community.livejournal.com/php/431971.html

  12. web hosting

    Date: 03/28/06 (Computer Geeks)    Keywords: html, hosting

    http://dreamhost.com/shared/comparison.html

    was wondering if anyone had any good or bad experiences to relate to these guys, i'm looking to swap hosting to them.

    Source: http://community.livejournal.com/computergeeks/903914.html

  13. Scrolling...

    Date: 03/27/06 (Web Development)    Keywords: css, html, web

    Situation: I'm writing a webpage that will be a report. The basic structure of the report can be seen in example1.jpg of the file linked below. The request is to have the two sections I've put a red box around scroll when there is too much data in those sections. (Everthing should always fit on one page and the whole page should never scroll - at any resolution).

    I tried using an iframe and that ended miserably. It was also too complicated. So I tried CSS scrolling (using the overflow parameter). My results are seen in example2.jpg. Note that I only added the DIV to the first section, leaving the second section alone. I did this so you could see the difference. In the top section, the columns are now not aligned with their column title line. (See red arrows). I think this is because of the presence of the scrollbar.

    Problem: I need the columns to line up - whether the scroll bar is there or not. (There could be as little as 1 record in the section, in which case no scroll bar should be present.)

    Ideally, I'd like the scroll bar to appear outside of the table as seen in blue box on the second section. (That scroll bar was cut and pasted there, it's not part of the code or anything. Just an example).

    Can someone save me, please?

    You can find the files (And the HTML code) here.


    Thanks!

    D

    Source: http://community.livejournal.com/webdev/309967.html

  14. Web Developing Software

    Date: 03/28/06 (Web Development)    Keywords: html, web

    Hello,

    I'm new here, but not quite new to web design. I had my own site that I built from pure html, but unfortunately my ex discovered my password and destroyed it. I don't really want to spend another 6 months typing out all the coding for another site, so I was wondering about programs I could use for it.

    I bought FrontPage, but I'm finding it more difficult to figure out than just writing it myself. I was looking at Adobe GoLive CS2, but I really don't want to drop that kind of money on something if it's going to be as non-user friendly as FrontPage. Any opinions on GoLive or suggestions on another program that might be easy to use?

    I put up a very unimpressive attempt at a homepage with FrontPage http://www.cosplaycassie.com This is the basic layout that I'm going for, but I'd like the main text box to scroll while everything else stays put. If I could manage something a bit more fancy using a different program, that'd be great. Thanks for your advice!

    X-posted

    Source: http://community.livejournal.com/webdev/310427.html

  15. Web Developing Software

    Date: 03/28/06 (WebDesign)    Keywords: html, web

    Hello,

    I'm new here, but not quite new to web design. I had my own site that I built from pure html, but unfortunately my ex discovered my password and destroyed it. I don't really want to spend another 6 months typing out all the coding for another site, so I was wondering about programs I could use for it.

    I bought FrontPage, but I'm finding it more difficult to figure out than just writing it myself. I was looking at Adobe GoLive CS2, but I really don't want to drop that kind of money on something if it's going to be as non-user friendly as FrontPage. Any opinions on GoLive or suggestions on another program that might be easy to use?

    I put up a very unimpressive attempt at a homepage with FrontPage http://www.cosplaycassie.com This is the basic layout that I'm going for, but I'd like the main text box to scroll while everything else stays put. If I could manage something a bit more fancy using a different program, that'd be great. Thanks for your advice!

    X-posted

    Source: http://community.livejournal.com/webdesign/1086673.html

  16. Restricting Access by Banning IP Addresses?

    Date: 03/28/06 (WebDesign)    Keywords: php, html

    I have some server space on a shared server running PHP on a Unix server.

    I can set up password-protected folders using the usual .htaccess files. I can also ban by IP address from within phpBB and vBulletin so that accessing the message boards is prohibited.

    But what of blogs and other HTML pages on the site?

    I'd like to be able to have open, unrestricted access for everyone apart from those using a specific set and range of IP addresses. Is there some way of accomplishing this without requiring everyone else to somehow authenticate themselves?

    Source: http://community.livejournal.com/webdesign/1085757.html

  17. Javascript in HTML emails

    Date: 03/29/06 (Web Development)    Keywords: css, html, java

    I've been experimenting with this and have come to the general conclusion that if I can't get it to come through on my machine, it is probably a bad idea. But I thought I'd ask just in case.

    Can you send out an HTML email message and run javascript in that message? Like a little calculator script or something? Design and rollovers I can to in CSS, but I'm thinking actual interactive stuff. Probably it is possible in some way, but not a great idea to send to a list of clients that I can't control email settings, etc., right?

    Source: http://community.livejournal.com/webdev/311095.html

  18. Help w/ Dreamweaver and SSI

    Date: 03/30/06 (WebDesign)    Keywords: html, web

    First, forgive me for my noviceness at this! I'm totally new to anything related to SSI (among other things).

    I'm working on a previously composed (by somebody else)website with server side includes.
    This is my first time dealing with SSI and I have a couple of questions.

    First, I'm trying to validate the page, but I'm getting all these errors that are actually fine, because the validator isn't recognizing the code in the includes. Have I not set up my local files correctly? Or do I need them to be on an actual test server for this to work? It doesn't seem to be aknowledging that there's an include in there with more code.

    (For example, the SSI file ends with an open table which is then closed in the body of the shtml. When Dreamweaver tries to validate the shtml file, it dings the closing table tags because it doesn't see that here are actuall open table tags anywhere).

    Source: http://community.livejournal.com/webdesign/1087887.html

  19. Little insight from the experienced, please

    Date: 04/03/06 (MySQL Communtiy)    Keywords: php, mysql, html, sql

    One of my projects has recently started listing results multiple times. The persons in charge of the servers say they have not updated the MySQL server or made any changes. In some cases I can accommodate for this by adding DISTINCT to the query. But on other pages, this is not helping.

    From an email I just sent to my super':
    "There is something up with our SQL server. I just looked at the View Profile page which I know I haven't touched in months and its also showing the profile page twice. In the PHP and HTML, the content is only there once and is called only for the results of the query. For some reason the query is suddenly calling two results of one row."

    I am clueless about it. For over a year these things were working fine and only sending one result. Suddenly its sending two or more results for the same row.

    If you guys have any idea why the server behavior and query results would change, or an hints at MySQL idiosyncracies, let me know. Thanks.

    MySQL 4.1.11-Debian_4sarge2-log. PHP call used in the View Profile: $Result = mysql_db_query($host, $user, $password);

    Source: http://community.livejournal.com/mysql/91645.html

  20. Crit on Site Re-Do

    Date: 04/04/06 (WebDesign)    Keywords: html, web

    Back again folks. A few weeks back, I posted this: http://community.livejournal.com/webdesign/1084502.html. Looking for some crit and such. Since I have revisted my space, giving it a pretty extensive overhaul I guess, but keeping my color scheme.

    So, here goes with the new design. http://web.presby.edu/~jwindek/

    Not sure what I'm gonna do about the footer, I'm open to suggestions.

    Anyways, crit away please!

    P.S. Still working on IE fixes.

    Cross w/ '[info]'graphicdesign

    Source: http://community.livejournal.com/webdesign/1090938.html

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