Use javascript -- browser object
hth
/pS
On Friday, June 11, 2004, at 03:09 PM, Jason Barnett wrote:
Shaun wrote:
Hi,
Is it possible to use PHP to detect the type of browser accessing my
site.
For example if a PDA is using it I would prefer not to include large
graphics...
Many thanks for your he
Hello All,
I am designing a PHP and MySQL based online Testing Application.
The application will consist of about 120 lessons and each lesson will
have a quiz at the end of the lesson. There will also be some core
lessons that all test takers will have to pass before going ahead.
There wil
Also then the question
comes up, that I need to get hold of a PHP-based payment gateway.
Thanks again
-Pushpinder
On Tuesday, April 20, 2004, at 04:22 PM, John W. Holmes wrote:
From: "Pushpinder Singh" <[EMAIL PROTECTED]>
This is the situation at hand ... we have a PHP Sessi
that the Perl code knows the PHP session variable.
This ways I can keep track of the the user name/email/ order status etc.
I want to to know whether it is possible to do this. Thanks again !
--Pushpinder
On Tuesday, April 20, 2004, at 03:57 PM, John W. Holmes wrote:
From: "Pushpinder
create a new e-Cart
software by ourselves ? Any comments / suggestion will be welcome !
Thanks in advance
Pushpinder Singh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
// my appl logs the user out after about 30 mins
Thanks in advance
Pushpinder Singh
On Friday, April 16, 2004, at 08:54 AM, Marek Kilimajer wrote:
pete M wrote:
Am trying to increae the session lifetime to 8 hours ish
using this code
ini_set('session.gc_maxlifetime',28800);
doe
mandt¤telia.com
"Pushpinder Singh" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
Thanks Raditha,
Yes we are primarily looking at a PHP chat module which will
allow
us conduct an audio conference. I know there are Flash Voice Chat
versions but they are all for Windoz
Sorry I did not answer your question in my earlier reply, Thats
right the user will use a headset and microphone to communicate.
Thanks
Pushpinder
On Wednesday, April 7, 2004, at 12:06 PM, Raditha Dissanayake wrote:
What kind of voice chat are you talking about? are you refering to one
course of action // Thanks again
--Pushpinder
On Wednesday, April 7, 2004, at 12:06 PM, Raditha Dissanayake wrote:
Pushpinder Singh wrote:
Hello everyone,
I was wondering if anyone has used any PHP/MySQL based voice chat
system. (for MAC OS X Platform)
What kind of voice chat are you talking
Hello everyone,
I was wondering if anyone has used any PHP/MySQL based voice chat
system. (for MAC OS X Platform)
thanks in advance
Pushpinder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;login'];
}
Is this approach safe ?? Pl let me know. Also I use if
(isset($_SESSION['valid_user'] ) ) to check if the user is logged in on
secure pages.
Please comment.
Thanks in advance
Pushpinder Singh
___
Web Dev
On Tuesday, March 23, 2004,
;login'];
}
Is this approach safe ?? Pl let me know. Also I use if
(isset($_SESSION['valid_user'] ) ) to check if the user is logged in on
secure pages.
Please comment.
Thanks in advance
Pushpinder Singh
___
Web Dev
On Tuesday, March 23, 2004, at 10:38 AM, A
n the leftFrame.
So the question is: Can I make a call to 2 logout scripts one each in
the mainFrame and the leftFrame using a single click event in either
frame. Thanks in advance.
regards
Pushpinder Singh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello again,
I was wondering if anyone had a chance to take a quick peek at this
code. Thanks again guys !
-Pushpinder
On Tuesday, February 17, 2004, at 10:49 AM, Pushpinder Singh wrote:
Hello Everyone,
I am making use of the following login module. However, it tells the
user to login at
ed)
allows the users to get to the welcome screen.
Register_Globals is ON on the remote host, I would really appreciate
any pointers on this one. Thanks in advance.
regards
Pushpinder Singh
START OF CODE
error_reporting(E_ALL);
if ( (
hello everyone.
I am using PHP and MySQL on my website. Till now I was using a
Login module with sessions, but the look and feel was not quite up to
the mark. I have the functionality working just fine. I was wondering
if I cold get my hands on a 'Login' module like www.zend.com (and other
You need to test this page on a webserver. I assume you are on a Win
system .configure IIS to understand php and then place all your scripts
in C:/Inetwin/ folder and u shud be set.
hth
ps
On Friday, January 30, 2004, at 01:51 PM, Ash wrote:
Hi,
I am totally new to PHP and dont know a thing. I
Yes, I have used a .htaccess file in a Web Directory to prevent http
access to its contents.
Thanks again !!
-Pushpinder Singh
On Saturday, January 24, 2004, at 12:59 AM, Jason Wong wrote:
On Saturday 24 January 2004 05:46, Pushpinder Singh wrote:
I tried to keep a .htaccess file in the
Hello All,
I tried to keep a .htaccess file in the Dir that my application
esided in and kept the session lifetime of about 8 hrs. However I
checked to see after 2 hr and it had already kicked me out of the
system. Please advise.
Thanks in advance
Pushpinder Singh
On Friday, January 23
:
Pushpinder Singh wrote:
Thanks much John,
I have about 8 different pages that are all session linked. Do I
have to add this ini_set() at the beginning of all the
session_start() calls on all these pages.
You should only have to do it for the first time session_start() is
called, but not knowing
Thanks much John,
I have about 8 different pages that are all session linked. Do I have
to add this ini_set() at the beginning of all the session_start() calls
on all these pages.
Thanks again and I am sorry if my question sounded lame.
Pushpinder Singh
On Friday, January 23, 2004, at 11:49
Thanks John,
I dont have rights t change this value for my webserver. I only want
this value to be changed for my application. Is there a way to take
care of this ? Thanks again !!
Pushpinder
On Friday, January 23, 2004, at 11:28 AM, John Nichel wrote:
Pushpinder Singh wrote:
Hello All
Hello All,
I am using php and Mysql in my application. The problem is that the
system automatically logs the user out of the system after 24 minutes.
I would like to extend the session lifetime to about 2-3 hrs. I know
there is a way to do it using a .htaccess file kept in the same folder
as t
hello all,
I am trying to develop an online testing module using PHp and MySQl
on a Mac Platform. The module will need to have users authenticated
before they can take the test. After that the system should take care
of storing the scores of the users intp MySQL..Since I currently use
Dream
Dang ! I get this error when I try to check for priv settings for my DB
SQL-query :
USE mysql
MySQL said:
Access denied for user: '[EMAIL PROTECTED]' to database 'mysql'
Please advise. Thanks
Pushpinder
On Tuesday, January 6, 2004, at 02:29 PM, Jay Blanchard wrote:
[snip]
I am still stuck
"Pushpinder Singh" <[EMAIL PROTECTED]> píse v diskusním príspevku
news:[EMAIL PROTECTED]
Hello All,
I am trying to import data into MySQL DB using a CSV file
(using
phpMyAdmin as the DB Admin tool). I keep getting the following error.
SQL-query :
LOAD DATA LOCAL INFILE '
Hello All,
I am trying to import data into MySQL DB using a CSV file (using
phpMyAdmin as the DB Admin tool). I keep getting the following error.
SQL-query :
LOAD DATA LOCAL INFILE '/tmp/phpYRmG0A' INTO TABLE `contacts` FIELDS
TERMINATED BY ';' LINES TERMINATED BY '\n'(
`company` , `firs
Hello everyone,
I have created a PHP and MySQL powered, web-based CRM package
for our office. It simply takes care of our telephone marketing
strategy. I need to provide this CRM package to our other clients as
well. The CRM package makes use of 2 tables i.e. 'Admin' and 'Contacts'
. Th
Hello all again,
I am still having trouble opening a jpg image using
header("Content-type: image/jpg");
$file = "docs/picture1.jpg";
header("Content-disposition: attachment; filename=$file" );
readfile($file);
T
on the MAC side of things, it just shows the image in
the same frame.
Any suggestions would be most welcome. !
Thanks in advance
Pushpinder Singh
No I am not sending any headers to the browser. Any suggestions !
Thanks
On Wednesday, October 1, 2003, at 04:05 PM, Tyler Lane wrote:
Are you sending a Content-Type header to the browser to let it know
what
type of file you are sending it?
--
PHP General Mailing List (http://www.php.net/)
To u
Hello All
I need to allow a user to access a PDF file, only if he/she is logged
in as a registered user. So here is the code that I am trying to use. I
have been able to make this work in the past, when I had to read .html
file, now since the file in question is a .pdf file, I am having
troubl
I am currently using sessions on my site // are you suggesting that I
store all the possible 30 form variables in a temp session array. ??
and destroy it afterwards
Thanks
-Pushpinder
On Tuesday, September 2, 2003, at 04:41 PM, Matt Matijevich wrote:
[snip]
then the forms
variables are stored a
Hello everyone,
I am making use of a php form to add company details to a MySQL
Database. Before I add the form variables I am checking to see if the
SAME company name exists in the DB. If the same company exists, then a
notification is provided. In between this , the variables that were
ente
Thanks for the link,
$link = $row['company'];
However this does not seem to work / what am I missing ?
Thanks
-Pushpinder
On Friday, August 22, 2003, at 03:23 PM, CPT John W. Holmes wrote:
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
I am using an ap
Hello All,
I am using an application where I retrieve user profile from a MySQL
DB using the Company Name . I pass the name of the company to the PHP
script as a '$_GET' parameter. e.g. when the name of the company is
'IBM'. , the URL with the query string would look like :
http://masterstrea
Thank you Jay for responding.
Let me clarify again. The $_GET Parameter was used to to transfer the
name from the results page (with the tables etc) to a
full-profile_1.php page. On the full_profile_1.php page the user is
displayed a form with all the details about the company. On the same
p
Hello,
I am trying to display the rows of a MySql Query in a table. I
retrieve the result using the query :
while ($row = mysql_fetch_array($result1, MYSQL_ASSOC))
{
$email_1 = $row["email_1"]
Hello All,
I am using php and mysql in my application which allows users to
search/query a database. The database is cast and has about 32 rows per
record. When the user fires the query, the result is in the form of a
table that contains only the 6 important rows of the entire record.
Als
Thank you so much ! it works fine now ;)
--Pushpinder
On Wednesday, August 13, 2003, at 12:01 PM, Larry E. Ullman wrote:
And I try to display it in the table using this :
>
if I try to echo the variable $email_1, I get the correct value i.e.
"thisisa long e-mail address"
/// However when it c
Hello Jay ,
I am attaching snippet of the Form Code that displays the results of
the first query
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
"; ?>
Complete
Candidate Profile
Hello again,
I would appreciate if someone could help me out with this one.
Thanks again
--Pushpinder
On Friday, August 8, 2003, at 11:46 AM, Pushpinder Singh Garcha wrote:
Hello All,
I am using php and mysql in my application which allows users to
search/query a database. The database
Hello All,
My application has a search / query feature where in the user
selects the search criteria and is displayed a page containing the
reults. The user must also be allowed to edit these results and save
them later on. On the results page I use the following logic,
//
// START OF P
Hello Chris,
I am using Apache webserver on the MAc Jaguar OS Platform
Regards
--Pushpinder
On Monday, July 28, 2003, at 05:02 PM, Chris Shiflett wrote:
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote:
I am using session_start(). All the pages after the login page use
sessions an
Shiflett wrote:
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote:
However if I decided to use the sessions approach how would I go about
it? I am just curious to find out why $_SESSION['company_name'] =
$company_name; duz not werk for me!
Did you use session_start() like I mentio
Thanks John,
I used the $_GET['name'] on the next page to access the
selection.
http://psg.local/~psgarcha/CRM/full-profile.php?name=jack
http://psg.local/~psgarcha/CRM/full-profile.php?name=tim
http://psg.local/~psgarcha/CRM/full-profile.php?name=mary
http://psg.local/~psgarcha/CRM/fu
array $company_name as a
session var and access it on the following page. $_SESSION['link'] =
$company_name;
does not seem to work since it gives NULL when i try to echo
$_SESSION['link'];
Thanks in advance
--Pushpinder
On Monday, July 28, 2003, at 03:43 PM, Chris Shif
$details is empty !!
Thanks
--Pushpinder
On Monday, July 28, 2003, at 03:31 PM, CPT John W. Holmes wrote:
$details is an array (just like $company_name was). Try to view
print_r($details); and see what you get.
---John Holmes...
- Original Message -
From: "Pushpinder Singh G
one fill me in on this. Appreciate it ! Thanks in advance.
--Pushpinder Singh
hello everyone,
I am trying to store one of the fields of the resultset into an array
as I display the results.
while ($row = mysql_fetch_array($result1)) {
// Alternate the bgcolor of each row for visibility
($even % 2) == 0 ? $bgcolor = "#EFEFEF" : $bgcolor =
"#eefff
Thanks Tom,
I appreciate your help ! however I have a 2 quick questions...
1.) should we not save the names of the companies as $companies[$row]
= $row['company'];
2.) the approach of accessing the variable as $details =
$_SESSION['link']['$_GET['name']] is not
working , when I try
Hello All,
I am trying to create a small MySQL application using PHP. I have a
table of contacts with each record having over 30 fields. I have a
search page where a logged-in admin can search for a particular record
on the basis of certain parameters.
This is a sample code:
browser. I am sorry if this is a repeat question because someone
earlier did mention abt output buffering as a way around.
TIA
--Pushpinder
On Thursday, July 24, 2003, at 12:11 PM, Curt Zirzow wrote:
* Thus wrote Pushpinder Singh Garcha ([EMAIL PROTECTED]):
try this,
use a meta-refresh ...
echo
try this,
use a meta-refresh ...
echo "http://wherever_u_wana_go.com/hello.html\";>";
hth
--Pushpinder
On Thursday, July 24, 2003, at 11:24 PM, Beauford.2005 wrote:
It's obvious though that PHP can not handle it. This is why I am forced
to use javascript. I have already spent a week on this a
schrieb Pushpinder Singh Garcha:
Hello ,
Can someone tell me what is wrong with the following querys ? I am
pretty sure its got something to do with the quotes around $_POST[]
variables.
$sql1 = "SELECT * from `admin` where `admin`.user =
'"$_POST['validuser']"' A
Hello ,
Can someone tell me what is wrong with the following querys ? I am
pretty sure its got something to do with the quotes around $_POST[]
variables.
$sql1 = "SELECT * from `admin` where `admin`.user =
'"$_POST['validuser']"' AND `admin`.pwd = '"$_POST['password']"'";
$sql1 = "SELECT * f
Thanks ...I figured out something myself
--Pushpinder
On Monday, June 30, 2003, at 11:41 AM, Pushpinder Singh Garcha wrote:
Hello All,
I am trying to setup a simple login script on my development server
running Mac OS Jaguar. I keep getting an error
Parse error: parse error in /Users
Hello All,
I am trying to setup a simple login script on my development server
running Mac OS Jaguar. I keep getting an error
Parse error: parse error in /Users/psgarcha/Sites/CRM/ADMIN-LOGIN.php
on line 2. I am at a complete loss !
Here is the source code. Please help.
-
Hello All,
I am using phpMyAdmin to administer my MySQl DB. I am running Mac OS
Jaguar.
when I try to start up phpMyAdmin I get an error:
Welcome to phpMyAdmin 2.4.0
Error
MySQL said:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
So I try to start up the MySQL Serv
On Friday, June 13, 2003, at 02:22 PM, Zak Johnson wrote:
$_POST variables are still subject to poisoning; in your case, SQL
injection.
How is variable poisoning possible when using $_POST ?? I always felt
that the php compiler should check to see if the variable was part of
the POST Global arr
Hello everyone,
I am trying to execute a simple query using $_POST variables, so
that variable poisoning is not possible. note: I have register_globals
ON on my site. I am getting the error shown below . Please advise ...
as I can't seem to figure out why !
// connect to the BD/Table et
Hello all,
I have php ver 4.1.1 running with register_globals() ON on my site. I
am trying to use sessions to maintain state during a visit to the site.
I have read thru the manual, but my mind is still cluttered with
doubts. I understand that use of the $_SESSION global array will
greatly ad
the session. I am a newbie in PHP
session handling and am sorry if any of the above questions sound
extremely lame.
Thanks in advance,
--Pushpinder
On Wednesday, May 21, 2003, at 04:34 PM, Ernest E Vogelsinger wrote:
At 21:51 21.05.2003, Pushpinder Singh Garcha said:
[snip
I am having the same story on my Win XP system. I hv looked all over
message brds @ phpbuilder/zend/php.net . No success
Please let me know if you are able to sort it out.
Thx
--Pushpinder
On Tuesday, May 27, 2003, at 12:07 PM, Brian Dunning wrote:
Hi,
I am a lamer & a newbie, and ran the PHP a
PHP Files
TIA
Pushpinder Singh Garcha
_
Web Architect
-----
From: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 1:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Help Needed
Hey All
My Php App is trying to fopen() and fread() a File that is located in
the Web Server. This works if the file is a simple html file. However
the c
subsequently exported as a html.
Any help will be highly appreciated
TIA
Pushpinder Singh Garcha
_
Web Architect
particular file for him. My question is:
after checking for the session, how does the php script know what file
to open..meaning what file was linked by that URL.
Please help!
Pushpinder Singh Garcha
_
Web Architect : www.MasterStream.com
--
PHP General Mailing
sts
3. If seesion exists , I would fopen() the file provided the correct
file name is passed to the script
Thanks
Pushpinder Singh Garcha
_
Web Architect : www.MasterStream.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
nction has been
disabled so you may have to FTP or SSH into your account and set the
permissions for the file manually using the chmod command. Good luck.
- Kevin
- Original Message -
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sen
ble to
see
the contenst of the file from the Browser. Please suggest some remedy.
Thanks in advance
Pushpinder Singh Garcha
_
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello all
My php script needs to read a text file that is stored in the same Dir
as the php file. However I do not want to allow users to be able to see
the contenst of the file from the Browser. Please suggest some remedy.
Thanks in advance
Pushpinder Singh Garcha
Begin forwarded message:
From: Pushpinder Singh Garcha <[EMAIL PROTECTED]>
Date: Thu Feb 27, 2003 7:57:38 PM US/Eastern
To: olinux <[EMAIL PROTECTED]>
Subject: Re: [PHP] Help with Arrays
Thanks
My question was that each line of the file should be stored as one
element of the ar
234
www234
edr234
vfr456
When I echo "$temp[0]" ... I get abc111 asd123 aqw234 www234 edr234
vfr456 on one straight line, which is weird. I should get it on
separate lines.. Also I am unable to separate the lines of the file
using the explode().
Any help will be highly appreciated
--Pushpinder
Pushpinder Singh Garcha
_
Web Architect
;
}
?>