Hello,
I inherited a project with drupal and flash, and I'm pretty noobish on the topic so please don't bash me.
What I'm stuck at is that I need to create multiple thumbnails for each uploaded image (5 version to be precise with different settings eg. 150w, 250w,..) I created the presets but I can't seem to understand how imagecache w...
I'm trying to implement a timepickr element into my website, however it seems that the element will work ok in one section of a page, but not in another.
I reference the appropriate css files…
<link rel="Stylesheet" media="screen" href="ui.timepickr.css" />
<link rel="stylesheet" media="screen" href="jquery.timepickr.css" type="text/cs...
I'm setting up a spacing structure for some text on an image. So I have to set a $s value for every letter of the alphabet (lower and uppercase) so that is 52 statements.
If I go this route the elseif statement list is going to be huge...
Is there a better way to do this to help shorten the code that finds the $s value depending on t...
Hello.
I have been running my website for a few months now and occasionally I find my activation isnt great. After the user signs up, they will receive an email which has an activation link provided.
I have a few problems and want to improve this if possible.
Firstly, the email sometimes doesnt arrive? Any reason for this?
How can I st...
I'm using this script to pagination. But when url does have $_GET['word'] I cant change URL's of Links. How can I do it?
<?
if (isset($_GET['page']) ) {
$pageno = $_GET['page'];
} else {
$pageno = 1;
} // if
$limit = "";
if(isset($_GET['word'])) {
$word = mysql_real_escape_string($_GET['word']);
$word = $word{0};
$limit = "...
How to save an users vote on a particular comment? For example if someone likes a comment posted on the site he/she will click the (+) button or other way will click the (-) button.
How could i save this information to mysql, so that when the user come back to the site I can show his/her vote on the comment? Something like facebook comme...
I am creating a service that allows my website visitors to create content (text) and save it so they can access it at a later time. However, users don't need a user account before they can use this feature. They just click "Try now" and use it. If they want to save their work, then that's the time they need to sign up.
I am planning to ...
Hi everyone,
reCAPTCHA (Zend_Service_ReCaptcha) is not working in IE 8 on our site.
Look at this web site.
Does anyone know why? It is working elsewhere including FF,Opera, etc.
Thanks a lot!
...
Does anyone have a good system for deciding what to put in the database and what to put in the config file.
My config file is a php array and I have a mysql database.
If for example I have a data set of 5 'rows' that will rarely change (if ever) is it better to keep it in the config file?
I am looking for a rule that I can follow that...
I'm trying to loop through this XML to get specifically to the count fields.
What's the most efficient way to do this? I don't mind using libraries as long as they don't require root access to install since I'm on shared hosting. Is using libraries supposed to be a better practice or the opposite?
<category>
<name>Category 1</name>
...
Hello. Can someone explain how to create a .php page which auto-updates with values from a database? Would using AJAX be best for something like this? I want this PHP code, but I want the page to be updated whenever 'values01' is added to or changed, without having to refresh the page.
$query = "SELECT values01 FROM users WHERE username...
Hi,
I have a symfony 1.4 form with 2 embedded forms.
The parent form has a drop down which determines which of the embedded forms you fill in (hidden/shown on the frontend using JavaScript).
The problem is, when I submit the form, the validation and save is being run on both of the embedded forms, which I obviously don't want.
What i...
I have an issue. When I run:
try {
$as
->setForename($_POST['fname'])
->setSurname($_POST['sname'])
->setEmail($_POST['email'])
->setUser($_POST['user'])
->setPass($_POST['pw'])
->setPhone($_POST['tel'])
->setMobile($_POST['mob'])
->setJob($_POST['job'])
->setAuth($_POST['auth'])
->addProcess();
}
catch (Exception $...
Hello,
I have for example a string \try Tester234 where I want to find the Word (partially with digits)
(RegEx => (\w|\d)) after the \try.
But a var_dump($match) outputs that:
array
0 =>
array
empty
1 =>
array
empty
preg_match_all('/^\\try ((\d|\w)*)/i', "\try Tester", $match);
What am I doing wrong?
...
Before I start, I can post up some code later. I'm in work just now but the problem's really bugging me! Hopefully I can explain it well enough.
I have two functions which work as expected on their own. One of them is displaying a watermark over my photographs. Because my client is fussy and changes things every other day, I decided to ...
I need to build a simple web-based data entry/editing tool - something that would let me avoid using MS Access for the task. Preferrably in PHP and something that would be support SQLite, foreign keys/references and field validation.
I've looked at the demos of Symfony and was not impressed with the user interface in the end. Are there ...
I've been coding with php/CI for a bit now and am starting to get the hang of it, but I'm trying to make the leap to use jQuery + some ajax stuff and I can't seem to get it to work. It's like the the script isn't even being seen.
What I'd like it to do is to call the java/test function when the user clicks the submit button. I'd like ...
Hi so I'm trying to lurn how to make a chat with a socket server.
I noticed everybody uses the same code (ripoff from the zend developer zone).
The problem is no one really explains how it works. Especially the cryptic code after while(true) { .
This would benefit many so i hope someone could take the time and explain the code in de...
I would like to find real time in some region in order to send it to the database. I tried to do something like this:
date_default_timezone_set('Asia/Jerusalem');
$date = date('Y-m-d H-i-s');
But when user changes the time on his computer it is sent to DB like he set it. So I want to get the real zone time - not from user's computer.
...
I have just started PHP and mySQL and need to know if this is "safe". The login information is passed into the following PHP file through AJAX (jQuery).
jQuery AJAX
$("#login_form").submit(function(){
$.post("login.php",{user:$('#username').val(),pass:$('#password').val()} ,function(data)
PHP
ob_start();
mysql_connect("-", "-", ...