Jeyush 0 Newbie Poster

Thanks!!

Do everybody have same to say?

got stuck.

Jeyush 0 Newbie Poster

Hi thanks for your quickest reply. :)

When I changed config settings for the abc.com to xyz.com then abc.com redirects to xyz.com.

www.abc.com

/* Database Host Name */ 
$db_host = 'localhost'; 
 
/* Database Username */ 
$db_username = '******'; 
 
/* Database Login Password */ 
$db_password = '******'; 
 
/* Database and Session prefixes */ 
define('DB_PREFIX', 'proads_'); ## Do not edit ! 
define('PPA_DB_PREFIX', 'proads_'); ## For integration purposes - do not edit! 
define('SESSION_PREFIX', 'proads_'); 
define('PPA_SESSION_PREFIX', 'proads_'); ## For integration purposes, needs to be the same as SESSION_PREFIX if edited 
 
/* Database Name */ 
$db_name = 'database';

when I change one of them config settings same as other, then It redirects to that website.

Cheers!!! :)

Jeyush 0 Newbie Poster

Hi,

I have two sites www.abc.com and www.xyz.com, both are using phpproads. I just want one database for those two websites.

PHPPROADS uses database table to redirect site url, but not found how and where it redirects code lies.

If anybody knows anything about that then please share with me.

Cheers!!!
:)

Jeyush 0 Newbie Poster

I write javascript for image slide show.

var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [380, 469], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
<?php $q2 = mysql_query("select * from home_flash");
$i = 0;
while($res = mysql_fetch_array($q2))
{
	$image[$i] 	= $res[1];
	$text[$i] 	= $res[2];
	$str = "['images/fla/".$image[$i]."','','','".$text[$i]."'],";
	echo $str;
	$i++; 
} ?>

//<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "always",
togglerid: ""
})

In IE I got an error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2)
Timestamp: Sat, 20 Mar 2010 06:22:10 UTC

Message: 'imagearray[...].0' is null or not an object
Line: 37
Char: 3
Code: 0

If you have solution for thi, then please help with it!

Thanks for your precious time.

Cheers!!

Jeyush 0 Newbie Poster

When I echo that target path it show me the full path like this,

http://projects.abc.com/upload/project/image-name, and that update query run successfully and add the new name of the image in database but no photo uploaded in the desire location.

Jeyush 0 Newbie Poster

Hi buddy,

I have small script which upload the images. This script is working perfectly fine in

localhost but when I upload that script to my website then it is not uploading the pictures.

I have subdomain in my website names as http://projects.abc.com,

In projects folder I have my photo upload script.

Here I add some code from my file.

$numfilesuploaded = $_POST['numuploads'];
      $count = 1;
 
          while ($count <= $numfilesuploaded)
          {
                  $conname = "new_file".$count;

                   $filetype = $_FILES[$conname]['type'];

                   $filename = $_FILES[$conname]['name'];

                  if ($filename != '')
                  {
                    if ($filetype == "image/x-png" || $filetype == "image/pjpeg" || 

$filetype == "image/gif" || $filetype == "image/jpeg")
                    {
                        $maxfilesize = $_POST['maxsize'];
                        $filesize = $_FILES[$conname]['size'];
                        if($filesize <= $maxfilesize )
                        {
                              $randomdigit = rand(0000,9999);
                             
                              $newfilename = $randomdigit.$filename;
                              $source = $_FILES[$conname]['tmp_name'];
                              $target = "upload/project/".$newfilename;
                              move_uploaded_file($source, $target);
							 	$sql_update		=	

"UPDATE project SET
												

		photo".$count." = '".$newfilename."',
												

		modified_date = now()	
												

	WHERE project_id	=	'".$str_project_id."' ";	
								tep_db_query($sql_update, 

$conn);
                        }
                        else
                        {
                            echo $count." File is too big! 10MB limit! |";
                        
                        }
                    }
                    else
                    {
                        echo " The file is not a supported type |";
                    }
                  }
          $count = $count + 1;
          }

If you have some sort of solution then please help me.

Thanks for read my post!

Jeyush 0 Newbie Poster

Thanks buddy, it's worked, thanks for your time!!!

Jeyush 0 Newbie Poster

Hi mate,

I use regex for my validation but @ this time I get confuse, how to use white space in it.

I want user to enter a city name, some city name contains white space like Los Angeles, New York, I have regex which is not allowing user to enter digits with city name.

like,

if(ereg('[^A-Za-z]', $city))  {     
        echo "Only Characters Allowed";
    }
    else {
        echo "Thank You";
    }

This code does not allow user to enter digits in between city name, but this code does not allow me to enter space in between. If you have any suggestion for me then please draw my attention towards that.

Cheers!!

Jeyush 0 Newbie Poster

Can you provide some code, it will be much easier for someone to help you.

Hi Thirusha, thanks for replying me. I have got my solution. so thanks for your concern.

Bye TC

Jeyush 0 Newbie Poster

Hi mate,

I have a problem in javascript/php/ajax.

Look I have three pages 1)index.php 2)login.php 3)client.php. At index.php I have a link to login page, it opens a popup. When I submit the login page and try to redirect to client page, Here is the problem arise.

I successfully redirect to the client page but it opens in popup window.

Did anyone know How to get rid of that? I want, when I click on submit the client page open at same location on parent window.

Any help would be appreciated.

Cheers!!!