OT: sitemap generator php

Hello, sorry about OT, I need to use a sitemap generator (php) in the administrative back-end when a user create a new page or modify the links, someone can suggest me one of the best by experience ?

Well, the answer to your question depends a great deal on your site. What CMS are you using?  If its Joomla, Druple or Wordpress there are a number of good plug ins for each of these. If your site is something you developed your not likely to find something "off the shelf" that will work because it depends so much on your database structure. In this case you may try one of the link generators that crawl your online site pages and generates your site map based on a browser's point of view.
Lawrence Cramer - *Adobe Community Professional*
http://www.Cartweaver.com
Shopping Cart for Adobe Dreamweaver
available in PHP, ColdFusion, and ASP
Stay updated - http://blog.cartweaver.com

Similar Messages

  • Sitemap generator(s) aren't working correctly (I think)

    Hello,
    I followed the lengthy link yesterday that started out as "meta and Google-ing" which then morphed somehow into "best sitemap generator." Following suggestions from Varkgirl, James Tseng and others, I got registered and verified by Google. Thank you for that. It went smoothly and quickly.
    I also followed the forum discussions about creating a Sitemap and, based on the recommendations, I tried two of them. First I tried http://www.sitemap.com/Default.aspx recommended by Varkgirl on 11/21/06. It seemed to work fine and downloaded a html page on my desktop in a matter of seconds. I dragged that onto Fetch and "Put" it to the server (ftp-dom.earthlink.net - with whom I have my primary email service. Getting a new website up on Earthlink was, happily, very easy.)
    What I got back from SitemapDoc SEEMED incomplete - just the Home page was shown. I fiddled with ""edit existing map" and nothing happened that I could see. (I'm open to the idea that it's me, not the software.) I dragged the icon from the Fetch webdocs window in to the trash.
    Then I tried another website generator that had been recommended by Rebecca as the super dooper one - xml-sitemaps.com. I did that because of her high praise and, also, because of a comment James Tseng has made in a 11/02.06 response to Tormance saying "...the sitemap.xml file. (Emphasis on the ".xml" file - thinking that maybe that xml was better.)
    While I've read the definitions of html and xml ,I don't know the difference except that they are both markup languages for websites.
    The xml-sitemaps.com sitemap page - downloaded to my desktop - showed the correct total number of web pages - 11. I should say that I chose to download the sitemap to the desktop and not to use iDisk. Perhaps that's part of the problem that ensued. I grabbed the sitemap.xml icon on the desktop and dropped it on to the Fetch webdocs page/window and clicked "Put." Fetch started to upload and all seemed to be fine. Initially I recognized page names, artwork names, Haiku lines from the new website. I got very nervous when it was still uploading after 25 minutes and I saw, among dozens of other files and folders, "Acobat Reader 5.0 sitz as Stuffit X Archive" (nothing on the website I created used compressed material), "Reader .pdf binary data," SVGA GMG carbon raster lib.sitx as Stuffit X archive," and, most scary, the beginning download of a file titled "passwords...." It looked to me as though it was uploading my entire hard drive - like something from a great 60s or early 70s movie, "Collosus the Forbin Project." I stop the Put at that point and trashed the sitemap.xml file.
    Your suggestions are most welcome and appreciated.
    John
    PowerMac G4 and MacBook Pro   Mac OS X (10.4.9)   MacBook Pro laptop 2.16 GHz, 2 GB 667 MHz DDR2 SDRAM, G4 runs OS 9.2.2 & 10.4.9

    Related to my original question (below),
    Is there a technical reason - other than the practical reasons of backup and storage - to use iDisk to house my website? I currently have it in a desktop folder. In my original post I asked if not storing the website on iDisk might be part of the problem in not being able to create a sitemap.
    Thanks.
    Hello,
    I followed the lengthy link yesterday that started
    out as "meta and Google-ing" which then morphed
    somehow into "best sitemap generator." Following
    suggestions from Varkgirl, James Tseng and others, I
    got registered and verified by Google. Thank you for
    that. It went smoothly and quickly.
    I also followed the forum discussions about creating
    a Sitemap and, based on the recommendations, I tried
    two of them. First I tried
    http://www.sitemap.com/Default.aspx recommended by
    Varkgirl on 11/21/06. It seemed to work fine and
    downloaded a html page on my desktop in a matter of
    seconds. I dragged that onto Fetch and "Put" it to
    the server (ftp-dom.earthlink.net - with whom I have
    my primary email service. Getting a new website up on
    Earthlink was, happily, very easy.)
    What I got back from SitemapDoc SEEMED incomplete -
    just the Home page was shown. I fiddled with ""edit
    existing map" and nothing happened that I could see.
    (I'm open to the idea that it's me, not the
    software.) I dragged the icon from the Fetch webdocs
    window in to the trash.
    Then I tried another website generator that had been
    recommended by Rebecca as the super dooper one -
    xml-sitemaps.com. I did that because of her high
    praise and, also, because of a comment James Tseng
    has made in a 11/02.06 response to Tormance saying
    "...the sitemap.xml file. (Emphasis on the ".xml"
    file - thinking that maybe that xml was better.)
    While I've read the definitions of html and xml ,I
    don't know the difference except that they are both
    markup languages for websites.
    The xml-sitemaps.com sitemap page - downloaded to my
    desktop - showed the correct total number of web
    pages - 11. I should say that I chose to download the
    sitemap to the desktop and not to use iDisk. Perhaps
    that's part of the problem that ensued. I grabbed the
    sitemap.xml icon on the desktop and dropped it on to
    the Fetch webdocs page/window and clicked "Put."
    Fetch started to upload and all seemed to be fine.
    Initially I recognized page names, artwork names,
    Haiku lines from the new website. I got very nervous
    when it was still uploading after 25 minutes and I
    saw, among dozens of other files and folders, "Acobat
    Reader 5.0 sitz as Stuffit X Archive" (nothing on the
    website I created used compressed material), "Reader
    .pdf binary data," SVGA GMG carbon raster lib.sitx as
    Stuffit X archive," and, most scary, the beginning
    download of a file titled "passwords...." It looked
    to me as though it was uploading my entire hard drive
    - like something from a great 60s or early 70s movie,
    "Collosus the Forbin Project." I stop the Put at that
    point and trashed the sitemap.xml file.
    Your suggestions are most welcome and appreciated.
    John
    PowerMac G4 and MacBook Pro   Mac OS X (10.4.9)  
    MacBook Pro laptop 2.16 GHz, 2 GB 667 MHz DDR2 SDRAM,
    G4 runs OS 9.2.2 & 10.4.9

  • Google Sitemap Generator "Error"

    Hi,
    When I click the ""Create Sitemap" button in the Google Sitemap Generator, 4 pages appear as correct; complete with title & description/keyword info.
    However, one page ("The Music...") appears with an ERROR indication stating:
    Ambiguous Redirect. Link at http://www.music4yourevent.com/About%20Me.html
    It says that there is no description for this page (though I have edited it identically to the other pages using TextEdit).
    ...and the box for this page is automatically unchecked
    I have no idea what to do about this (or if it is even important).
    Any advice?!
    Thanks! Wm
    iMac G5   Mac OS X (10.4.7)   Logic Pro 7, MOTU 828, Kurzweil... iLife '06

    Hi Max,
    That seems to have solved all problems! (I changed it to "The Music" in iWeb.)
    Thanks!

  • Cannot add a row to a database using generated PHP - possible bug?

    Sorry if this is the wrong forum, but it seems to straddle a few different technologies.
    First, I followed this tutorial to generate PHP scripts for access to the databases:
    http://directormx2.com/devnet/flex/articles/flashbuilder4_introspector_php.html
    Next, I tried to add a button to add a row to the table. Here's my event handler, which seems to have no effect - even after restarting my program.
    protected function buttonAdd_clickHandler(event:MouseEvent):void
    var user:User = new User();
    user.ID = 1000;
    user.FIRST_NAME = "Test";
    user.LAST_NAME = "User";
    user.DISPLAY_NAME = "hey you";
    user.COMPANY_ID = "2";
    user.LOGIN_ID = "100";
    user.LOGIN_PASSWORD = "xxx";
    user.DEPARTMENT = "dept";
    userService.createUser(user);
    I discovered that if I right-clicked on Data/Services > UserService > createUser(item: User) : int, I could select "Test Operation..." and call the service function manually. I selected the "..." under Enter Value, entered the following data into the dialog, and verified that it was added to my database.
    ID:200,
    FIRST_NAME:"test",
    LAST_NAME:"hey",
    DISPLAY_NAME:"hey",
    COMPANY_ID:2,
    LOGIN_ID:100,
    LOGIN_PASSWORD:"xx",
    DEPARTMENT:"xxx"
    What's weird to me here is that COMPANY_ID and LOGIN_ID are strings, not integers, and yet if I use quotes on these fields the data is rejected (the OK button is not available). I can't assign ints to user.COMPANY_ID or user.LOGIN_ID in my MXML code, since these are declared as strings. Maybe this has nothing to do with the problem, but it seems suspicious to me.
    Any help would be greatly appreciated! If it's not blindindly obvious from my post, I'm not a PHP programmer, but am trying to build the simplest of RIAs. Thank you.

    SOLVED.
    The answer is: When I took the server out of the pool to use it for another project, I configured my SAN to remove the LUNs that were shared between my Oracle VM servers. After reinstalling Oracle VM on that server, I failed to present the LUNs to it again. After fixing that, the server rejoined the pool with no problem.

  • Alternative software to A1 Sitemap Generator for iOS

    Hi,
    I'm trying to find a alternative software to A1 Sitemap Generator for iOS. Does anyone have a suggestion? or maybe a way to install the A1 on iOS?
    Thanks!

    Hi,
    I'm trying to find a alternative software to A1 Sitemap Generator for iOS. Does anyone have a suggestion? or maybe a way to install the A1 on iOS?
    Thanks!

  • Sitemap Generator

    Hello There,
    Can anyone recommend an easy to use sitemap generator that's free?
    Also, do you have any tips on how to generate sitemaps for addon domains, of which I have quite a few?  The answer to this might become apparent once I have a generator.  But I'm in over my head here, so I figured I'd ask.
    Thanks,
    CS

    You can use Google's open-source code project: http://code.google.com/p/googlesitemapgenerator/
    You can also use XML-Sitemaps which is quite effective: http://www.xml-sitemaps.com/
    Add-on domains are considered different from primary domain and should have completely exclusive robots.txt and sitemaps altogether.
    To clarify your doubt, if you run your main site through the sitemap generator, it will only generate a sitemap for that. For example, if you have www.crellin.com and www.sound.crellin.com or www.crellin1.com which is an add-on domain of crellin.com, generating a sitemap for crellin.com will not generate any associated sitemaps for crellin1 or sound.crellin.com. You have to do this separately and also have an exclusive robots.txt placed in the root directory of these associated domains.
    -ST

  • RFC connection failed - When using code created by "GENERATE PHP" button

    Hi All,
    I can use the saprfc_test.php to login, call a BAPI and return data from SAP. But on the same BAPI screen if I click the generate php button and copy the new .php file into my /htdocs/saprfc folder and execute it the browser it returns with "RFC connection failed"
    I am totally stuck, please can anybody help?
    Rob.

    I needed to specify "MSHOST"=>"",    Its strange that this was not neccessary for interactive scripts but the problem is solved

  • Sitemap Generator only for storeSiteUS in CRS

    Hi, as for the Sitemap Generator ver.3.1.1, what number should we specify to generate data only for Store US ? We have set Value ID of storeSIteUS for <ROOT_QUERY> tag, which is the Dimension Value of CRS, however, data of storeSiteDE is also generated.
    We have checked CRS.dimensions.xml under /usr/local/endeca/apps/CRS/data/forge_output to check the correspondence between Dimension value and value id, and checked the dimensionValue of product.siteIdm and set the value id of storeSiteUs, and set it.
    Could you tell us what is the correct value to be set on N in <ROOT_QUERY> ?
    We have checked following guide but not clear about what id should be set:
    http://docs.oracle.com/cd/E39203_01/SMG.311/pdf/SitemapGenGuide.pdf
    http://docs.oracle.com/cd/E38682_01/MDEX.640/pdf/BasicDevGuide.pdf
    http://docs.oracle.com/cd/E35648_01/SEO.21x/pdf/URLOptimizationAPINET.pdf
    Thanks,
    Yuki

    Can you please elaborate on this
    We have set Value ID of storeSIteUS for <ROOT_QUERY> tag, which is the Dimension Value of CRS, however, data of storeSiteDE is also generated. For the defaultUrlENEQuery you have to replace N=0 with the N-id of the dimension that separates your US data from DE data.
    <property name="defaultUrlENEQuery">
    <value>N=0</value>
    </property>
    Pankaj.

  • Trouble executing "some" auto generated php remote services...?

    Hi,
    I was using the flash builder 4 premium trial with the 4.0 sdk, recently I bought the CS5 web premium suite. It includes flash builder 4.0.1 standard with 4.1 sdk.
    1. create a new flex project (as in the welcome tutorial)
    2. create a sample PHP service using my db infos (let it install Zend_AMF for me)
    3. place a datagrid in the desing mode,
    4. drop the the "getAll()" method on it
    5. tweek some columns,
    6. it works, I see the service call and answer with service capture (an external AMF service monitor).
    the 2 problems that appear now (which were not existing in the 4.0 trial version I had)
    1) add a new item
    protected var newItem:dbItem;
    protected function addBtn_clickHandler(event:MouseEvent):void
    newItem = new dbItem();
    newItem.attribute = 'someValue';
    this.addDbItem(newItem:dbItem);
    protected function addDbItem(item:dbItem:void
    createDbItemResult.token = dbItemService.createDbItem(item);
    <s:Button label="new item" id="addBtn" click="addBtn_clickHandler(event)"/>
    When I click the button, absolutely NOTHING happens, no error, no service call, nothing at all.
    2) refresh the datagrid's dataprovider
    I followed the tutorial on how to bind an ArrayCollection to the dataGrid instead of binding it to "service.lastresult"
    populate the ArrayCollection with the service result handler with event.result as ArrayCollection... everything works like before. whe the datagrid is created, it calls the "dataGrid_creationCompleteHandler".
    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
    this.getAllDbItem();
    protected function refreshBtn_clickHandler(event:MouseEvent):void
    this.getAllDbItem();
    protected function getAllDbItemResult_resultHandler(event:ResultEvent):void
    DbItems = event.result as ArrayCollection;
    <s:Button label="refresh" id="refreshBtn" click="refreshBtn_clickHandler(event)"/>
    this works!, the refresh button also works, BUT... it only refreshes item which have not bee edited within the app... if I change some item value with a form, (still using skills from the tutorial) :
    - the data in the datagrid ARE UPDATED.
    - the service.update(item) method DOES NOT EXECUTE (like the create above)
    - if I update the DB manualy, ONLY the NON UPDATED rows refresh...
    Any idea?
    Thank you! I'm stuck here for hours and hours now :-(
    the full MXML code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:moniteurservice="services.moniteurservice.*" xmlns:valueObjects="valueObjects.*">
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    protected var moniteurs:ArrayCollection = new ArrayCollection();
    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
    getAllMoniteurResult.token = moniteurService.getAllMoniteur();
    protected function button_clickHandler(event:MouseEvent):void
    moniteur.statut = statutTextInput.text;
    moniteur.nom = nomTextInput.text;
    moniteur.prenom = prenomTextInput.text;
    moniteur.tel = telTextInput.text;
    moniteur.mobile = mobileTextInput.text;
    moniteur.email = emailTextInput.text;
    moniteur.adresse = adresseTextInput.text;
    moniteur.npa = npaTextInput.text;
    moniteur.lieu = lieuTextInput.text;
    moniteur.pays = paysTextInput.text;
    this.updateMoniteur(moniteur);
    protected function updateMoniteur(item:Moniteur):void
    updateMoniteurResult.token = moniteurService.updateMoniteur(item);
    protected function button1_clickHandler(event:MouseEvent):void
    getAllMoniteurResult.token = moniteurService.getAllMoniteur();
    protected function getAllMoniteurResult_resultHandler(event:ResultEvent):void
    moniteurs = event.result as ArrayCollection;
    ]]>
    </fx:Script>
    <fx:Declarations>
    <s:CallResponder id="getAllMoniteurResult" result="getAllMoniteurResult_resultHandler(event)"/>
    <moniteurservice:MoniteurService id="moniteurService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    <valueObjects:Moniteur id="moniteur"/>
    <s:CallResponder id="updateMoniteurResult"/>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Binding source="dataGrid.selectedItem as Moniteur" destination="moniteur"/>
    <mx:DataGrid x="25" y="24" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)"
    dataProvider="{moniteurs}">
    <mx:columns>
    <mx:DataGridColumn headerText="id" dataField="id"/>
    <mx:DataGridColumn headerText="statut" dataField="statut"/>
    <mx:DataGridColumn headerText="nom" dataField="nom"/>
    <mx:DataGridColumn headerText="prenom" dataField="prenom"/>
    <mx:DataGridColumn headerText="tel" dataField="tel"/>
    <mx:DataGridColumn headerText="mobile" dataField="mobile"/>
    <mx:DataGridColumn headerText="email" dataField="email"/>
    <mx:DataGridColumn headerText="adresse" dataField="adresse"/>
    <mx:DataGridColumn headerText="npa" dataField="npa"/>
    <mx:DataGridColumn headerText="lieu" dataField="lieu"/>
    <mx:DataGridColumn headerText="pays" dataField="pays"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Form defaultButton="{button}" x="25" y="174">
    <mx:FormItem label="Statut">
    <s:TextInput id="statutTextInput" text="{moniteur.statut}"/>
    </mx:FormItem>
    <mx:FormItem label="Nom">
    <s:TextInput id="nomTextInput" text="{moniteur.nom}"/>
    </mx:FormItem>
    <mx:FormItem label="Prenom">
    <s:TextInput id="prenomTextInput" text="{moniteur.prenom}"/>
    </mx:FormItem>
    <mx:FormItem label="Tel">
    <s:TextInput id="telTextInput" text="{moniteur.tel}"/>
    </mx:FormItem>
    <mx:FormItem label="Mobile">
    <s:TextInput id="mobileTextInput" text="{moniteur.mobile}"/>
    </mx:FormItem>
    <mx:FormItem label="Email">
    <s:TextInput id="emailTextInput" text="{moniteur.email}"/>
    </mx:FormItem>
    <mx:FormItem label="Adresse">
    <s:TextInput id="adresseTextInput" text="{moniteur.adresse}"/>
    </mx:FormItem>
    <mx:FormItem label="Npa">
    <s:TextInput id="npaTextInput" text="{moniteur.npa}"/>
    </mx:FormItem>
    <mx:FormItem label="Lieu">
    <s:TextInput id="lieuTextInput" text="{moniteur.lieu}"/>
    </mx:FormItem>
    <mx:FormItem label="Pays">
    <s:TextInput id="paysTextInput" text="{moniteur.pays}"/>
    </mx:FormItem>
    <s:Button id="button" label="Submit" click="button_clickHandler(event)"/>
    </mx:Form>
    <s:Button x="322" y="200" label="Button" click="button1_clickHandler(event)"/>
    </s:Application>
    the full PHP service code:
    <?php
    *  README for sample service
    *  This generated sample service contains functions that illustrate typical service operations.
    *  Use these functions as a starting point for creating your own service implementation. Modify the
    *  function signatures, references to the database, and implementation according to your needs.
    *  Delete the functions that you do not use.
    *  Save your changes and return to Flash Builder. In Flash Builder Data/Services View, refresh
    *  the service. Then drag service operations onto user interface components in Design View. For
    *  example, drag the getAllItems() operation onto a DataGrid.
    *  This code is for prototyping only.
    *  Authenticate the user prior to allowing them to call these methods. You can find more
    *  information at http://www.adobe.com/go/flex_security
    class MoniteurService {
    var $username = "root";
    var $password = "mikedev";
    var $server = "localhost";
    var $port = "8889";
    var $databasename = "test_db";
    var $tablename = "moniteur";
    var $connection;
    * The constructor initializes the connection to database. Everytime a request is
    * received by Zend AMF, an instance of the service class is created and then the
    * requested method is invoked.
    public function __construct() {
       $this->connection = mysqli_connect(
       $this->server, 
       $this->username, 
       $this->password,
       $this->databasename,
       $this->port
    $this->throwExceptionOnError($this->connection);
    * Returns all the rows from the table.
    * Add authroization or any logical checks for secure access to your data
    * @return array
    public function getAllMoniteur() {
    $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename");
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $rows = array();
    mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
        while (mysqli_stmt_fetch($stmt)) {
          $rows[] = $row;
          $row = new stdClass();
          mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
    mysqli_stmt_free_result($stmt);
        mysqli_close($this->connection);
        return $rows;
    * Returns the item corresponding to the value specified for the primary key.
    * Add authorization or any logical checks for secure access to your data
    * @return stdClass
    public function getMoniteurByID($itemID) {
    $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where id=?");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'i', $itemID);
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
    if(mysqli_stmt_fetch($stmt)) {
          return $row;
    } else {
          return null;
    * Returns the item corresponding to the value specified for the primary key.
    * Add authorization or any logical checks for secure access to your data
    * @return stdClass
    public function createMoniteur($item) {
    $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (id, statut, nom, prenom, tel, mobile, email, adresse, npa, lieu, pays) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'issssssssss', $item->id, $item->statut, $item->nom, $item->prenom, $item->tel, $item->mobile, $item->email, $item->adresse, $item->npa, $item->lieu, $item->pays);
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $autoid = $item->id;
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    return $autoid;
    * Updates the passed item in the table.
    * Add authorization or any logical checks for secure access to your data
    * @param stdClass $item
    * @return void
    public function updateMoniteur($item) {
    $stmt = mysqli_prepare($this->connection, "UPDATE $this->tablename SET statut=?, nom=?, prenom=?, tel=?, mobile=?, email=?, adresse=?, npa=?, lieu=?, pays=? WHERE id=?");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'ssssssssssi', $item->statut, $item->nom, $item->prenom, $item->tel, $item->mobile, $item->email, $item->adresse, $item->npa, $item->lieu, $item->pays, $item->id);
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    * Deletes the item corresponding to the passed primary key value from
    * the table.
    * Add authorization or any logical checks for secure access to your data
    * @return void
    public function deleteMoniteur($itemID) {
    $stmt = mysqli_prepare($this->connection, "DELETE FROM $this->tablename WHERE id = ?");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'i', $itemID);
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    * Returns the number of rows in the table.
    * Add authorization or any logical checks for secure access to your data
    public function count() {
    $stmt = mysqli_prepare($this->connection, "SELECT COUNT(*) AS COUNT FROM $this->tablename");
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_bind_result($stmt, $rec_count);
    $this->throwExceptionOnError();
    mysqli_stmt_fetch($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    return $rec_count;
    * Returns $numItems rows starting from the $startIndex row from the
    * table.
    * Add authorization or any logical checks for secure access to your data
    * @return array
    public function getMoniteur_paged($startIndex, $numItems) {
    $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename LIMIT ?, ?");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'ii', $startIndex, $numItems);
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $rows = array();
    mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
        while (mysqli_stmt_fetch($stmt)) {
          $rows[] = $row;
          $row = new stdClass();
          mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    return $rows;
    * Utility function to throw an exception if an error occurs
    * while running a mysql command.
    private function throwExceptionOnError($link = null) {
    if($link == null) {
    $link = $this->connection;
    if(mysqli_error($link)) {
    $msg = mysqli_errno($link) . ": " . mysqli_error($link);
    throw new Exception('MySQL Error - '. $msg);
    ?>

    >
    >  the service.update(item) method DOES NOT EXECUTE (like the create above)
    >
    I think you are not using the "commit" on the service. By default the Data services are "managed".
    Data management features allow you to synchronize adding, updating, and deleting of records in a database. Changes you make in the client application are not written to the server until a "commit" method is called. You can call a revert method to roll back changes made in the client application.
    So wherever you update or create add "commit" to the service after adding/updating. for eg.
    protected function addDbItem(item:dbItem:void
         createDbItemResult.token = dbItemService.createDbItem(item);
         dbItemService.commit();
    I think the following article might be of interest to you:
    http://help.adobe.com/en_US/Flex/4.0/FlexTutorials/WSbde04e3d3e6474c4292a0331216558354b-80 00.html#WSbde04e3d3e6474c4-10020e8112165e18e29-8000

  • CS4-generated PHP/MySQL Statements

    I have constructed a simple 2 program GUI in CS4 using PHP and MySQL. Program A accepts XHTML form user input of two text fields, which are then passed to program B for subsequent MySQL retrieval and processing. I would appreciate a little clairification on the MySQL statement that CS4 generates in the recordset I built.
    Here are the PHP statements that set the passed variables in Program B:
    $colname1_Recordset1 = "";
    if (isset($_POST['transaction_mfgr_importer'])) {
      $colname1_Recordset1 = $_POST['transaction_mfgr_importer'];
    $colname2_Recordset1 = "";
    if (isset($_POST['transaction_model'])) {
      $colname2_Recordset1 = $_POST['transaction_model'];
    Here is the recordset generated based on that input:
    mysql_select_db($database_DGRconnect_acquisition, $DGRconnect_acquisition);
    $query_Recordset1 = sprintf("SELECT * FROM dgr_ad_vendor_acquisition WHERE dgr_ad_vendor_acquisition.transaction_mfgr_importer = %s AND dgr_ad_vendor_acquisition.transaction_model = %s", GetSQLValueString($colname1_Recordset1, "text"),GetSQLValueString($colname2_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $DGRconnect_acquisition) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    I have highlighted in red the parts of the generated statement from which my questions arise. Basically, I'd like to know how the "%s" is generated to represent the two variables, and more importantly, how they are parsed so that they are differentiated in the statement. In other words, how does the engine keep track of which "%s" is which? I hope my first question isn't about as clear as mud!
    Secondly, Is there any way I can manipulate the two of these variables to work in a "LIKE" operand, versus the "=" one?
    $query_Recordset1 = sprintf("SELECT * FROM dgr_ad_vendor_acquisition WHERE dgr_ad_vendor_acquisition.transaction_mfgr_importer LIKE %s AND dgr_ad_vendor_acquisition.transaction_model LIKE %s", GetSQLValueString($colname1_Recordset1, "text"),GetSQLValueString($colname2_Recordset1, "text"));
    I would prefer to alter my original statement to take advantage of the relative comparison function that the LIKE operand normally performs. I want the resultant rows retrieved by the SELECT to include anything similar to what the user inputed. Normally, the LIKE comparison requires a hard-coded string, eg. "WHERE dgr_ad_vendor_acquisition.transaction_mfgr_importer LIKE '%General Electric%'... ". I'm trying to figure out how to replace the "%s" variable representations with the contents of $colname1_Recordset1 and $colname2_Recordset1 respectively.
    Thanks for your time, and any feedback would be greatly appreciated!    

    Sorry about the Scotch whiskey teaser. I saw where a bottle of Bowmore 1850 auctioned for 29,000 English pounds. Sheesh!
    As for the PHP imbedded in the SQL, I guess I had hoped that maybe since PHP and MySql seem to be kindred spirits as far as a database/programming platform goes, that maybe Apache/MySQL knew to evaluate the PHP statement within the MySQL statement and somehow convert it. As I said, I had my doubts and they were proven to be true.
    In any event, I want to thank you again. Your solution is working swimmingly for me in several of my prototype applications. Much appreciated!

  • DMX Zone Google Sitemap Generator

    Hello,
    I have succesfully used this generator (
    http://www.dmxzone.com/ShowDetail.asp?NewsId=10538)
    on smaller websites (10 pages on so) but it has a few problems with
    my website (http:www.forbiddencityfc.com/) with 3,000 files (inc
    gifs, gallery pages, forums, etc).
    Firstly, XP gives a pop up every few minutes warning that the
    script has been running for some time and do I want to continue.
    This is annoying because it stays in the background and you don't
    see it immediately. (is there a way to change this value?)
    The main bug which crashes the program is when the file can
    not be read. My forums are online and the forum.php page is not
    readable on my local drive. When you click ok, the program has a
    few error messages then stops. You need to be able to exclude
    certain pages in the file generator or atleast click ignore when
    the file can not be found / read. Please let me know if these bugs
    can be fixed, or if there is a better program to use.
    I have tried other java online generators but they don't seem
    to work so seamlessly as this one could (atleast on smaller sites).

    On Fri, 29 Sep 2006 09:09:18 +0000 (UTC), "yesmaybe"
    <[email protected]> wrote:
    >Hello,
    >
    > I have succesfully used this generator
    >(
    http://www.dmxzone.com/ShowDetail.asp?NewsId=10538)
    on smaller websites (10
    >pages on so) but it has a few problems with my website
    >(http:www.forbiddencityfc.com/) with 3,000 files (inc
    gifs, gallery pages,
    >forums, etc).
    >
    > Firstly, XP gives a pop up every few minutes warning
    that the script has been
    >running for some time and do I want to continue. This is
    annoying because it
    >stays in the background and you don't see it immediately.
    (is there a way to
    >change this value?)
    >
    > The main bug which crashes the program is when the file
    can not be read. My
    >forums are online and the forum.php page is not readable
    on my local drive.
    >When you click ok, the program has a few error messages
    then stops. You need to
    >be able to exclude certain pages in the file generator or
    atleast click ignore
    >when the file can not be found / read. Please let me know
    if these bugs can be
    >fixed, or if there is a better program to use.
    >
    > I have tried other java online generators but they don't
    seem to work so
    >seamlessly as this one could (atleast on smaller sites).
    >
    >
    Don't know, but did you Google the error message?

  • I've used a sitemap generator, download the file. How do I open it?

    Hello
    I've textwrangler, textedit and office. They open the file, but to save it as a sitemap.xml is not working. When I preview it online the code is not rendering.
    Which software do I use to open this file and save as plain sitemap.xml to upload to my host and submit to the search engines.
    By the way, preferably a really free software, not a trial one since I've no money to buy one+pointless to buy one to use only once.
    Thank you

    Hello
    I'll try to explain myself better. With either sitemap generators I'm using online:
    http://www.sitemapdoc.com
    http://www.xml-sitemaps.com/
    They build the sitemap nicely. I don't need to edit it, just download or copy the code and save as xml.
    When I download the code, it has the Final Cut (I've it installed) as the open the file as default.
    I'm assuming it is happening since I do not have a suitable software to open and save the file with.
    There are endless sitemap generators online, but I've to save them as sitemap.xml and upload to my host, to submit it to the search engines.
    It is not a new process, I do believe that they start this way of submitting your website about 3/4 years ago.
    I did not use iWeb to build my website since it uses iFrame.
    The softwares you mentioned above are not free and I don't need to edit my Sitemap.
    Only to save it as Sitemap.xml and upload to my host.
    I'm trying version tracker as recommended above, but xml editors are not easy to use + plus most are trial software.
    Doesn't mac have an application to open and save this kind of file?
    Or maybe you could direct me to another forum where I could post my dumb question. Thank you.
    Regards

  • Error generating PHP sample service

    Hi all,
    Running WinXP, FB4b2 (downloaded 210210), WAMP 2; Apache v2.2.11, PHP v5.2.9-2, MySQL 5.1.33.
    FB4 installed fine, only exception being the Zend framework prompted me to download the latest version of Zend once FB4 had installed an older version - I left it be, preferring to go with FB4's choice of framework.
    After creating a basic table in phpmyadmin and stepping through 'Connect to Data/Service', FB4 hangs for about 3-4 minutes (my system is fairy mean), and finally spits out "Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\ZendFramework\library\Zend\Db\Adapter\Pdo\Abstract.php on line 147".
    MySQL table dump:
    FB4v2 error log, PHP log, my WAMP phpinfo file all attached but sorry couldn't find the log referred to by Shikha in post 21, "Step 2" @ http://forums.adobe.com/message/2009071#2009071.
    All help appreciated, keen to get this sucker up and running so I can explore - I'm all enthused after the Adobe REFRESH Roadshow in Auckland
    - danjah

    Hi Sudhirm,
    Thanks for your reply, I gave that a shot, initially boosting it to 120 as suggested. I got the same error after 120 passed, the FB4 error duly noted that the length of time had expired (it said 120 instead of the old 30). So I then tried at 360. I also went to bed
    When I woke up in the morning, the error was thusly:
    Server error SQLSTATE[HY000] [2013] Lost connection to  MySQL server at 'reading initial communication packet', system error: 0
    Any further thoughts? I thought maybe on the off-chance that my quals were awry, I tried every flavour of username/login to access my mysql db (reason being I didn't have u/p set up, but do now), but it's definately 'admin' and 'password'.
    - danjah
    [[Edit]]
    After further testing, and running through these steps on another machine (XPSP2, WAMP2, FB4b2), I got the same results; first the timeouts, and then the error after increasing the max execution var to 360. I really, really don't want to use my time debugging database tables or php configurations - I just want to get busy with some cool stuff. So if anyone has a wicked link that can help give me a crash course in debugging this stuff quickly, or any suggestions, I'm offering a free beer if you travel to Wellington
    [[Edit]]
    Not providing a port number in the mysqli call allows connection, I'm guessing my mysql program is not listening to port 80?

  • Is there a way to create an xml sitemap within Dreamweaver 2014?

    Just wondering if there's a way to create an xml sitemap withing Dreamweaver 2014.

    No automagic buttons for it.  You could do it manually in code view but there are online generators and desktop apps that are better suited to the task.
    Create your Google Sitemap Online - XML Sitemaps Generator
    Xenu Link Sleuth can generate site maps too.
    Find broken links on your site with Xenu's Link Sleuth (TM)
    Nancy O.

  • Getting Error while Creating Sitemap using SitemapGenerator 2.1.1

    Hi,
    I have configured the sitemap generation for CRS Data by referring Endeca Sitemap Generator Developer's Guide Version 2.1.1.So, I am facing following issue mentioned below,
    [INFO: No navigation links (defined in the NAVIGATION_PAGE_SPEC_LIST parameter in the conf.xml file) were created.   Please make sure in in Developer Studio that each of the dimensions specified in this parameter have been set to be displayed within the record list.*Dec 11, 2012 7:40:21 PM com.endeca.soleng.sitemap.SitemapMain execute
    INFO: Writing search term links...
    Dec 11, 2012 7:40:21 PM com.endeca.soleng.sitemap.SitemapMain writeLinks
    SEVERE: Error in Writing search term Links: null
    Dec 11, 2012 7:40:21 PM com.endeca.soleng.sitemap.SitemapMain execute
    INFO: Writing static page links...
    Dec 11, 2012 7:40:21 PM com.endeca.soleng.sitemap.SitemapMain writeLinks
    SEVERE: Error in Writing static page Links: null
    Dec 11, 2012 7:40:21 PM com.endeca.soleng.sitemap.SitemapMain execute
    INFO: Writing index file...
    Dec 11, 2012 7:40:21 PM com.endeca.soleng.sitemap.SitemapMain writeIndexFile
    SEVERE: Error in Writing Index File: null
    Script completed successfully.
    Even i referred No Navigation Pages Created in Common errors(page no 32) in the Endeca Sitemap Generator Developer's Guide Version 2.1.1 but still didn't get the proper solution
    Plz let me know ur inputs/sugesstions.
    Thanks in advance,
    Chetan Kumar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The other errors ("SEVERE: Error in Writing ... links: null") imply a misconfigured Sitemap Generator. I'm sorry that there's not a better error message and diagnosis, but it seems that the Sitemap Generator swallows the real error and only attempts to print out the exception message (which in your case is 'null' -- not very helpful). Looking at the application, you could get an error here under the following circumstances:
    1) The Sitemap Generator cannot write to the intended output files
    - Make sure that the directory implied by the <INDEX_FILE> configuration setting exists and is writable by the user executing the Sitemap Generator.
    - If no directory is written in that setting (e.g. <INDEX_FILE> only contains a file name), then the Sitemap Generator will attempt to create the sitemap in the current directory.
    - If that file already exists, then make sure that file is readable and writable by the current user.
    2) The Sitemap Generator cannot create proper links for those files.
    - Check to make sure you have valid entries in the corresponding files (<SEARCH_TERMS_FILE>, <STATIC_PAGES_FILE>, etc.).
    - Check to make sure you have valid template files (<TEMPLATE_FILE>, <URL_FORMAT_FILE>, etc.).
    As a general though, you may want to just take the initial Sitemap Generator configuration (unmodified, as is) and run the Sitemap Generator against this configuration. You can then start to tailor the configuration files for your application. (NOTE: you'll need all of the files in the conf directory.)

Maybe you are looking for

  • MacBook Pro (Retina, 15-inch, Mid 2014)preview messing with PSD file

    MacBook Pro (Retina, 15-inch, Mid 2014) 2.5 GHz Intel Core i7 v: 10.10.1 after turning my PSD painting upside down using preview, preview modifies the PSD document and flattens all my layers. now I lost all my layers in my painting! Why does preview

  • Error while deploying ADF Model Project to OIM 11g R2

    Hi I am getting the following error when deploying ADF Model Project in OIM 11g R2 oracle.jbo.NoDefException:JBO-25058: Definition UsrLastName of type Attribute is not found in UsrLastName any inputs is appreciated...thanks in advance....

  • Query regarding form names

    What are the form names for goods reciept , Goods sent , Billing and what are th corresponding transaction codes to check the form print preview ? I have already checked in  TNAPR table but i didnt get. can anybody help me out?

  • Tru64 to HP -UX ECC5  system copying?

    We will have to upgrade ECC5  system to ECC 6. However the unix version is tru64 (which is not supported by ECC 6 (in product availability matrix). What would you do? Is it possible to copy usr\sap , sapdata1...sapdataN and sapmnt inclusive users(SID

  • Uninstall wireless mighty mouse driver from OS X / Powermac?

    Well, I am one of the (few?) that has had a disappointing experience with the new wireless Mighy mouse - it's slow and sluggish, and darn right unusable on my Powermac G5 - and with the drivers off the CD installed. (My MX 1000, even my old original