Ññûëêè: Pretty russian women. Russian brides women.
  1. Simple things can be hard. :(

    Date: 03/13/09     Keywords: browser, css, html

    Hello everyone.

    I've posted here before but now I'm looking for advice on css/html. I know it's somewhat off-topic.. but /shrug, I've spent all day at work kicking myself over this.

    So I have this page I need to develop. I'm pretty pro at css/html but for some reason, my life hates me today and it's either breaking in firefox or IE.

    This is what I'm getting in my browsers:
    Firefox 3.0.7
    IE 7

    IE 7's screenshot is what I want. Firefox is just being way off. But anyways, I was wondering if anyone had any tips on how I can get this to work in both browsers.

    Just for your reference, here is the my code:
    http://binarychick.net/hostedfiles/ent-cal/source.txt

    Help is appreciated. Thanks in advance.

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

  2. Free website magazine

    Date: 03/11/09     Keywords: web

    Free website magazine TO QUALIFY FOR A FREE SUBSCRIPTION, YOU (or your company) MUST HAVE AN ACTIVE WEB SITE.

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

  3. php driven image gallery - help needed

    Date: 03/10/09     Keywords: php, mysql, database, sql, web

    (x-posted to '[info]'php_dev)

    Hey guys,

    I'm coding an image gallery to use on my PHP site and need a bit of help with a couple of features I want to code into it. I was hoping someone here could either give me some pointers or send me to a website that will help with either explainations or code snippets :)

    1. Firstly, thumbnails. I have created an admin panel where I upload the images and can set various things like the category, title etc, and all that is stored in a MySql database, and the file uploaded to a general directory. But i'd also like to create a thumbnail of the image as it uploads. I've found several scripts that make thumbnails from images already in a directory, but i'd like it to happen as I upload the image. Is that possible? Without having to use some all-in-one image gallery script heh. I'd also need it to resize the image proportionally so that images aren't just squashed into a 100x100 square shape.

    2. Secondly, I'd like to "tag" images like with LJ entries, so that on the front end when a picture is being viewed, the list of tags is shown and can be clicked on to show other image thumbnails with the same tag. But i'm not really sure how to go about this... I was just going to have a table field called img_tags and store them all in that per image, but then is that efficient? searching for matches within a db field? any tips or suggestions?

    3. oh and as an extra thought, how can i then take those tags and make a tag cloud maybe?

    All and any help would be most appreciated! :)

    paul
    x

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

  4. When to seperate tables?

    Date: 03/02/09     Keywords: no keywords

    I currently store
          User Info
          Passwords
          Group associations
    All in the same table

    Should I be storing them separately?

    I was thinking about this as I considered allowing user to change their passwords.  My train of thought was that it might be more secure to keep it all separate in this instance.

    ?

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

  5. Using XAMPP on Vista

    Date: 03/01/09     Keywords: security, apache

    Hi dear all,

    Sorry for bothering you.  I am using Windows Vista. I cant seem to start the Apache service.
    Does anyone know what might be causing it? I have a feeling, it may be some security issue.

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

  6. Help?

    Date: 02/23/09     Keywords: web

    Anyone want to help me with my code?
    It doesn't seem to be centering my layout properly.

    I want it aligned in the center no matter how I open or size the page. center left to right, and top and bottom.


    if anyone can help me, let me know.

    my email is krzenet@gmail.com

    my website is krze.net

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

  7. [tagging system | mysql statements] search for multiple tags

    Date: 02/13/09     Keywords: no keywords

    Hello,

    I've hit a snag with my tagging system. I can find items tagged with tag x, but I can't find items tagged with tag x and tag y.

    My tagging system is set up like this: entries, tags, entry_tags. The entry_tags joins tags with the specified entry.

    In this way, each tag has its own row... so it's tag 1 to entry 1 is separate to tag 2 to entry 1 (as opposed to tag 1 and tag 2 to entry 1).

    What I'm trying to do is select an entry with two or more tags attached to it. So, I guess I'm looking for something like:

    tag 1 to entry 1
    tag 2 to entry 1
    tag 1 to entry 2

    ... and selecting entry 1 when searching for tag 1 and tag 2. Not entry 2.

    Unfortunately, I can't seem to find an appropriate string for it. I've tried using FIND_IN_SET() and IN() but they're displaying all entries with any of the tags submitted, and not ... all of them. I've also tried using lots of ANDs but that doesn't work either.

    I'm not sure what else to try? I thought this would have been rather straightforward. :P

    Thanks for any help. :)

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

  8. Tracking User Downloads (previously posted php_mysql)

    Date: 02/11/09     Keywords: php, mysql, sql

    I’m using PHP and MySQL to create a dynamic page that delivers files to users based on group settings.

    The user is given a variety of files to download, based on their unique settings.
    I want to track what files the user selects to download.

    For the life of me…I can’t figure out how to do that without creating a button for each file.
    (The button triggers an entry into the appropriate table and starts the download.)

    Is there a more elegant solution??
    (I’d rather do it within a hyperlink)

    Appreciate any help!

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

  9. Create thumbnail of any doc

    Date: 02/04/09     Keywords: no keywords

    Has anyone run across a class to create thumbnails from any document (of course, including images)?

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

  10. Internationalization

    Date: 02/04/09     Keywords: no keywords

    Following '[info]'rtimmons's advice, I've been trying out gettext() for a few days. It's pretty awesome. I also figured out the dilemna in my last post:

    echo vsprintf(gettext("This is a %sstring%s!"), array('',''));

    It works pretty well.

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

  11. Internationalization / Smarty

    Date: 01/29/09     Keywords: php, html, web

    I posted this in '[info]'webdev a couple days back, but I haven't gotten any replies! Maybe you wonderful people from '[info]'php can help me. I'm working on making a website multilingual and I'm running into a tricky problem.

    The people who set up this website used Smarty, so I'm continuing to work with it. I've got the language detection code down. Pages are grouped into sections and the text for each section is stored in a config file that Smarty can read. Each page knows which section it belongs to so it knows what section of the language file to load (thus, it ignores the rest).

    The problem I'm running into is inter-paragraph links. For example:
    Lots of text with a link to another location.
    Pre-this-I18N push, the template files simply had {$rootPath}somewhere.php stored in them, with $rootPath containing the appropriate path. However, Smarty variables can't be used inside language config files like this. In general I'm unhappy about having HTML inside these files, but it's difficult not to when, for example, you only have parts of a sentence bolded. My only choice seems to be to split this into preLinkText, linkText, and postLinkText variables, but that's exceedingly kludgy.

    Have any of you worked on internationalization projects and come across this? What would you recommend to solve this issue?

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

  12. Help out a !server guy

    Date: 01/28/09     Keywords: php, web, google

    I'm not really a server type, I admit this. I have a friend who's in to all that thing, I'm more the problem solver and coder type. However he knows jack all about this stuff and Google is perplexingly repetative so I will ask here;

    Is it possible to use an extension (in this case PDFLib) to a Unix server without having access to the /ext folder or php.ini file?

    I ask this because the webhost for a guy I'm doing some construction for indicated that we could install libraries as we wanted to but I'm not seeing a lot on the FTP front for me to work with, and the Control Panel is retarded beyond belief.

    Any thoughts on what the hell they could be on about, because my limited knowledge of these matters tells me that whomever my employer talked to was quite clueless in their answer.

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

  13. RSS feeds.

    Date: 01/27/09     Keywords: rss, web

    Anyone have a good suggestion for open source/free code that will let me pull RSS feeds into a web page (in this case it is a cheap quick option to pull in news items the client posts to a Wordpress blog). Preferably code that will cache the feed locally in some manner and update it using cron, so as to minimize the response-time impact of a live feed.

    Suggestions?

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

  14. Listing alphabetically omitting "the" or "a"

    Date: 01/23/09     Keywords: php, mysql, sql

    I'm pretty sure there's a term for my title ("Listing alphabetically omitting "the" or "a"") but I'm not sure what it is.

    But that is essentially what I need...

    I use MySQL to store entries with titles. In the PHP I can populate an alphabetical list, but I'd like to go a step up and try and omit the "the" and "a" etc. So something called: "A Pen" would appear under P.

    How would I do this?

    Am I correct in thinking this will require lots of brain power? :P

    Thanks!

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

  15. Sessions

    Date: 01/17/09     Keywords: browser

    Hi Guys!

    Another one of my dumb questions! This time, it's about sessions.

    What's the best way to make a session reset itself when you hit the refresh button?


      if (!session_start())
      {
        session_start();
        header("Cache-control: private");
        $_SESSION['num'] = 0;
        $i = $_SESSION['num'];
        echo $i;
      }
      else
      {
        $i = $_SESSION['num'];
        echo $i;
      }
      
      if (!$i)
        $i = 0;
    

    (please ignore the echo's. They're what I've been using to track what the numbers are while I make this project)

    Right now, that's what I've got controlling my session for this particular thing. What happens is the value in $_SESSION['num'] increases every time the "add another item" link is clicked. A new set of fields pops up at the bottom of the form and it's filloutable. When you don't have any more things to add, you hit the submit button.

    But say I end up refreshing the page halfway through because I want to restart? Then the number doesn't reset back to 0.

    What's the best way to reset it back to zero on refresh or on the reloading of a page (without closing the browser)

    Thanks!


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

  16. Form Security

    Date: 01/15/09     Keywords: php, security, web

    Anyone have any advice for form security? I've been trying to use the advice from this page, but it doesn't seem to be working... Specifically, what happens is I get the error page and then the email shows up anyways...

    if (ereg( "[\r\n\\r\\n]", $lastname ) || ereg( "[\r\n\\r\\n]", $email ) ||ereg( "[\r\n\\r\\n]", $firstname )||empty($email) || empty($firstname) ||empty($lastname) || empty($zipcode) ) {header( "Location: error.php" );}
    else {mail( "blah@blah.com", "Website Form Request",$message, "From: $email" );header( "Location: thankyou.php" );}

    I added the \\n and \\r because that was what was displaying when I'd test with a \n in the fields. This is my first time working with a form, so I'm sure I have a lot to learn...

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

  17. Problems installing PHP on IIS

    Date: 01/15/09     Keywords: php, mysql, asp, sql

    Hello all!

    I hope it is a right community for my question.

    I have to setup a new MediaWiki site using IIS.


    The server does not have PHP and MySQL installed, so I must install it first.

    The step 1 was to install PHP.
    I've done it as described here:

    http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/

    In this description the file php-cgi.exe is mentioned.

    But I've got only the file php.exe after installation.

    What could be my mistake?

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

  18. php Form Help?

    Date: 01/14/09     Keywords: php, html, web

    Hi, all. I'm trying to do my first form and am having trouble getting any of the fields to show up in the email. What I get is an email with from: "email address" subject="Website Form Request" and that's it, nothing in the content field at all. Here's what I have:

    HTML:
    <form method="post" action="sendmail.php">
    First Name:
    <input name="firstname" type="text"><br>
    Last Name:
    <input name="lastname" type="text"><br>
    Company: <input
    name="company" type="text"><BR>
    Email: <input name="email"
    type="text"><br> Phone:
    <input name="phone" type="text"><br>
    Address 1:
    <input name="address1" type="text"><br>
    Address 2:
    <input name="address2" type="text"><br>
    City: <input
    name="city" type="text"><br>
    State: <input name="state"
    type="text"><br> Zip
    Code: <input name="zipcode"
    type="text"><br> Comments:
    <br> <textarea
    name="message" rows="15" cols="40">
    </textarea><br>
    <input type="submit"> </form>

    php:
    <?php $firstname
    = $_REQUEST['firstname'];
    $lastname = $_REQUEST['lastname'];
    $company =
    $_REQUEST['company']; $email
    = $_REQUEST['email'] ;
    $phone =
    $_REQUEST['phone']; $address1
    = $_REQUEST['address1'];
    $address2 = $_REQUEST['address2'];
    $city =
    $_REQUEST['city']; $state
    = $_REQUEST['state'];
    $zipcode = $_REQUEST['zipcode'];
    $comments =
    $_REQUEST['comments']; mail(
    "taniahharrison@gmail.com", "Website Form
    Request",
    $message, "From:
    $email" );
    header( "Location: thankyou.php"
    ); ?>

    [EDIT: Fixed. Thanks!]

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

  19. setting session timeout

    Date: 01/13/09     Keywords: no keywords

    Hey guys,
    I'm undertaking a mammoth task in relation to my skill set, so my apologies if i end up posting on here a lot from now on ;)

    I am just playing about with sessions for logging in to my new site, and wanted to cover any cases of a user not logging off yet leaving the site. Currently I just have a session_start() at the top of each page, and if I leave the site, then come back to it, it keeps me logged in. But how long will that last for?

    If i use:
    session_set_cookie_params(1200);

    Would that keep a user logged in for 20 minutes regardless of whether they were active, or will it go from when they leave the site, or stop navigating? I'm really not sure of how this side of the session works :/ Ideally i'd want the session to time out after 20mins of leaving the site.

    cheers!

    paul.

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

  20. Juli's dumb question of the day

    Date: 01/12/09     Keywords: mysql, database, sql

    Hi everyone! Time for another one of my dumb questions!

    The short version: Why do my try/catch blocks not seem to catch properly?



    I'm using MySQL to update a recipe database I'm creating (and have been creating for just about forever. It's one of those projects that you can only pick up in your very limited spare time) and just for grins, I wanted to test and see if the try/catch blocks I set up to catch MySQL errors in host connection, database connection, and query running worked.

    So I changed the password to see if they would work. Let me tell you, it was a big pile of fail and MySQL errors.

    In theory, if the connection to the host is unsuccessful, it should say "Problem connecting to the host" and give the info stored in mysql_error(). But it doesn't. It just plugs along and fails like the try/catch blocks weren't even there. And I'm not quite sure why.

    So, what have I done to Eff up my Try/catch blocks?

    Example code...

    public function create_recipe()
    {
      try
      {
        $create_connect = $this->_db_connect();
        try
        {
          $this->recipe_id = $this->_set_id($create_connect, "recipes");
    
          //Selects the database from the server.
          $db_select = mysql_select_db("recipes", $create_connect);
          try
          {
            //Query to create the recipe in the database.
            $query = "INSERT INTO recipes ";
            $query .= "VALUES(" . $this->recipe_id . ", '" . 
                      $this->recipe_info["recipeName"] . "', ";
            $query .= "'" . $this->recipe_info["numServings"] . "', '" . 
                      $this->recipe_info["prepTime"] . "', ";
            $query .= "'" . $this->recipe_info["cookTime"] . "', NULL, '" . 
                      $this->recipe_info["origAuthor"] . "', ";
            $query .= "'" . $this->recipe_info["origLocation"] . "', '" . 
                      $this->recipe_info["notes"] . "', NULL);";
            //Timestamp is automatically created in the database upon insert.
            
            //Runs $query on the database.  Stops the script if there is an error.
            $result = mysql_query($query, $create_connect);
            mysql_close($create_connect);
          } //end try $eee
          catch (Exception $eee)
          {
            echo "Problem running the query. " . mysql_error($create_connect);
            echo "

    "; mysql_close($create_connect); } //end catch $eee } //end try $ee catch (Exception $ee) { //Verifies that the database/table connection was successful. If not, it kills the //application. echo "Problem selecting the table. " . mysql_error($create_connect); echo "

    "; mysql_close($create_connect); } //end catch $ee } //end try $e catch (Exception $e) { //Verifies that the connection to the host was successful. If not, it kills the //application. echo "Problem connecting to the host. " . mysql_error(); echo "

    "; } //end catch $e } //end create_recipe() private function _db_connect() { $hostname = "********"; $username = "********"; $password = "********"; return mysql_connect($hostname, $username, $password); } //end db_connect()

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

  ||  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