Skip to main content
And this happens with Drupal too!

When creating a node that has for instance a field where you place the embedded code of a youtube video, once submitted the add form, on Chrome the video does not get displayed unless you refresh the page. Basically this is how Chrome prevents XSS attacks.

What i did to solve this momentarily ( workaround) is adding a Javascript refresh page condition on my template.php:



function my_theme_preprocess_html(&$variables) {
// on chrome we need to reaload the page so the uploaded video can be shown
// this is due how Chrome prevents XSS (cross…
Read more
Tuesday, January 24, 2012
The reason for this blog is to create a guide on how to install Drupal on a Linux Server ( I choose Ubuntu 10.04 amd64 LTS but any Linux distro will work just fine) but instead of using all the PHP packages bundled with this Linux distribution we will be using Zend Server which is an Application Sever built for  PHP by Zend.

So, once you have set up Ubuntu, let's login as the root user typing the following command:
    
    $ sudo -s

cool , now that we have all the privileges, let's add the Zend Server repository to our sources list by typing:
 …
Read more
Sometimes you may find the need to shutdown a site for any reason an a specific server, basically the server that is listening to the web, so of course you will always want to keep that site(s) up and running while you perform whatever is needed on it, let's call it, 'external server', on a different environment, 'internal server'.
To do so you need to use an apache module called mod_proxy which enables a web server act as a router of traffic to another server, a tunnel.

- Enable mod_proxy and mod_proxy_http mod_proxy_html on external server
- create a virtual host on internal server…
Read more
Wednesday, September 28, 2011
Yesterday, I was working on a new requirement on a website I'm currently working on and the idea of it is make Drupal provide a Widget so anyone can copy/paste a single piece of HTML code inside a iframe and embedded that code anywhere, so providing ans iframe is not a big deal but of course the iframe will display inside it whatever comes from the source url you set for it, example:

<iframe frameborder="0" height="480" src="http://www.mysite.com/widget/"; target="_blank" align="center" width="360" scrolling="Auto"; bgcolor="#C9D3DE"> </iframe>

In this case "src" retrieves…
Read more
Sometimes when updating or upgrading different packages on your Ubuntu specially kernel updates, Zend Server tends to break up and the whole packages system too, you usually get errors like "bad inconsistency" of package php-zend-server-ce-php-5.x and you are asked by the system to reinstall this package but that's also impossible due to the changes the update has performed.
In order to fix this issue try following the next steps:

    sudo /usr/local/zend/bin/zendctl.sh stop   => stop zend server service
    sudo rm -rfv /usr/local/zend/tmp/*     …
Read more