RE: [PHP-DB] Unable to connect to mysql database

2010-08-10 Thread 3dgtech
Hi there,

You will have to adjust the configuration file (configuration.php) in your
root folder for the new site. 
var $host = ;
var $user = ;
var $db = ;
they have to reflect the new settings.
Hope that helps.

Eli Aschkenasy

-Original Message-
From: nagendra prasad [mailto:nagendra802...@gmail.com] 
Sent: Tuesday, August 10, 2010 12:18 PM
To: phpexpe...@yahoogroups.com; PHP DB; php-wind...@lists.php.net
Subject: [PHP-DB] Unable to connect to mysql database

Hi All,

I am working on a site which is developed in joomala. We have our domain on
www.net4.in. Initially we have tested the site on the WAMP server locally.
On the wamp server its working fine, however when we tried to configure it
on www.net4.in its not working at all. The site is giving an error called
unable to connect to database. I have already configured the config file.
Can anyone tell me how to connect the script with the database? Dose anyone
have any experience working on www.net4.in control panel?

Best,
Guru.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] RE: [PHP-WIN] Re: Need Help in setting up a server

2010-06-30 Thread 3dgtech

Well, there are two more things to do.
1. If you have a router you will have to forward the ports for the  
webserver (80, etc) to the correct internal ip. - depending on your  
security needs consider putting your webserver into the fm
2. There are multiple services out there that offer dynamic dns (dyndns.com 
, etc) these might even be an option from within your router and would  
allow you to get a public domain name even if you don't have a  
static ip.


Let me know if you need more info.
Regards,
eli aschkenasy

On Jun 30, 2010, at 6:55 AM, Chaitanya Yanamadala dr.virus.in...@gmail.com 
 wrote:


u can do one more thing, u need to get a public ip or a static ip  
from ur
ISP, this will make sure that u have a constant ip on ur machine so  
that it

can be accessed from anywhere..


Chaitanya


On Wed, Jun 30, 2010 at 2:10 AM, Warren Vail war...@vailtech.net  
wrote:


The IP you cited Is the IP provided by your router or modem, and  
not one
others from out side can use to access your server.  Now on the  
other

side
of that, if you go to the machine that has the WAMP installed and  
open a
browser and point it to http://what.is.my.ip.com; you may see the  
public
IP for that machine, which can be used for linking to your server,  
but is
not guaranteed to stay with that machine depending on powering up  
and down

of your systems, and your ISP's procedures for assigning IP's.

Hope this helps,

Warren Vail
Vail Systems Technology

-Original Message-
From: nagendra prasad [mailto:nagendra802...@gmail.com]
Sent: Tuesday, June 29, 2010 1:12 PM
To: phpexpe...@yahoogroups.com; PHP DB; php mysql;
php-wind...@lists.php.net
Subject: [PHP-WIN] Re: Need Help in setting up a server

Hi all,

Thanks everyone. I just tried all of your suggestions and found  
that WAMP
server is working by using the running WAMP server's system IP. I  
just

typed
192.168.1.4 in the address bar and its working now. So, I came to a
conclusion that if I have a static IP then I can access it from out  
side as
well right. Correct me if I am wrong ?? So, if I am right is it  
possible to

run a server from home ??


Best,
Guru.


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] upload images

2010-05-31 Thread 3dgtech
It could work, but be careful using timestamp or the php equivalent -  
microtime since this is reliant on gettimeofday(). If naming  
conventions don't mandate a sterilized format I woul still recommend  
using a confirmed new variable.

Just my two cents :-)
Eli

On May 30, 2010, at 10:04 PM, Karl DeSaulniers k...@designdrumm.com  
wrote:



Very good point. I did not think of that.
Change it from time() to the date + time() w/ seconds. Every second  
changes. Or better yet, milliseconds. Since that is the speed the  
script runs in I believe.


That should work. Yes?

Karl

Sent from losPhone

On May 30, 2010, at 6:57 PM, 3dgtech syst...@3dgtech.com wrote:

The problem with time() is that fast servers are too fast! (you  
will have processed multiple files before time() changes.) Add the  
$i from the for loop in multiple images to the end of your filename.



On May 30, 2010, at 4:33 PM, Karl DeSaulniers  
k...@designdrumm.com wrote:



Try this
Try assigning time() to a variable then add that to the rename.

EG:

if ($_FILES['foto']['type'] == image/jpeg ||
$_FILES['foto']['type'] == image/pjpeg){
 //nombre de la imagen
 $timestamp = time();
 //movemos la imagen.
 move_uploaded_file($_FILES['foto']['tmp_name'],
../fotografias/.$timestamp..jpg);

HTH,




Karl DeSaulniers
Design Drumm
http://designdrumm.com



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] upload images

2010-05-30 Thread 3dgtech
The problem with time() is that fast servers are too fast! (you will  
have processed multiple files before time() changes.) Add the $i from  
the for loop in multiple images to the end of your filename.



On May 30, 2010, at 4:33 PM, Karl DeSaulniers k...@designdrumm.com  
wrote:



Try this
Try assigning time() to a variable then add that to the rename.

EG:

if ($_FILES['foto']['type'] == image/jpeg ||
$_FILES['foto']['type'] == image/pjpeg){
   //nombre de la imagen
   $timestamp = time();
   //movemos la imagen.
   move_uploaded_file($_FILES['foto']['tmp_name'],
../fotografias/.$timestamp..jpg);

HTH,




Karl DeSaulniers
Design Drumm
http://designdrumm.com



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] MySQL vs. Session array

2010-04-07 Thread 3dgtech
Quick question. I have an AJAX component that fires a like query for  
each key up event (since it's a like % query there is no indexing or  
caching possible). While everything works fine, I was contemplaining  
downloading the ~1500 rows into a session var as array, offloading the  
(seperate) mysql server and utilizing the (underutilized) php server.  
Any thoughts?

PS: maybe even offload it to a JavaScript function??

Thank you,
Eli

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php