Title: Xavierator's Replies | WordPress.org

---

# Xavierator

  [  ](https://wordpress.org/support/users/xavierator/)

 *   [Profile](https://wordpress.org/support/users/xavierator/)
 *   [Topics Started](https://wordpress.org/support/users/xavierator/topics/)
 *   [Replies Created](https://wordpress.org/support/users/xavierator/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/xavierator/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/xavierator/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/xavierator/engagements/)
 *   [Favorites](https://wordpress.org/support/users/xavierator/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [WordPress size images](https://wordpress.org/support/topic/wordpress-size-images/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wordpress-size-images/#post-8950160)
 * Ok, thanks for your information, I will contact with my client in order to resolve
   the server security, access, …
 * Thanks, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [WordPress size images](https://wordpress.org/support/topic/wordpress-size-images/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wordpress-size-images/#post-8947086)
 * Dear bcworkz,
 * The images has been uploaded by profile WP plugin or ftp with dreamweaver.
 * To get the images information I only have their url.
 * Thanks, Xavi
    -  This reply was modified 9 years, 1 month ago by [Xavierator](https://wordpress.org/support/users/xavierator/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [WordPress size images](https://wordpress.org/support/topic/wordpress-size-images/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wordpress-size-images/#post-8946123)
 * More information, I can get image info of another WordPress web site like this:
 * $imgINFO = getimagesize(‘[http://www.archertargets.com/images/logos/Facebook_icon_2.png&#8217](http://www.archertargets.com/images/logos/Facebook_icon_2.png&#8217););
 * But I can’t get image information of any image of [http://www.smartcommunity.es](http://www.smartcommunity.es),
   another sample:
 * $imgINFO = getimagesize(‘[http://smartcommunity.es/wp-content/uploads/2017/01/Logo-Smart-Community-Tra.png&#8217](http://smartcommunity.es/wp-content/uploads/2017/01/Logo-Smart-Community-Tra.png&#8217););
 * It isn’t an uploads folder problem because I can’t get image information of a
   image out of uploads folder:
 * $imgINFO = getimagesize(‘[http://smartcommunity.es/wp-content/themes/trades/img/Card-Blank.jpg&#8217](http://smartcommunity.es/wp-content/themes/trades/img/Card-Blank.jpg&#8217););
 * Thanks, Xavi
    -  This reply was modified 9 years, 1 month ago by [Xavierator](https://wordpress.org/support/users/xavierator/).
    -  This reply was modified 9 years, 1 month ago by [Xavierator](https://wordpress.org/support/users/xavierator/).
    -  This reply was modified 9 years, 1 month ago by [Xavierator](https://wordpress.org/support/users/xavierator/).
    -  This reply was modified 9 years, 1 month ago by [Xavierator](https://wordpress.org/support/users/xavierator/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/mysql-web-page-access/page/2/#post-8931509)
 * Dear,
 * It really works, finnaly I decide to use the 2nd .php file with url in it’s parameters.
 * Thanks a lot for your help and kind regards, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/mysql-web-page-access/page/2/#post-8909649)
 * At this moment I’m working with your first solution, pass url parameters to 2nd.
   php file, I think it works right
 * I will notice you when I finish
 * Thanks, Xavi
    -  This reply was modified 9 years, 2 months ago by [Xavierator](https://wordpress.org/support/users/xavierator/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/mysql-web-page-access/#post-8909141)
 * Dear bcworkz,
 * If I use your second solution and call the 2nd WP page name from <a href=… or
   if I use my proposed solution I get the same error in TCPDF library:
 * Fatal error: Cannot declare class TCPDF, because the name is already in use in/
   homepages/25/d369985012/htdocs/html/tutusaus.cat/wp-content/themes/twentyseventeen/
   tcpdf/tcpdf.php on line 157
 * I don’t know how to continue by this way 🙁
 * Maybe the only solution (if it works) could be your first proposed solution, 
   pass the information read with $wpdb->get_results() using an url parameters.
 * Thanks, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/mysql-web-page-access/#post-8906323)
 * Dear,
 * Thanks for your answer bcworkz.
 * I only need the $wpdb resources and I like your second solution, call a WP second
   page instead of call directly de .php file
 * I’ve been thinking in an another solution, all code in the same first php file,
   the pdf button will re-call to it self usong a parameter, something like this:
 * if $_GET[‘DetectCall’]=’first_time’
    DoTheSameThanNow(); else if $_GET[‘DetectCall’]
   =’pdf’] GeneratePDF()
 * What do you think ?, do you know if it can work ?
 * Thanks, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/mysql-web-page-access/#post-8905844)
 * Dear again,
 * I think that I know where is the problem, but I can’t resolve it.
 * My custom PHP WP page [http://www.tutusaus.cat/card-page/](http://www.tutusaus.cat/card-page/)
   has a button with a <a href label to another php file that uses tcpdf library,
   but this 2nd page don’t recognize something like:
 * $wpdb->get_results
 * How can I work with $wpdb object in the PDF generator page ?, maybe only with
   some include ?
 * Many thanks, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [WordPress page PHP content to PDF](https://wordpress.org/support/topic/wordpress-page-php-content-to-pdf/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wordpress-page-php-content-to-pdf/#post-8905798)
 * Dear,
 * I tried to use tcpdf library but generate wrong PDF files, I don’t know why.
 * I tried to use plugins like “PDF & Print by BestWebSoft” or “PDF Creator Lite”
   but don’t work.
 * Someone knows another solutions ?
 * Thanks a lot, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/mysql-web-page-access/#post-8905371)
 * Dear,
 * I just finish the page with PHP code inside.
 * I need to show a “PDF generate” option inside this page. I installed this plugin
   but it works fine with all pages except my custom page:
 * [https://bestwebsoft.com/products/wordpress/plugins/pdf-print/](https://bestwebsoft.com/products/wordpress/plugins/pdf-print/)
 * Someone knows why or if there are another plugoin for custom PHP pages ?
 * Thanks, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/mysql-web-page-access/#post-8877085)
 * Dear sirs,
 * I just resolved the MySQL access from my page using something like:
 * global $wpdb;
    $result = $wpdb->get_results( ‘SELECT * FROM wp_usermeta where
   user_id=’ . get_current_user_id() ); foreach( $result as $row ) { echo ‘<b>’ .
   $row->meta_key . ‘</b> = ‘.$row->meta_value . ‘<br/>’; }
 * Thanks for your help, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/mysql-web-page-access/#post-8872073)
 * Dear,
 * Using get_header() and get_footer() the page works fine:
 * [http://www.tutusaus.cat/card-page/](http://www.tutusaus.cat/card-page/)
 * I will try to use **$wpdb object** and **WP_Query class** to access to MySQL 
   tables
 * If someone have littles samples of MySQL access, please, let me see.
 * Thanks, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/mysql-web-page-access/#post-8867545)
 * Dear,
 * OK, I put this lines on my new page and WP recognize it as you told me:
 * <?php
    /** * Template Name: MyCustomBlankPage */?>
 * The problem is that the new page ([http://www.tutusaus.cat/card-page/](http://www.tutusaus.cat/card-page/))
   don’t have the default template like other pages ([http://www.tutusaus.cat/sample-page/](http://www.tutusaus.cat/sample-page/))
 * I need to create a new page in WP with de default template and include inside
   a PHP code to access to MySQL tables.
 * Is it possible to do this ?
 * Thanks a lot, Xavi
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [MySQL web page access](https://wordpress.org/support/topic/mysql-web-page-access/)
 *  Thread Starter [Xavierator](https://wordpress.org/support/users/xavierator/)
 * (@xavierator)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/mysql-web-page-access/#post-8863387)
 * Dear Maria,
 * thanks for your fast answer.
 * Some doubts about #1:
 * If I understood the better way to create a new custom blank page is copy & rename
   the page.php in the active theme, maybe something like this ?
 * wp-content/themes/twentyseventeen/page.php -> wp-content/themes/twentyseventeen/
   MyCustomBlankPage.php
 * After that, fine, I can execute the url of the new page:
 * [http://www.tutusaus.cat/wp-content/themes/twentyseventeen/MyCustomBlankPage.php](http://www.tutusaus.cat/wp-content/themes/twentyseventeen/MyCustomBlankPage.php)
 * Which page content do I need to show as other templates pages ?
 * I don’t understand how can I include the new page in WordPress admin pages, on
   right hand of new pagse in WordPress admin, I only have Parent and Order but 
   not Template options to choose the new one.
 * Sorry and thanks again, Xavi

Viewing 14 replies - 1 through 14 (of 14 total)