Php 5.2.4 or higher

Hi,
Beside the fact that FireFox crashes more often since last update, I found a website that doesn't want to open saying my FF is not up to date regarding php ??
It says: Your host needs to use PHP 5.2.4 or higher to run Joomla 1.6.
I'm not sure if it's about FF or about my ISP ?
Website I'm trying to access: http://crabe.etsmtl.ca
Thks,
Eric

Hi,
Beside the fact that FireFox crashes more often since last update, I found a website that doesn't want to open saying my FF is not up to date regarding php ??
It says: Your host needs to use PHP 5.2.4 or higher to run Joomla 1.6.
I'm not sure if it's about FF or about my ISP ?
Website I'm trying to access: http://crabe.etsmtl.ca
Thks,
Eric

Similar Messages

  • Help with Moodle on Mac OS X server - PhP issue

    I am a server newbie.  I am setting up a server on a mac for the primary purpose of running a website for my students to use.  I have a hosted site now, but the version of php they offer is not high enough to run moodle.  I want to install moodle 2.4 on my mac server (mountain lion) but it needs :PHP 5.3.3, MySQL 5.1.33 or Postgres 8.3.  I read that I should not try to update the native php (5.3.13)  any thoughts or workarounds?  I could install an earlier version of moodle, but it is no longer being supported with updates.

    First off, ensure that local DNS services are working.  If DNS is not working, then various services offered by OS X Server can be flaky.  Launch Terminal.app and issue the following diagnostic command:
    sudo changeip -checkhostname
    It's common for folks to skip DNS setup or to reference ISP DNS services, which usually gets them in trouble, and have a much larger project fixing DNS-level errors.
    OS X 10.8.4 should have php 5.3.15 and PostgreSQL 9.2.1, the versions of both appear to exceed the Moodle minimum requirements of 5.3.3 and 8.3, respectively.  To verify the php version, use the usual "<?php phpinfo() ?>" script.  For PostgreSQL, the brute-force command-line version check is "psql --version" command.
    Put another way, I'm not sure why you're considering upgrading components — which can be problematic — if you're already running OS X Server 10.8.4 as implied by the footers of your posting.
    Have a backup before starting the installation, as mistakes happen and having a backup of the whole disk means a faster recovery and an easier ability to start anew.

  • Problem with ssi and php includes

    Hello Everyone,
    I’m a little confused and I hope someone here can shed some light on my problem. I teach web design (Macromedia Studio 8) at the high school level and I’m having trouble using .php includes and server side includes on our Mac OSX 10.4 server with WebObjects 5.2.
    The Problem – Dreamweaver correctly inserts the code….
    <?php
    include ('assets/includes/header.html');
    ?>
    but when the same index.php file is uploaded to the server and then downloaded to another workstation the code is changed. The php include is removed and replaced with the actual html from the header.html file.
    Does anyone know what causes this?
    Thank you for your help.
    Todd
    www.mrbenrud.com
      Mac OS X (10.4.4)  

    If I understand your post correctly, what you are experiencing is exactly what PHP is supposed to do.
    I am guessing that you are expecting a user to be able to see the programmer's php code just as is the case with html, where one can simply see the code by control clicking the page in Safari and selecting "View Source", for example.
    However, for security reasons PHP will never allow this behavior via http 'get' functions. Imagine, a php page which includes php code that accessess a highly sensitive database and thus were to allow any client to see the exact architecture of the database. For these reasons the server is the only one able to parse through the PHP code and generates html code from it, which is sent to the client.
    Remember, PHP stands for hypertext preprocessor, that is the server processes php code before hypertext is generated and sent to the client.
    The include function is a php function and thus will not be displayed as part of the generated html.
    The only way to allow your students for example, to see the PHP code is to serve the folder containing the web site being served via another protocol such as AFP, SMB, and FTP.
    I hope this addresses your concerns.
    Best,
    Max

  • Need Help Scaling Photoshop Effect to Higher Resolution

    Hi Friends,
    Working on a cool PS web tutorial and it worked as promised. Here is the site link: http://www.photoshopessentials.com/photoshop-text/text-effects/light-burst/
    This tutorial is done at 640x480, 72 dpi.
    I want to make a larger, higher-rez version for print (t-shirt, mug, hats, on cafepress). When I tried the tutorial with PS set at 300 dpi and 15" page size, the effect did not work as shown. In particular, I had trouble with the "wind" application in steps 14-16: http://www.photoshopessentials.com/photoshop-text/text-effects/light-burst/page-5.php
    Perhaps, due to the higher rez, the wind filter did not distort the text as shown in the tutorial. It was much less pronounced. Repeated applications of "wind" did not salvage the effect.
    Can anyone help me attain this tutorial effect at higher resolution?
    Hope I've been clear enough here. Don't hesitate to ask for clarification.
    Thank you.
    SR

    Have a look in the Pages08 User Guide on page 230. You can download the Guide here
    http://support.apple.com/manuals/#iwork

  • To connect SAP B1 DI server using Webservice through PHP

    Hi Experts,
    I want  PHP to connect to SAP Business One using the DI server. using B1WS
    My configuration is:
    - SAP Business One on SQL Server
    - Apache 2
    - PHP 5
    Help will be Highly Appreciated...!
    Thanks
    Mritunjay Kumar

    Hi,
    Have a look at ,
    http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/a0915b47-ef89-2a10-91a5-b22649e5cfab
    Thank you,
    Hari

  • Real PHP project with PHP + SAP

    Hi,
    a question for the zend guys - is there ANY live customer/projects that uses SAP + PHP ?
    Thanks

    Hi,
    i'm working for a german company "http://www.uniorg.de" and we have implemented some real live projects with SAP R3 and PHP. Some of them handle a large amount of data for international companies.
    A lot of this projects are in the scope of webshops. A subset of data is imported into mysql and the web presentation layer is done with php. The realisation of the interface layer depends on the SAP System. Actually, we use SOAP Services for R4.7 Systems, but we also have an own product called "ETS Server" to use web technics like XML under SAP R2.x. We also have a PHP portal framework solution to do similar things like Enterprise Portals, but with Open Source Software.
    Sure, the same problems could be done with java (we are also experienced in java development, cause we developed one of the leading CMS Systems for IBM Lotus Domino and also special BSPs/iViews for SAP EP Domino Integration), but there are other reasons beside knowledge.
    PHP is fast and efficient cause it is compiled for every supported plattform. Java is working in a sandbox (own memory management) and this make things slow/expensive. For the same functionality you will need more server ressources or a bigger hardware. So comparing memory intensive things PHP is normally 10 times faster than java. Using XML Parsing/Processing boosts the usage of php cause java also implements the parser in java (PHP uses native parsers in C/C++).
    Beside this, you need less time to develop php programs cause you don't have to wait for the compiler and don't need a deployment everytime. Since PHP5 you also develop in an java objectoriented approach.
    If a have to make an offering for a customer, a php solution will be cheaper than the same solution in java, but there are also reasons not to use PHP:
    - You shouldn't use PHP, if you need a server plattform that is not supported by PHP (Zend).
    - Scalability for high traffic applications must be done by yourself (so do you have the needed knowhow?). Or you have to buy commercial php bundles.
    - You need a highly integrated development environment like Netweaver Developer Studio for developing WebServices.
    - You need Enterprise Services (like EJBs)
    - Money is no reason and you are a consultant
    At the moment, we mainly use php for the browser based presentation layer of web applications (especially high traffic sites). There is also no real B2C support by SAP Widgets like BSPs or WebDynpro, cause you can not force the   customer to have special web clients (supported by SAP).
    If PHP will be native integrated inside the WAS, it will be interesting to do more performance critical tasks with PHP.
    Hope that helps someone to get an idea why to use PHP.
    If you need more information, please contact me.
    Holger Schaefer

  • Premiere Pro CC 2014 Crashing and Bogging Down on Documentary Film Project

    We have been working in Premiere on this documentary film for months.
    As we reach completion it is beginning to really bog down and crash a lot.
    Equipment is
    iMac 27 inch 3.5 GHz Intel Core i7 Late 2013 Model
    Apple Cinema HD Display
    32 GB 1600 Mhz DDR3 RAM
    NVIDIA GeForce GTX 780M 4096 MB Graphics Card
    1TB internal SSD Drive
    We are running Premiere Pro CC 2014.0.1 and have remained there because we don't want to upgrade the software in the middle of the project.
    The media is all on the external drive. It's a USB 3.0 connection. There is quite a lot of footage that we are working with.
    We do have some After Effects comps that are linked in the project and we have exported the ones that are complete as QuickTimes to try to stop that from bogging us down.
    Any advice on how we can manage this crashing and freezing problem would be much appreciated.
    We don't have the cash to upgrade the computer and it has been working pretty well for us so far.
    Here are things we have done:
    Made a smaller timeline because we were working on one that was the entire movie.
    Turned off the secondary monitor and unplugged it.
    We are looking at moving the render cache off the external drive to a thunderbolt drive, but I'm concerned that this may take a long time.
    Any recommendations would be greatly appreciated.

    Splitting up the read/write items is rather a key to getting smoother operation out of PrPro. Either that or putting things on a large RAID-0/5, this sort of thing is covered over on the
    Tweaker's Page ...
    http://ppbm7.com/index.php/tweakers-page
    And I highly recommend you take a look. Their info isn't just "we think ... " ... but the results of many many carefully crafted test sequences run on many machines with all sorts of hardware bits & pieces. You can also register, download the PBM test and run it on your own machine. It takes only a little while to do so, and with the logger app that's included and posting the results back to them, you can get a very good breakdown on where your machine is doing ok ... and where any choke points are occurring.
    I think this would be good for you right now ... you need to get stuff done, not guess & try things.
    Neil

  • Setting up a New Site and Having Issues with Flash SWF's

    Hello.  I just set up a new site definition, with a testiing server using MAMP Pro, and everything seems to be functioning properly, except that my swf's are not showing up when you publish to a browser from dreamweaver, instead you get the place holder message to upgrade to the newest version of flashplayer... besides the fact that my computers flash player is up to date.  At this point in time my two other websites swf components work just fine when I publish out of dreamweaver.
    I'd also like to mention that the Live View works perfectly and is displayinig the swf's as they should be.
    Thanks!

    I copied the associated scripts over to the site folder on the testing server and I'm getting the same results.  I'm sure this is something that is really simple.  Here is the code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta name="description" content="Lorentz Painting Co.: Pristine, Precise and Professional" />
    <meta name="keywords" content="Maciej Lorenz, paint, high quality, interior, exterior, co., painting, professional, New England, Vermont, Nassachussetts, Boston, New York New Hampshire, New England" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>The Nantucket Gift Basket Company</title>
    <link href="stylesMain.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="PNGfix.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <style type="text/css">
    #hornav ul li { padding: 0 0 0 10px; }
    </style>
    <![endif]-->
    <!--[if lte IE 6]>
    <style type="text/css">
    #wrapper-body, #wrapper-1, #wrapper-2, #wrapper-3 { height: 1%; }
    </style>
    <![endif]-->
    <script type="text/javascript" src="scripts.js"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <style type="text/css">
    #apDiv1 {
        position:absolute;
        width:1844px;
        height:43px;
        z-index:1;
        left: 64px;
        top: 253px;
    body {
        background-color: #FFF;
    a:link {
        text-decoration: none;
    a:visited {
        text-decoration: none;
    a:hover {
        text-decoration: none;
    a:active {
        text-decoration: none;
    </style>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-5']);
      _gaq.push(['_setDomainName', 'none']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-6']);
      _gaq.push(['_setDomainName', 'none']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-7']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body>
    <div id="wrapper-body">
    <div id="wrapper-1">
      <div id="branding">
          <h1>
          <div>
            <p>
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="300" id="FlashID" title="The Nantucket Gift Basket Company Logo">
                <param name="movie" value="Nantucket Gift Basket Logo.swf" />
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="6.0.65.0" />
                <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                <param name="expressinstall" value="Scripts/expressInstall.swf" />
                <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="Nantucket Gift Basket Logo.swf" width="600" height="300">
                  <!--<![endif]-->
                  <param name="quality" value="high" />
                  <param name="wmode" value="opaque" />
                  <param name="swfversion" value="6.0.65.0" />
                  <param name="expressinstall" value="Scripts/expressInstall.swf" />
                  <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                  <div>
                    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                  </div>
                  <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
              </object>
            </p>
          </div></h1>
        <div>
          <p>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="50" id="FlashID2" title="The Nantucket Gift Basket Company Navigation Bar">
              <param name="movie" value="NantucketNavBar.swf" />
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
              <!--[if !IE]>-->
              <object type="application/x-shockwave-flash" data="NantucketNavBar.swf" width="500" height="50">
                <!--<![endif]-->
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="6.0.65.0" />
                <param name="expressinstall" value="Scripts/expressInstall.swf" />
                <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                <div>
                  <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                  <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                </div>
                <!--[if !IE]>-->
              </object>
              <!--<![endif]-->
            </object>
          </p>
    </div>
        <div id="wrapper-2">
          <div id="content-top" class="png"></div>
          <div id="wrapper-3">
            <div id="content-2">
              <div class="content-wrap">
                <div id="content-1">
                  <div class="content-wrap">
                    <p>Why Us?</p>
                  </div>
                </div>
                <p> </p>
                <p> </p>
                <p>Pristine, Precise, Professional is our motto at Lorentz Painting Co.  </p>
    <p>We understand how important the appearance of your home or business is to you. We know that first impressions of your home or office are critical to success in any endeavor.  With over ten years in the painting business working in both the residential and commercial sectors, you can have confidence that all of your painting needs will be done in a pristine, precise and professional manner.</p>
                <p><br />
                  To ensure a quality finished product Lorentz Painting Co uses only the industry's finest paints &amp; tools.  We guarantee superb craftsmanship on behalf of our painters, who can work with any paintable surface be it residential or commercial, interior or exterior, oil or latex!  We hope you will consider us for all of your painting needs and we look forward to providing you a high quality service.</p>
                <p> </p>
              <p>Please browse the site to learn more or send us an email using our contact form.</p></div>
            </div>
            <div id="content-bottom"></div>
          </div>
          <div id="footer">
            <p><a href="index.php" title="Lorentz Painting; Why us? We are the best and most affordable painting company in New England, MA, NH, NY, VT, CT, ME and etc.">Why us?</a> - <a href="products_services.php" title="Lorentz Painting Co.: Products &amp; Services; nothing but the finest painting products that can be found in the market., New England, VT, NH, MA, NY, CT, ME">Products &amp; Services</a> - <a href="testimonials.php" title="Feedback about the high quality and affordability of Lorentz Painting Co. Services, New England, VT, NH, MA, NY, CT">Testimonials</a> - <a href="contact.php" title="Contact Lorentz Painting Co. Today for the best painting value in New England, VT, NH, MA, NY, CT">Contact</a></p>
    <p><strong><a href="sitemap.html" title="Site Map of Lorentz Painting Co. the most professional and highest quality painting company in New England, VT, NY, NH, MA, ME, CT">Lorentz Painting Co., 2011</a></strong></p>
            <p><strong><a href="http://cwws.org" title="Common Wealth Web Solutions" target="_new">Designed by CWWS</a></strong></p>
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    swfobject.registerObject("Lorentz Painting Co.: The best value in painting in New England, NY, VT, NH, MA, ME, CT.  A professional company that produces high quality results.");
    swfobject.registerObject("Lorentz Painting Co.: The most Pristine, Precise and Professional Painting Company in New England, NY, VT, NH, MA, ME, CT.");
    swfobject.registerObject("Lorentz Painting Co.: High Quality painting at an affordable price.  Serving New England, NY, VT, NH, MA, ME, CT.");
    swfobject.registerObject("FlashID");
    swfobject.registerObject("FlashID2");
    </script>
    </body>
    </html>

  • Display sum in different currency

    Hi BI Guru's,
    I am having problem with the report I'm creating. I am using a amount in document currency as key figure. The problem is that the sum i showing * . Is there a way to show the results as below
                     100 USD  
                     200 USD  
                     200 MYR 
                     300 MYR
                     300 PHP
                     400 PHP
    Result is  300 USD
    Result is  500 USD
    Result is  700 PHP
    Any help would be highly appreciated.

    Hi Jay,
        You can keep 0CURRENCY characterstic in columns or free characteristics and drilldown when required. This will give you as subtotals. Summing up of differnt currencies will always give you *.
    Regards
    Suvarna

  • XSLT Error

    Greetings -
    I am using OAS 10.1.3 with Jdev 10.1.3. I am migrating my application from 10.1.2 to 10.1.3.
    What i am trying to do is to perform unit testing on a BPEL process.I specify the input XML and i try to run the XSLT . But i am getting this error :
    oracle.xml.xpath.XPathException: Extension function error: Class not found 'com.clickcommerce.integration.xpathfunctions.xsl.LookupFunctions'
    The namespace that is causing the whole problem is :
    xmlns:ccf="http://www.oracle.com/XSL/Transform/java/
    com.clickcommerce.integration.xpathfunctions.xsl.LookupFunctions"
    I put the jar file containing this respective class in the lib folder, jlib folder and the integration/lib folder. I closed and opened Jdev again and tried to compile.
    But still, i am getting the same error. Can anybody give any valuable suggestions to rectify this error ?
    Thanks
    Ajay

    kevin raleigh wrote:
    > However when I load my files to my server I get this
    error!
    >
    >
    MM_XSLTransform error.
    > The server could not perform the XSL transformation
    because an XSLT processor
    > for PHP could not be found. Contact your server
    administrator and ask them to
    > install an XSLT processor for PHP.
    The answer is quite simple: your hosting company doesn't
    support the PHP
    XSLT extension in PHP 4 or the XSL functions in PHP 5. The
    XSLT
    extension is not enabled by default in PHP 4, but the XSL
    functions are
    enabled by default in PHP 5.
    It's highly likely that your hosting company is still using
    PHP 4. Tell
    your hosting company that PHP 5 has been stable since June
    2004, and
    that you will move your site elsewhere if it doesn't upgrade
    to PHP 5 in
    the immediate future. Plans to drop support for PHP 4 are now
    well
    advanced. It's time to make the move.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Simulating an MDB using PL/SQL

    I have an OAQ queue and I need to trigger a piece of PL/SQL whenever a message arrives to the queue. Something similar to a Java EE MDB. I would like to know what is the best approach to do it:
    1) Create a schedule which is triggered just once. This schedule runs a job which triggers a program that consists of a PL/SQL that loops and does a read_wait_forever on the queue.
    2)Create an event based schedule which triggers a piece of PL/SQL whenever a message arrives.
    3) Something else....
    Thanks

    You might want to use the database's built in event system. It's part of the Workflow package and it triggers the Advanced Queue mechanism. (See the Workdflow and the Advanced QUeue forums.) http://www.oracle-base.com/articles/10g/SchedulerEnhancements_10gR2.php
    In 10g R2 and higher, the scheduler can register to events directly. http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/scheduse008.htm &

  • Pages not aligning correctly

    on my site the pages
    http://www.meadowlarkco.com/company.php
    http://www.meadowlarkco.com/customersnew2.php
    and
    http://www.meadowlarkco.com/carriersnew.php
    all now have a gap between the main splash image and the columns to right or left of them, could someone tell me what I need to change to have them directly next to each other again?
    Also at http://www.meadowlarkco.com/services2.php my columns are too high where they need to be directly next to the image....any help would be appreciated.

    Looks to me like your Spry Horizontal Menu text is too big for the layout.
    Use pixels for font-sizes on screen.  Points are for print.
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0px;
        list-style-type: none;
       font-size: 14px;
        cursor: default;
        width: auto;
        padding:0;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Image upload bombs

    I'm working through a book right now on PHP, MySQL, and Web
    Dev. For the most part I've been doing fine, but when I was
    creating an image upload form today, it's giving me some errors.
    Here's the url:
    http://lwrussell.com/phptesting/chapt7/upload_image.htm
    Here's my form:
    <html>
    <head>
    <title>Upload your pic to our site!</title>
    </head>
    <body>
    <form name="form1" method="post" action="check_image.php"
    enctype="multipart/form-data">
    <table border="0" cellpadding="5">
    <tr>
    <td>Image Title or Caption<br>
    <em>Example: You talkin' to me?</em></td>
    <td><input name="image_caption" type="text"
    id="item_caption" size="55"
    maxlength="255"></td>
    </tr>
    <tr>
    <td>Your Username</td>
    <td><input name="image_username" type="text"
    id="image_username" size="15"
    maxlength="255"></td>
    </tr>
    <td>Upload Image:</td>
    <td><input name="image_filename" type="file"
    id="image_filename"></td>
    </tr>
    </table>
    <br>
    <em>Acceptable image formats include: GIF, JPG/JPEG,
    and PNG.</em>
    <p align="center"><input type="submit" name="Submit"
    value="Submit">
    <input type="reset" name="Submit2" value="Clear Form">
    </p>
    </form>
    </body>
    </html>
    Here's my php code:
    <?php
    //connect to the database
    $link = mysql_connect("hostomitted", "usernameomitted",
    "passwordomitted")
    or die("Could not connect: " . mysql_error());
    mysql_select_db('moviesite', $link)
    or die(mysql_error());
    //make variables available
    $image_caption = $_POST['image_caption'];
    $image_username = $_POST['image_username'];
    $image_tempname = $_FILES['image_filename']['name'];
    $today = date("Y-m-d");
    //upload image and check for image type
    //make sure to change your path to match your images
    directory
    $ImageDir ="
    http://lwrussell.com/phptesting/chapt7/images/";
    $ImageName = $ImageDir . $image_tempname;
    if (move_uploaded_file($_FILES['image_filename']['tmp_name'],
    $ImageName)) {
    //get info about the image being uploaded
    list($width, $height, $type, $attr) =
    getimagesize($ImageName);
    switch ($type) {
    case 1:
    $ext = ".gif";
    break;
    case 2:
    $ext = ".jpg";
    break;
    case 3:
    $ext = ".png";
    break;
    default:
    echo "Sorry, but the file you uploaded was not a GIF, JPG,
    or " .
    "PNG file.<br>";
    echo "Please hit your browser's 'back' button and try
    again.";
    //insert info into image table
    $insert = "INSERT INTO images
    (image_caption, image_username, image_date)
    VALUES
    ('$image_caption', '$image_username', '$today')";
    $insertresults = mysql_query($insert)
    or die(mysql_error());
    $lastpicid = mysql_insert_id();
    $newfilename = $ImageDir . $lastpicid . $ext;
    rename($ImageName, $newfilename);
    ?>
    <html>
    <head>
    <title>Here is your pic!</title>
    </head>
    <body>
    <h1>So how does it feel to be
    famous?</h1><br><br>
    <p>Here is the picture you just uploaded to our
    servers:</p>
    <img src="images/<?php echo $lastpicid . $ext; ?>"
    align="left">
    <strong><?php echo $image_name;
    ?></strong><br>
    This image is a <?php echo $ext; ?> image.<br>
    It is <?php echo $width; ?> pixels wide
    and <?php echo $height; ?> pixels high.<br>
    It was uploaded on <?php echo $today; ?>.
    </body>
    </html>
    Thanks guys! I appreciate it.
    -Luke

    Never mind, I figured it out. The $ImageDir needed so simply
    be "images/"

  • Saving to a file

    i was wonder how (in an applet game) you could save the score that a user recieves to a file that can be read by an internet language (PHP).
    e.g. for a high scores list.
    thanks

    I know that some sites use cookies to save data, but those of course can be deleted at any time by the user. I've also people use PHP to write the score into a database, and the next time the page comes up the PHP somehow gives the applet the data (like through a param tag)

  • BO Mobile - Not referring to latest instance

    Customer wants that his users should be able to view the latest report instance of Web-I and Desk-I documents in their respective report folders when logging in through the Blackberry.
    BOE Version installed at customer's location: XI R2 SP3
    OS on BOE Server: WINDOWS 2003 SP2
    CMS Database Type and Version: ORACLE 10G
    Application Server installed: TOMCAT
    Observed Behavior:
    When user logs in to BOE XI R2 through his Blackberry and navigates to the appropriate report document folder, the option to View the Latest Instance or History of a given Desk-I or Web-I report is not available.
    I have also gone through the following documents:
    - Using BusinessObjects Mobile (XI R2)
    - What's New in BusinessObjects Mobile (XI 3.1)
    - Using BusinessObjects Mobile (XI 3.1)
    - BusinessObjects Mobile Installation and Deployment Guide (XI 3.1)
    I have not been able to locate the required options in the above mentioned XI R2 and XI 3.1 documentation. I have also suggested the following workarounds to the customer:
    a) schedule the report to "Inbox": customer did not agree to the same as in his case this would generate multiple copies of the same report based on the number of users. Customer has an installed base of 1000 users.
    b) schedule the report to "Inbox" send as shortcut: customer did not agree to the same as well because the report needs to be viewed by the senior level executives. Here these users would want to view the latest report instance from the respective report folder.
    c) refresh report on demand: customer did not agree to the same because it takes a long time to refresh the data and display the updated report and senior level executive would not be able to wait for that much time.
    I would appreciate if anybody could advise on the following:
    - any plans to add the above requirement in upcoming release of BOE?*
    - any other workarounds (excluding the OpenDoc URL option)?*
    Regards,
    Arijit Gupta

    if it is outdated, what software should i use to do data driven websites?
    Most of us manually code our database driven sites with PHP & MySqli
    PHP: Mysqli - Manual
    To simplify things a little, you could use one of the freely available PHP frameworks below:
    CodeIgniter / EllisLab
    High Performance PHP Framework for Web Development - Symfony
    Yii PHP Framework: Best for Web 2.0 Development
    Laravel - The PHP framework for web artisans.
    Frameworks will help shorten your development time but you still need to thoroughly understand code to use them.
    Nancy O.

Maybe you are looking for