Jump to content

azunoman

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Contact Methods

  • Yahoo
    azunoman

azunoman's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks very much for your reply Time Bomb. Here is what I am trying to do (better explanation I hope) I have a module for a cms, it reads the http_host name and if it's in my database I switch the hard coded cms core url with the http_host. Then let the cms proceed naturally. Thus allowing more than one domain name to run on the cms. I am currently testing using aliasing and it works fine but any forward I use either the hosting providers interface for park/park frame or .htaccess I can not compare the http_host. Nor is there anything in the referrer or forward server variables. And I agree with your advice on 301/302. I will use a 302 on the .htaccess or actual php code if I can read the original url referrer. I am hoping to offer alternative method(s) to customers that use this module to point their other domain name(s) to the cms and which my module can read and take appropriate action.
  2. p.s. I little incentive, on scouts honor. anyone solving this issue I'll send $25.00 via paypal it's not much but maybe a light dinner for two.
  3. I am running multiple tld's using domain alias from my hosting account. When my site gets control it checks the $_SERVER['HTTP_HOST'] to see if it's what's defined in my allowed tld table and if so updates the CMS core with the tld domain name and other details used by the CMS. The aliases address appears as expected in the address bar. Works great! I have been looking at other options outside of domain aliasing, because of email issues and some people may not have the capability to define a domain alias easily. -I've ruled out frame(masked) forwarding as this won't work with paypal and other payment gateways I suspect. Nor is it SEO friendly at all, etc. -For regular 'parked' unmasked forwarding I do not receive the original url 'referrer', but will test again. :DMy question is how can I use a 301 redirect and keep the tld coming into the the main domain in the address bar? I also need to check if it's a redirect and that the referrer is in my tld table, and if so execute code like I do for alias. i.e. .htaccess redirect in domainone.xx to domaintwo.xx with domainone.xx still in the address bar. here is the example I've used for 301's that I don't want the redirected site to display in the receiving domain. Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www.old-domain.com$ [NC] RewriteRule ^(.*)$ http://www.new-domain.com/$1 [R=301,L] I really appreciate review of the freaks.
  4. Great reply PFMaBiSmAd, thank you! I left out many details in my post and I apologize, I call the PLESK 9 CLI via shell_exec db --create. I went to the PLESK panel manager and entered it manually and it worked. I never really liked using the subdomain name for the db username, I will take this opportunity to use a php rand to create the db username. sorry marked as resolved...my bad...I will come back and post the sql command
  5. Hi, long time fan of the phpfreaks. I have a cron job that creates sub/domains using PHP, I received an error creating a sites mysql db username: "Unable to create database: Database user name is invalid." The MYSQL username I was trying to add was: soloparaafiliado, and is the subdomain name. Obviously I need to check my generated MYSQL username so that it doesn't get rejected. I have no requirement that the MYSQL username be the same as the subdomain. Beat around the web looking for some guideline on the allowed formats of a MYSQL username but didn't find anything obvious. Curious if there any information of valid username format. Any help would be great appreciated.
  6. Hi, what sort of site do you have now? There are loads of really good off the shelf open shopping systems. We really like the prestashop model but whatever mode (assuming you are not writing from scratch) ban easily be installed on your site via a folder or as a subdomain.
  7. When I last built a PHP application objects were not as yet available both in knowledge and platform. Having the opportunity to build a new php application I decided to use PHP Objects and am studying PHP Objects, Patterns, and Practice, Third Edition by By: Matt Zandstra. Most of my applications require lot's of forms. For a newbie PHP object person PHP Form Build class looks appealing. -I use Dreamweaver CS5, is there a way to design your forms say in Dreamweaver design view and easily use in the PHP Form Builder class? -I really like AJAX for front end user interface, wondering if PHP Form Builder Class is a nice interface to AJAX functions. Thanks in advance for your review. My general testing/production environment: PHP Version 5.3.8/apache2/mysql 5+
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.