Justin Patrin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Jas wrote:
Combination of session vars and cookie vars...
example...
[login page]
sets cookie with auth=0 (variable)
sets session with auth=0 (variable)
[logged in page(s)]
sets cookie with auth=1 (variable
Hi all,
I keep getting this error:
Notice: Undefined index: tutor_id in /usr/local/..
What does undefined index exactly mean?? I did a search on the web but
couldn't find any solutions.
The line that cause this error is as follow:
$tutor_id = $_POST[tutor_id];
.
.
.
.if($action
On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote:
I keep getting this error:
Notice: Undefined index: tutor_id in /usr/local/..
What does undefined index exactly mean?? I did a search on the web but
couldn't find any solutions.
Basically it means you're trying to access a
Sheawh wrote:
Can i run PHP using Apache tomcat server??
From Google:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg108708.html
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote:
I keep getting this error:
Notice: Undefined index: tutor_id in /usr/local/..
What does undefined index exactly mean?? I did a search on the web but
couldn't find any solutions.
Basically it means you're trying to
Could somebody tell me way I am getting an error in this SQL syntax.
$query = insert into majordomoaliases
(domain,address)values(\$domname\,\$virtdomain-majordomo:\|$wrapper
majordomo -C $domaincf\);
error=You have an error in your SQL syntax. Check the manual that
corresponds to your
You have started a new thread by taking an existing posting and replying to
it while you changed the subject.
That is bad, because it breaks threading. Whenever you reply to a message,
your mail client generates a References: header that tells all recipients
which posting(s) your posting refers
Scott Fletcher wrote:
Sample script I have here is this...
--snip--
a href=http://www.yourserver.com/yourpage.htm#RowNum3;
target=docJump/a
iframe id=doc name=doc
src=http://www.yourserver.com/yourpage.htm;/iframe
--snip--
Where yourpage.htm have this a href='#' name='RowNum3'blah blah/a
So,
On 11 December 2003 19:58, Peter Walter wrote:
I hope you mean session_start().
Yes, I did. Getting a bit dyslexic nowadays.
Well, you would, because PHP would use the value from the PHPSESSID=
URL parameter.
... except that on the second call, the url (as displayed by
the
On 12 December 2003 00:03, Steve Turner wrote:
Hi,
I am having a problem with sessions. On my testing
machine my script
works perfectly. However on the remote server it tries to
pass the session
id in the url even though I am accepting cookies. It is
messing up all my
links since it
On 12 December 2003 06:07, motorpsychkill wrote:
Thanks Tom, that worked! I knew that $$level had something
to do with it,
just wasn't sure what exactly. Thanks again.
-m
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 9:34 PM
Hi all!
We have developed a groupware web server written in PHP. We were
interested in integrating some communication interfaces in Java, using
Tomcat, in this application, but we have not found an efficient way to
call PHP functions from a Java program. We would prefer not to use
[EMAIL PROTECTED] wrote:
On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote:
I keep getting this error:
Notice: Undefined index: tutor_id in /usr/local/..
What does undefined index exactly mean?? I did a search on the web but
couldn't find any solutions.
Basically it
Greetings! First time posting. Hope this is the right place. Feel free to
email directly or CC.
I am trying to get up to speed on using PHP. One of the fastest ways I
learn is by reading commented code snippets.
I am asking for 2 things.
1. Can someone please 'comment' the below code
I think you are out of luck, depending on how complicated your function
calls are (and their return values), you can either set up a basic
commandline script which will read in variables and output the return
value, the execute this using c/java
if it is more complicated than that, you will
[snip]
Greetings! First time posting. Hope this is the right place. Feel free
to
email directly or CC.
[/snip]
Welcome! Always reply to all so that the list can see the answers unless
you asked specifically to reply off-list.
[snip]
?php
/* set up a function to accept 4 variables */
function
On Fri, 2003-12-12 at 01:06, Pavel Jartsev wrote:
Sheawh wrote:
Can i run PHP using Apache tomcat server??
From Google:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg108708.html
One thing to point out here is that you can run php files from tomcat
itself as cgi...however, that would
That would have been nice but it doesn't seem to work. Alright, I guess
I'll redo the script to make it work differently...
Thanks,
Scott
Stuart [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Scott Fletcher wrote:
Sample script I have here is this...
--snip--
a
Whoop! I think I found the problem, let me fix it and see if that work..
Scott Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
That would have been nice but it doesn't seem to work. Alright, I guess
I'll redo the script to make it work differently...
Thanks,
Scott
It does work now. Going the other way around does the trick. Surprisely,
PHP doesn't treat it as if two seperate thing are combined into one post
data, like color for example that would be displayed as 'redRowNum3'.
Thanks,
Scott
Scott Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL
Hi,
I have written a login system in PHP which appears to work OK except on
a particular windows network. Basically the user can log in, but after
viewing a few pages IE crashes.
I can view the same site on my PowerBook using Safari with no problems.
The offending code is as follows:
?php
From: Matt MacLeod [EMAIL PROTECTED]
if (!ISSET($_SESSION['loggedin'])) {
header(Location: /admin/login/);
put exit(); after your header redirect and use a full URL for your location.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 12 December 2003 14:51, Scott Fletcher wrote:
It does work now. Going the other way around does the trick.
Surprisely, PHP doesn't treat it as if two seperate thing are combined
into one post
data, like color for example that would be displayed as 'redRowNum3'.
That's because PHP never
John,
Have tried this but unfortunately had no effect.
Everything appears to fine if the session variable does not exist ie:
the user is redirected to the log in page.
It's just when the user has logged in and the session is set that IE
throws it's toys out of the pram.
Cheers,
Matt
On
PHP never sees the #RowNum3 part. That is used exclusively by the browser as
it is not parsing instructions, just tells you what part of the parsed page
to look at.
Chris
a href=http://www.yourserver.com/yourpage.htm?color=red#RowNum3
target=docJump/a
--
PHP General Mailing List
Hello,
On 12/11/2003 10:17 PM, [EMAIL PROTECTED] wrote:
May i ask what the difference is between rss and xml ? Also will these
RSS is just a format based on XML. RSS is usually meant to produce site
news feeds.
classes generate it from the database ?
I am not sure. I have not checked them all.
I have the following problem
I have htmlcode like this:
form name=login method=post
/form
and with this feature
it's printed out like this:
form name=login method=postinput type=hidden name=SID
value=aa55e1a335a4d32af8b38953f077e18b /
/form
The problem is the / at the end.
Has anyone seen
Ewald Geschwinde wrote:
form name=login method=postinput type=hidden name=SID
value=aa55e1a335a4d32af8b38953f077e18b /
The problem is the / at the end.
Has anyone seen this before?
What can I do against it?
Why do you want to get rid of it? It's there to make it valid XHTML. It
shouldn't cause
--- Ewald Geschwinde [EMAIL PROTECTED] wrote:
form name=login method=postinput type=hidden name=SID
value=aa55e1a335a4d32af8b38953f077e18b /
[snip]
The problem is the / at the end.
Why is this a problem?
Has anyone seen this before?
Yes.
What can I do against it?
Please explain what
Trying to build PHP 4.3.4 as apache 2.0.48 module with OpenSSL 0.9.6b support
but while build doesn´t make any complaints I can´t see secure layer stream
on the phpinfo() http://www.blakout.net/temp/ page and neither does any
file(https://someurl) works. Here are the compilation options:
Somebody, IIRC, told the list that the argument for header(Location...
has to be a complete url, not just a directory, ie:
header(Location: http://www.alenet.com/;);
exit();
HTH
Cesar
Matt MacLeod wrote:
John,
Have tried this but unfortunately had no effect.
Everything appears to fine if the
Steve,
As Mike said, I have a similar problem. I am using PHP 4.1.2. What
release are you using?
Peter
Mike Ford wrote:
On 12 December 2003 00:03, Steve Turner wrote:
Hi,
I am having a problem with sessions. On my testing
machine my script
works perfectly. However on the remote server it
I did not know that this is valid xhtml output
I'm using
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
And this / at the end is destroying my layout.
Maybe my layout is wrong
Do you think it is better to make it an xhtml layout???
Regrads Ewald Geschwinde
Chris Shiflett wrote:
On Fri, Dec 12, 2003 at 09:49:29AM -0500, Ewald Geschwinde wrote:
:
: I have the following problem
:
: I have htmlcode like this:
: form name=login method=post
: /form
:
: and with this feature
: it's printed out like this:
:
: form name=login method=postinput type=hidden name=SID
:
--- Ewald Geschwinde [EMAIL PROTECTED] wrote:
And this / at the end is destroying my layout.
I seriously doubt that. As I said, it's valid markup, and I'm not aware of
any major browser that mishandles it. Even IE gets it right.
As a test, have you tried replacing it with whatever you think is
ok I will have a look at it
thanks for your help
Chris Shiflett wrote:
--- Ewald Geschwinde [EMAIL PROTECTED] wrote:
And this / at the end is destroying my layout.
I seriously doubt that. As I said, it's valid markup, and I'm not aware of
any major browser that mishandles it. Even IE gets
I would like to check if i have a correct url enterend
?php
eregi(^http://[([0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$, $websiteUrl);
?
---
Philip J. Newman
Master Developer
PhilipNZ.com [NZ] Ltd.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
try the PEAR Validate class
you can do Validate::url($websiteUrl);
by the way, preg is quicker than ereg
Mike
Philip J. Newman wrote:
I would like to check if i have a correct url enterend
?php
eregi(^http://[([0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$, $websiteUrl);
?
---
Philip J. Newman
Master
Hi,
We were running php files prefectly well a little while back, then we
restarted apache and now the php files are not executing, instead its giving
us a save dialog box...
What to do and what do you think is wrong.
Please help.
Thanks,
-Ryan
http://Bestwebhosters.com
--
PHP General
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
on Friday, December 12, 2003 12:43 AM said:
First I'm going to +1 Jason's comment.
Then I'm going to give you a tip.
Could somebody tell me way I am getting an error in this SQL syntax.
$query = insert into majordomoaliases
[snip]
We were running php files prefectly well a little while back, then we
restarted apache and now the php files are not executing, instead its
giving us a save dialog box...
What to do and what do you think is wrong.
[/snip]
Why did you restart Apache? Is your php.ini intact?
--
PHP General
Thank you Al for the pointers. This has been very helpful!
-m
-Original Message-
From: Al [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 10:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: passing arrays?
$level = '$level_' . $_SESSION['user']['level'];
//Where
--- Ryan A [EMAIL PROTECTED] wrote:
the php files are not executing, instead its giving us a save dialog
box...
Add this to your httpd.conf:
AddType application/x-httpd-php .php
Make sure that the right httpd.conf is being used by the Web server you
are requesting from, and also make sure
Hi List.
I need to know how to sync Outlook with MySQL via PHP. I know this is
an old topic, but I cant find a clue (is it friday?). Please advise.
Thanks, Cesar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Thanks for replying.
We are on a freebsd account, the way we are setup is:
../apache/httpd.conf
../apache/virtual_hosts/www.sitename.tld.conf
we basically had to add some directives to one of the domains, which we
added and then put it back in the virtual_hosts directory, we later took out
Hi,
Thanks to everyone who replied.
I still dont know what was wrong but heres what I did and PHP is working
again,
I went back in, stopped apache, called the domain from my browser...then
waited a minute, started, and it worked.
Only thing is, i dont know what caused it.
(It even accepted
--- Ryan A [EMAIL PROTECTED] wrote:
we basically had to add some directives to one of the domains, which
we added and then put it back in the virtual_hosts directory, we
later took out the directives and restarted with the same results...
But you restarted now, and you didn't get the same
Outlook is a Personal Email Client/Calendar/Contact Application.
MySQL is a SQL Database Server Application.
PHP is usually a Web Based Scripting Language Processor.
What do you want to synchronize? Email? Calendar? Contacts? Something
else?
If you are running your PHP on a Windows
Evan Nemerson wrote:
On Wednesday 10 December 2003 09:08 pm, Matthias Nothhaft wrote:
Hi,
I'm trying to get the pdflib work...
[]
Fatal error: PDFlib error: function 'PDF_begin_page' must not be called
in 'object' scope in /var/www/Software/cms4rent/pdftest.php on line 5
Why is that?
New set of eyes maybe or maybe I am indeed regressing...
Page calling functions looks like such...
?php
require 'sessions.php';
require 'inc.php';
if (($_SESSION['user'] == ) || ($_SESSION['pass'] == ) ||
($_SESSION['lvl'] == )) {
$_SESSION['msg_01'] = You have not entered the correct
Hi,
Am a bit puzzled here, we have to run a script to start/stop a serverbut
we have to run the script below the public folder!
this is our structure /blah/theServer/public_html/
the script is located in /blah/theServer/
I noticed one funny thing about this script, it starts with: #!/bin/sh
what is the best way to remove extra \'s from strings ... would be ?
---
Philip J. Newman
Master Developer
PhilipNZ.com [NZ] Ltd.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
#!/bin/sh
scriptname start
(or)
scriptname stop
[/snip]
It is a shell script. They are usually placed in /usr/local/bin/ and
chmod'd to execute. To run it you type this at the command line;
scriptname start
(or)
scriptname stop
This script accepts one argument, either 'stop' or 'start'
[snip]
what is the best way to remove extra \'s from strings ... would be ?
[/snip]
http://www.php.net/stripslashes but depends on how many extras
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
#!/bin/sh
scriptname start
(or)
scriptname stop
[/snip]
It is a shell script. They are usually placed in /usr/local/bin/ and
chmod'd to execute. To run it you type this at the command line;
scriptname start
(or)
scriptname stop
This script accepts one argument, either 'stop' or 'start'
--- Ryan A [EMAIL PROTECTED] wrote:
Am a bit puzzled here, we have to run a script to start/stop a
serverbut we have to run the script below the public folder!
this is our structure /blah/theServer/public_html/
the script is located in /blah/theServer/
For future reference, the script in
--- Philip J. Newman [EMAIL PROTECTED] wrote:
what is the best way to remove extra \'s from strings ... would be?
The best way is to not put them there in the first place. :-)
I guess the second best way would be stripslashes().
Hope that helps.
Chris
=
Chris Shiflett -
Hey,
Thanks for replying.
The server is on Linux and is remotely hosted, my local machine is on win2k
pro.
A client wants me to set this up, I have setup the whole thing but this
needs to be started
you keep mentioning command line, what command line?
You mean I should SSH in?
(As you can
I have a form with a text area that when submited, get stored in a text type field
of a MySQL database. Occasionaly some of our users copy data from a DOS program and
paste it in the text area which results in unwanted characters getting stored in the
text field. What function can I use to
--- Ryan A [EMAIL PROTECTED] wrote:
you keep mentioning command line, what command line?
You mean I should SSH in?
Yes, that's the command line he was talking about.
Chris
=
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
snip
For example: I want to allow a-z ,A-Z, 0-9 and some others and strip out
everything else.
/snip
You probably just want to use a regular expression. Check out
http://www.php.net/ereg
HTH!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Saturday 13 December 2003 05:48, Jas wrote:
New set of eyes maybe or maybe I am indeed regressing...
Page calling functions looks like such...
[snip]
session_unset($_SESSION['list']);
[snip]
You seem to be mistaken as to what session_unset() actually does. For a start
it
Thanks guys,
Will ask the owner/host for a SSH login and privilages and get back to ya if
things go wrong.
This list and the people in it really rock.
Cheers,
-Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you Mike for your recommendations as well. I've certainly learned a
few tricks from this thread. Thanks to all those concerned!
-m
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 2:41 AM
To: 'motorpsychkill'; Php General
What is a XSS attacks?
thanks in advanced, bye.
Hello orlandopozo,
Saturday, December 13, 2003, 12:04:02 AM, you wrote:
oicv What is a XSS attacks?
Cross Site Scripting Attack I think.
Like when people insert malicious HTML/JS code into your site as a
result of your code not checking inputs properly.
--
Best regards,
Richard
That is correct.
http://www.derkeiler.com/Mailing-Lists/securityfocus/bugtraq/2003-11/006
5.html
--Sam
Richard Davey wrote:
Hello orlandopozo,
Saturday, December 13, 2003, 12:04:02 AM, you wrote:
oicv What is a XSS attacks?
Cross Site Scripting Attack I think.
Like when people
Hi,
I am a bit puzzled here, I have to wipe my a$$ after
taking a $hit...but I have to wipe while i'm on the
toilet!
My usual way is to stand up and do it.
I noticed one funny thing about this way, its hard to
get all that crap in one swipe...what kind of $hit is
this?
According to the
One wonders how two retards got together to give birth to a bigger retard
like you.
Hi,
I am a bit puzzled here, I have to wipe my a$$ after
taking a $hit...but I have to wipe while i'm on the
toilet!
My usual way is to stand up and do it.
I noticed one funny thing about this way, its
If you ever do decide to start, be sure to cover Pocket PC as well. I think
you could even sell this for a great deal.
- Original Message -
From: Galen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Evan Nemerson [EMAIL PROTECTED]
Sent: Friday, December 12, 2003 1:34 AM
Subject: Re: [PHP]
LMAO, I am in concordance.
Jas
Ryan A wrote:
One wonders how two retards got together to give birth to a bigger retard
like you.
Hi,
I am a bit puzzled here, I have to wipe my a$$ after
taking a $hit...but I have to wipe while i'm on the
toilet!
My usual way is to stand up and do it.
I
Why is this test failing?
$data = A Simple test.;
If (ereg(^[a-zA-Z0-9\s.\-_']+$, $data)) {
echo Valid text;
}
else {
echo Not valid text;
}
I'm running PHP 4.34 on a windows pc. This function is new to me, any help would be
appreciated.
Why is this test failing?
If (ereg(^[a-zA-Z0-9\s.\-_']+$, $data)) {
I'm very new to PHP, so I may be barking up the wrong tree, but what is
that s doing after the slash? I don't know if it's the cause of the
problem, but as far as I know it's superfluous.
--
Yoroshiku!
Dave G
[EMAIL
it works if you remove the last $ from the expression, also I think the
. needs escaping
unless you have a special reason, use preeg_* as it is supposed to be
quicker
Mike
Manuel Ochoa wrote:
Why is this test failing?
$data = A Simple test.;
If (ereg(^[a-zA-Z0-9\s.\-_']+$, $data)) {
echo
I have this script:
?
$ojpp[] = 1;
$ojpp[] = 2;
$ojpp[] = 3;
$ojpp[] = 4;
$ojpp[][] = 1;
$ojpp[][] = 2;
$ojpp[][] = 3;
$ojpp[][][] = 1;
$ojpp[][][] = 2;
$test1 = count($ojpp); // first dimension
$test2 = count($ojpp[0]); // second dimension
$test3 = count($ojpp[0][0]); // third dimension
echo
75 matches
Mail list logo