Hello,
I am having an error when I try to display googlemaps
If I load the googlemaps javascript source
I get this error in firebug
syntax error
[Break on this error] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nmaps?fil...sor=false (regel 1)
I have this to load the file
<?php if (isset($gmap...
Hi all :)
I'm currently writing sort of a download manager and I was asking myself if that was possible:
if($ext == ('zip' || 'png')) { echo "Is it possible ?" }
It returns true everytime, so I guess it's not possible. But do you have an idea about how I could easily do this ? I mean, not with plenty of "if" or "switch"...
Thanks an...
I would like to add a rewrite Condition in my htaccess that would be true if calling a php file returns "true" or false otherwise. I' am using the -U switch in my RewriteCond to run a subrequest and if the condition is not satisfied, the PHP script returns a 404 error, which triggers the rewriteCond.
My goal is to run a URL shortening s...
I'm looking to add a new first class object to Magento - in this case a Video class.
I'd like the video class to have many-to-many relationships with products and categories. These relationships would identify which pages that video shows up on, and should be accessible from both sides of the relationship.
It's pretty clear how to ad...
Hello, I'm experiencing my first form in php where images can be uploaded.
I've seen some article on the web which explains it can be dangerous, so there is some way to block scripts on a specified folder? Something with .htaccess or php .ini instruction?
...
I have the following CSV
Date,Event,Description
24/01/2010,Football,Football practice for all Years.
24/01/2010,Cricket,Cricket Practice for all Years.
25/01/2010,Piano Lessons,Paino lessons for Year 10.
Date, Event and Description are the headers that I want to filter by.
I'm getting todays date and then I want to read the CSV and o...
I'm using pdftk to fill in a PDF form with an XFDF file. However, for this project I do not know in advance what fields will be present, so I need to analyse the PDF itself to see what fields need to be filled in, present an interface to the user accordingly, and then generate an XFDF file from that to fill in the PDF form.
How do I ge...
I have a url such as the example below
http://www.website.com/page.php?pid=263547322425&foo=too
How can i use regex to get the value of pid. Thats to say the value from the end of pid= until the &?
...
I built an client website with php script purchased recently and the support for script is pathetic, I want the permalinks of the script to be search engine friendly but they're not. They have spaces inbetween which are not at all indexed by search engine..
So, how can I change the permalinks? Thank you all..
...
hello,
I have been following a tutorial on creating a style switcher with PHP and jQuery, now in the tutorial the PHP function uses get data, which is not available in codeigniter, I was hoping someone would be able to help me tidy up my sorry attempt?
My PHP function
function setBackground() {
$style = $this->uri->segment(3)...
I am developing a web application with PHP and MySQL. I have an entity named, User, that has many one-to-many relationships (with other objects) within it (list of Addresses, list of Emails, list of PhoneNumbers, etc). These many addresses, emails, phone numbers are supplied to the user via junction tables in the database (user_link_addr...
I want to be access some variables I've assigned dynamically from PHP in Smarty, here is an example:
$content_name = 'body'
$smarty->assign('content_name',$content_name);
$smarty->assign($content_name.'_title',$title);
$smarty->assign($content_name.'_body',$body);
// assigned values
// $content_name = home
// $home_title = $title
// $h...
Is it possible to convert PHP to binary mode (compile) and run it in all standard web servers?
...
A short time ago, a gentleman posted this function in an answer to a question. As a learner, I am interested in understanding the function. However, I can't get it to work as is. The poster did not say that he had tested the function, so it could have been a "conceptual" post, meant to show direction. OTOH, I may not be invoking it c...
I'm trying to pull some results from a database but I guess I'm kind of brain dead today.
$castquery = "SELECT * FROM cast " .
"WHERE player_id = '" . $userid ."' ";
$castresult = mysql_query($castquery) or die(mysql_error());
$castrow = mysql_fetch_array($castresult);
...
foreach($castrow['cast_id'] as $caster)
{
echo "<p>"...
Hi All,
I have a custom CMS for the performing arts center in my town about to launch. They will have artists/events/media, etc. on the site via the interface I've built for them in php/mysql.
My question has to do with google indexing and the CMS content. Odds are they won't be deleting archived shows (which will have a url like s...
Right now I transform an XML document with an XSLT stylesheet using Javascript (in a Wordpress-based website). This works fine in Firefox and Chrome, but not in IE. Plus, if Javascript is not enabled, nothing would show up.
So, my goal is to do the XML/XSLT transformation to XHTML on the server, not the client, preferably using PHP.
I'...
I could've sworn I've done the tutorial correctly, but I am getting an error message and my aros_acos table is empty.
What I've already done:
On this page: http://book.cakephp.org/view/646/Creating-ACOs
I've run "cake acl create aco root controllers" and it returned "New Aco 'controllers' created.". I've also added "$this->Auth->actio...
Hello,
I'm using PEAR to send HTML emails from my website.
My email are sent, but they are not formatted according to the CSS when viewed in Hotmail/Yahoo/GMail. When I view them in Windows Live MAil, they look great.
To be more specific, it seems as if non of the CSS is taken into consideration (text format, background images etc.).
...
I have a website and want to be able to allow the user to run a Java file on the server from the website.
I want the user to click a button which will run the Java file on the server AND anything printed to standard-out by the Java program will be printed out on the website for the user to see.
How can this be done (call Java program ...