Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 358
Search took 1.02 seconds.
Search: Posts Made By: DR.Wong
Forum: Apache configuration 02-03-2013, 01:53 PM
Replies: 1
Views: 1,409
Posted By DR.Wong
Thumbs up Solved

I've figured it out.

The problem was that I included a "/" before the name of the "fake" directory.

Here's the solution :

RewriteEngine On
RewriteRule ^contact/?$ frontEnd/contact.php...
Forum: Apache configuration 02-03-2013, 01:11 PM
Replies: 1
Views: 1,409
Posted By DR.Wong
mod_rewrite : make a "fake" directory that displays an "index.php" from another folde

Hey there,

I'm attempting to use clean URLs.

The about page my site is located at http://www.example.com/frontEnd/about.php

I'd like to access it by merely typing in...
Forum: JavaScript programming 01-28-2012, 07:47 AM
Replies: 2
Views: 460
Posted By DR.Wong
Solved : function checkAll(field) { ...

Solved :


function checkAll(field)
{
if(document.resultForm.master.checked== true)
{
for (i = 0; i < field.length; i++)
field[i].checked = true;
}
Forum: JavaScript programming 01-28-2012, 07:10 AM
Replies: 2
Views: 460
Posted By DR.Wong
Toggle Checkbox Selection (Array of Checkboxes)

Hi all,

I have a form where I want a single checkbox to toggle the selected/unselected status based on the status of that master checkbox.

I have a working script that accomplishes this, but...
Forum: PHP 01-25-2012, 08:32 AM
Replies: 3
Views: 437
Posted By DR.Wong
Sill mistake. I was declaring...

Sill mistake.

I was declaring $configFileLocation outside of the function and then trying to use it inside of the function.

Solved.
Forum: PHP 01-25-2012, 08:18 AM
Replies: 3
Views: 437
Posted By DR.Wong
Yes, the $_SERVER['DOCUMENT_ROOT'] value is...

Yes, the $_SERVER['DOCUMENT_ROOT'] value is correct.

Here is a better explanation :

config.php

//DATABASE CONFIGURATION
$dbUsername="FOO";
$dbPassword="BAR";
$dbIP="localhost";
Forum: PHP 01-25-2012, 07:47 AM
Replies: 3
Views: 437
Posted By DR.Wong
include(); from DOCUMENT_ROOT not working inside of a function

Hi all!

I am having a problem including a file inside of a function.

This works :


function queryDB($query)
{
include '../includes/config.php';
Forum: Graphics and Multimedia discussions 10-12-2011, 01:17 PM
Replies: 5
Views: 2,103
Posted By DR.Wong
Is there a mathematical difference between color hex codes?

Hey everyone,

I'm interested in color hex codes used in HTML.

Is there a mathematical difference between hex codes?

Lets say I have a dark shade of blue : #0000FF and I want to apply a...
Forum: Ajax and Design 02-11-2011, 01:17 PM
Replies: 1
Views: 1,278
Posted By DR.Wong
Ajax login doesn't work if the form wasn't present at page load

Hi all!

I'm having a small problem, I am using the jQuery AJAX login script below. The script works perfectly, however, the form exists on a page called "login.php" which is brought into a div...
Forum: JavaScript programming 08-18-2010, 07:00 PM
Replies: 2
Views: 2,065
Posted By DR.Wong
My bad, the form name is login_form.

My bad, the form name is login_form.
Forum: JavaScript programming 08-18-2010, 06:31 PM
Replies: 2
Views: 2,065
Posted By DR.Wong
Fancybox field focus

Hey there,

I have a form which open in a jQuery Fancybox Window.

The fancybox window opens automatically when the page loads. When it loads, I would like it to set focus on the username field...
Forum: PHP 06-09-2010, 12:29 PM
Replies: 3
Views: 1,178
Posted By DR.Wong
Let me put this slightly differently. Is...

Let me put this slightly differently.

Is there a function similar to the curl function that can return arrays and "true" or "false" variables etc?
Forum: PHP 06-09-2010, 12:20 PM
Replies: 3
Views: 1,178
Posted By DR.Wong
Thanks for the reply! Yes, I have dabbled in...

Thanks for the reply!

Yes, I have dabbled in the DOCUMENT_ROOT method...

However, what if I want to change something? And what if I want to adapt my code for another application?

Then I have...
Forum: PHP 06-09-2010, 11:39 AM
Replies: 3
Views: 1,178
Posted By DR.Wong
Call a function without including the function file

Hi all,

The obvious answer to calling a function that resides in another file is to include said file.

The problem with this, is when a site gets a bit larger and more complicated, directories...
Forum: PHP 05-18-2010, 12:31 PM
Replies: 5
Views: 430
Posted By DR.Wong
Thanks j05hr, That will work if I only want...

Thanks j05hr,

That will work if I only want to encrypt the password. You cannot decrypt an MD5.

I would want to encrypt the username and be able to decrypt it later.

I store all of my user's...
Forum: PHP 05-18-2010, 12:15 PM
Replies: 5
Views: 430
Posted By DR.Wong
Thanks for the reply! :) So, your suggestion...

Thanks for the reply! :)

So, your suggestion would be to go with the username and password?

As I understand it, keep the password "qwerty" stored as something like "213fsafdfas3fewe" and then...
Forum: PHP 05-18-2010, 11:44 AM
Replies: 5
Views: 430
Posted By DR.Wong
Advice Please : Which is safer session data?

Hi everyone,

I need your opinion and your advice on something.

To keep a user logged in to a website in PHP, we need to register some session variables.

There are many ways of doing this.
...
Forum: PHP 05-05-2010, 06:39 PM
Replies: 6
Views: 579
Posted By DR.Wong
Thanks a lot for that Fou-Lu. I'm going to...

Thanks a lot for that Fou-Lu.

I'm going to give it a try, I'll report back!
Forum: PHP 05-05-2010, 05:30 PM
Replies: 6
Views: 579
Posted By DR.Wong
Yep. I don't know how to code in object...

Yep.

I don't know how to code in object oriented programming..

Also, the reason I am doing inclusions like this is to be able to add a function by simply pasting a file into a directory then...
Forum: PHP 05-05-2010, 05:25 PM
Replies: 6
Views: 579
Posted By DR.Wong
Thanks for the reply. I have narrowed down...

Thanks for the reply.

I have narrowed down the problem.

It's not about the functioning of the code, it's about the fact that I have two functions which do different thing that have the same...
Forum: PHP 05-05-2010, 04:55 PM
Replies: 6
Views: 579
Posted By DR.Wong
Calling a function from within the same function?

Hi all!

I am writing quite a complex script which entails one main function which interprets an input and then includes a php file with the necessary function set depending on what the input was....
Forum: Computer/PC discussions 11-29-2009, 03:03 PM
Replies: 0
Views: 694
Posted By DR.Wong
Odd network question

Hey everyone!!!

I have a little home network with a couple macs, a few PCs and a linux machine attached.

The problem is with the internet.

The Network is constructed as follows :

1) ADSL...
Forum: Graphics and Multimedia discussions 11-05-2009, 08:21 AM
Replies: 2
Views: 1,072
Posted By DR.Wong
How to create this effect in photoshop??

Hi everyone!

I have noticed the trend of placing an inner white border around a rounded edge and I love the way it looks but I just can't seem to figure out how to do it. Check out the image below...
Forum: Apache configuration 10-08-2009, 03:40 PM
Replies: 4
Views: 1,344
Posted By DR.Wong
Thanks for the replies guys! Okay, I...

Thanks for the replies guys!



Okay, I will try this.

I do have one question though.

Let's say that the about_apples.php file is in the root, along with ALL other php files (instead of...
Forum: Apache configuration 10-08-2009, 12:36 PM
Replies: 4
Views: 1,344
Posted By DR.Wong
Clean URLs (just getting rid of ".php")

Hi there!

I would like to make my website's URLs nice and clean and simple.

I have no database interaction (thankfully) so this should be simple!

What I want :

I have my root directory...
Showing results 1 to 25 of 358

 
Forum Jump

All times are GMT +1. The time now is 05:24 PM.