On Mon, 26 Feb 2001, Chris Aitken wrote:
>
> Okay, I got a bit of a curley one that I havent been able to solve by
> looking at the archives and in the manual. Its kind of a PHP/Apache
> question.
>
> I have a system where a user logs in through .htaccess, it queries my
> mysql database, sets a co
How can I have an new session id without closing the browser?
session.inc contains basically the postgresql session functions (user
handler) in http://www.php.net/manual/en/ref.session.php
I have change pg_pconnect for pg_connect and I have added
pg_destroy_session.
1. There is a login/passw
Hello,
I am looking for a php trace route that I can have get the IP of the person
browsing the site and do a trace route from the server. Then I want to
reverse the results so It looks like they are doing a trace route on the
server rather than the server doing a trace route on them.
Thank you
Addressed to: "Jason Jacobs" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Jason Jacobs" <[EMAIL PROTECTED]> Mon, 26 Feb 2001 11:28:37
-0500
>
> Hi. In some of my files, I have a require statement to get some global
> stuff accessable. I also have some header() red
Dan...
You are the man, thanks! :-)
- Original Message -
From: "Dan Olsen" <[EMAIL PROTECTED]>
To: "Clayton Dukes" <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 12:30 PM
Subject: RE: [PHP] Making a variable -Trim output
>
> clayton-
>
> the only problems were syntactic.
>
> there
Put phpinfo() in the script to see what is going on..
On Monday, 26 February 2001, at 09:12:11 (-0800),
Chris wrote:
>
> I am trying to post some info to my php script using the microsoft internet control:
>
> strurl = http://www.myserver.com/test.asp
> strdata = "lah=sd&dta=test
>
Addressed to: "Scott Rothgaber" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Scott Rothgaber" <[EMAIL PROTECTED]> Mon, 26 Feb 2001 09:45:42
-0500
>
> PHP 4.0.4 pl1, Apache 1.3.17, BSD/OS 4.1 pl37
>
> Good Morning!
>
> Please forgive me if this has been covered ad na
The problem I had with this in the past is that I didn't have permission to
write to the dir mysql.sock was supposed to be in so when Mysql tried to
start it would fail.
--
phill
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
HTTP_USER_AGENT
http://php.net/manual/en/language.variables.predefined.php
-Brian
> -Original Message-
> From: Paulson, Joseph V. "Jay" [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 26, 2001 11:16 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Browser?
>
>
> Is there a way to tell
I am trying to post some info to my php script using the microsoft internet control:
strurl = http://www.myserver.com/test.asp
strdata = "lah=sd&dta=test
Inet1.Execute strurl, "POST", strdata
PHP returns HTTP_POST_VARS as being empty.
Yet, if I use PERL, I can read the posted info j
Wow, I hope you all will forgive me for one last go around on this thread :)
Technically, what does "set" mean? It is not the same as "is registered" or
"has a value", right? What is "is set"? Is it "introduced to the global
namespace"?
TIA
Kirk
>Except that it will throw a warning in PHP4 if
php-general Digest 26 Feb 2001 17:00:56 - Issue 535
Topics (messages 41650 through 41704):
Re: Simple String Replace Question
41650 by: Jeff Oien
41679 by: PHPBeginner.com
Re: PHP4 directives in httpd.conf not working
41651 by: David Robley
41675 by: PHPBegi
this is a function that is BUILT-IN to HTML for the last few versions.
//some script here
--
this will redirect non-javascript browsers to a non-javascript page.
DanO
-Original Message-
From: Dave Goodrich [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 8:56 AM
To:
yes but you might want to use a for() loop instead since you know what you
want.
$arrayoflines = file($file.txt);
$arraysize = sizeof($arrayoflines);
$limit = $arraysize - 2;
for (i=0; i<$arraysize; i++) {
if ( (i>12) && (i<$limit) ) {
$output .= $
Nothing tested, just off the top of my head. The single most reliable way to
do that would be to have a page that runs JavaScript.
For instance, if the JavaScript executes, it redirects to your JavaScript
enabled page, if not, the page does a refresh to a non JavaScript enabled
page.
tester>
Hi,
I downloaded the GD libary and want to enable it with PHP but I cant figure
out how to do that - can anyone tell me how to do it? Do I have to put the
path to GD-libary inside the PHP.ini and if so, where?
Regards,
Sumarlidi Einar Dadason
SED - Graphic Design
-
Thanks again,
Is there a way I can tell it to print all but the first 13 lines and the
last two lines of the text file?
-Clayton
- Original Message -
From: "Dan Olsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 11:39 AM
Subject: RE: [PHP] Making a variab
Thanks!
- Original Message -
From: "Dan Olsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 11:39 AM
Subject: RE: [PHP] Making a variable
>
> you can concatentate the variable inside the foreach loop.
>
> foreach (file("$file.txt") as $line) {
> $data .=
kalowskyMon Feb 26 08:36:08 2001 EDT
Modified files:
/php4/ext/imap php_imap.c
Log:
# Bad patch job on the last commit by me. I take the BAD_CODER award for
# the day.
Removes two unnecessary REGISTER_MAIN_LONG_CONSTANT's.
# what should be do
hi,
i would like to set up a script "forum" such that you can call a url
http://www.server.com/forum/general
and it will php-parse forum and pass /general as PATH_INFO. it's easy
to get done as http://www.server.com/forum.php/general, but i would
like to disclose the script name for reasons of o
you can concatentate the variable inside the foreach loop.
foreach (file("$file.txt") as $line) {
$data .= ("" . trim(str_replace("'", "''", $line)) . "\n");
}
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 8:17 AM
To: [EMAIL PROTECT
dbeuMon Feb 26 08:32:57 2001 EDT
Modified files:
/php4/main php.h
Log:
nuke warnings
Index: php4/main/php.h
diff -u php4/main/php.h:1.132 php4/main/php.h:1.133
--- php4/main/php.h:1.132 Sun Feb 25 22:07:31 2001
+++ php4/main/php.h Mon Feb 26 08:3
Hi. In some of my files, I have a require statement to get some global
stuff accessable. I also have some header() redirects. They don't work
(they worked before I added the requires). I moved the require under one of
the header()s and that one works now, but I can't move it under the other
on
The php.ini file has safe-mode = Off so I don't think that is the problem.
Suexec is checking to see that the php binary has the same uid/gid as the
virtual host user running the php script. Since the php binary is owned
by the web server user and the script is owned by one of the virtual hos
How can I make this a variable?
ie:
foreach (file("$file.txt") as $line)
{ print ("" . trim(str_replace("'", "''", $line)) .
"\n"); }
changed to:
$data = foreach (file("$file.txt") as $line)
{ print ("" . trim(str_replace("'", "''", $line)) .
"\n"); }
Simply adding the $d
Is there a way to tell what browser is being used by the client in php?
Thanks,
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
andiMon Feb 26 07:49:38 2001 EDT
Modified files:
/php4/ext/standard string.c
Log:
- Fix whitespace
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.192 php4/ext/standard/string.c:1.193
--- php4/ext/standard/string.c:1.192Mon Fe
First, can anyone point me to a good "mcrypt" primer or tutorial?
Second, how can I determine what type and length I should make a
database field that will hold encrypted data? Is there some table
somewhere which tells how long a resulting encrypted field will be
based on the encryption type and
hirokawaMon Feb 26 07:41:38 2001 EDT
Modified files:
/php4/ext/iconv iconv.c
Log:
ob_iconv_handler changed to use for text data only.
Index: php4/ext/iconv/iconv.c
diff -u php4/ext/iconv/iconv.c:1.6 php4/ext/iconv/iconv.c:1.7
--- php4/ext/iconv/icon
How?
I don't know perl all that well, I am just trying to convert some scripts.
- Original Message -
From: "kevin1" <[EMAIL PROTECTED]>
To: "Clayton Dukes" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 10:29 AM
Subject: Re: [PHP] PERL to PHP
> your can use
your can use the PCRE functions in php - much better than ereg and all
that - if you know perl already...
Clayton Dukes wrote:
>
>
> Hi :-)
>
> Can someone tell me how to do the equivalant of this Perl script in PHP?
>
>
>
> ###
> ### This function prints all lines between the dashes re
This could be a JS issue but right now I'm really
not sure.
I have this code,
} elseif ($cat == 'bikes' && $sub_cat == 'Road') {
$i = 1;
while ( list($type,) = each($bikes[$sub_cat])) {
echo "\n";
echo "$type\n";
$i++;
}
echo "";
Which creates this (in IE),
Tre
you have to set to path and the domain name too...
setcookie('vote', '1', $time, '/', '.someite.com');
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Nuno Costa"" <[EMAIL PROTECTED]> wrote in message
000e01c09ff0$feee9570$1e01
kalowskyMon Feb 26 07:20:53 2001 EDT
Modified files:
/php4 NEWS
Log:
#Just adding in proper id (forgot to do it on the initial)
PR:
Submitted by:
Reviewed by:
Obtained from:
Index: php4/NEWS
diff -u php4/NEWS:1.599 php4/NEWS:1.600
--- p
kalowskyMon Feb 26 07:17:12 2001 EDT
Modified files:
/php4/ext/imap config.m4 php_imap.c php_imap.h
Log:
Correctly checks for the proper header files, and excludes the QUOTA functions
from non-imap2000 systems (unavailable for testing at this time).
Hi :-)
Can someone tell me how to do the equivalant of
this Perl script in PHP?
## This function prints all lines between
the dashes read in a text file###
### The file looks like this:
# -
# Somedata:
something
# Someother:
something else
# -
PHP 4.0.4 pl1, Apache 1.3.17, BSD/OS 4.1 pl37
Good Morning!
Please forgive me if this has been covered ad nauseum, but I
have searched high and low for an answer with no luck.
After building PHP as a module, following the online
instructions, Apache complained that it could not resolve
hostn
> I am using php 4.0.4pl1. I added the AS400 toolkit to the JVM so I can
> interface with an AS400. but for some reason when I go to use a class in
> the JVM it says.
>
> Fatal error: Cannot instantiate non-existent class: java in
> c:\Inetpub\wwwroot/AS400/testtoolbox.php on line 11
>
> Below
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Maybe this will help:
Break the query up into a variable so PHP can string it together
better.
Exec. the query, check the result, if good,
check the results for rows, if results, display results,
else, do nothing, if query faield, set err to 1 and set
I need some help...
I try to do a ftp connection with php, but when i run the script it claims
that ftp_connect is "call to undefined function.
I have done a call to phpinfo, and it shows that ftp IS enabled! - Whats wrong?
Here is what i use:
$conn_id = ftp_connect("MyFtpSite");
$login_resul
http://www.f2s.com/
is another option.
Jeff Oien
> Hi everyone,
> Can anyone tell me where can i find a place where to put my PHP/MySQL
> applications for free?
> Many thanks
> Bye
> Bruno
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
Mensagem Automatica do Terra [[EMAIL PROTECTED]]
Could anyone please remove this guy?
his mailbox has exceeded by size, guess he didn't know how many subscribers
are on this list
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
w
Use SourceForge.com, in case you still are building your OpenSource
application,
you can then host it and use it there.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: [EM
Would
$string_new = ereg_replace("\n[ \t\r\n]*\n", "\n", $string);
work for you?
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: M
Could you please be more specific on your need?
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Jim Lum [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 9:21 AM
To: [
Yes, you could use stripslashes($string) on it's output, in this way it will
be no different as it was inputted.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Clayton Duk
Yes you are wrong,
what you can do is to search for the SQL queries in tutorials which will
return you that information.
also phpinfo() has some very little and necessary coverage of basic
php-mysql configurations,
if you download phpmyadmin you will have this option there (even with edit).
Si
try these:
php_value include_path "/my/phpinc/path"
but why instead not to create a .htaccess file, or if you don't want it to
be modified by user to make a one single auto_prepend with:
$file = "$DOCUMENT_ROOT/my/phpinc/path";
if(file_exists($file))
include_once($file);
this wouyld w
Have you tried www.isamillionaire.com ?
they have php4 / mySQL support, they are free and have no banner ads.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Bruno Mário Amara
jmoore Mon Feb 26 05:04:01 2001 EDT
Modified files:
/php4/ext/standard string.c
Log:
Fix for bug #9449 to stop infinate loop in wordwrap.
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.191 php4/ext/standard/string.c:1.192
--- php4/ext/
Are you looking for a place to host your site- or a place for people to
download apps you've written?
Bruno Mário Amaral Almeida wrote:
>
> Hi everyone,
> Can anyone tell me where can i find a place where to put my PHP/MySQL applications
>for free?
> Many thanks
> Bye
> Bruno
--
-=-=-=-=-=-=-
I try to use this function to prevent that the same visitor vote for more than one
time in a hour but it don't work, the code is this:
if($vote!=1)
{
$time=time();
$time=$time + 36000;
setcookie("vote","1",$time);
}
If the visitor vote, the vote counts, than if he try to vote again the vote don'
snip
> questions:
> 1. if file is not declared, what does the file elements holds?... i
> sometimes get null value, sometimes get "none"
I get following output with PHP4.0.4pl1 w/ Linux
(I set php.ini to store uploaded files info to $HTTP_UPLOAD_FILES.
You will get different output if you don't)
I can't use any filesystem function (fopen, file, fsockopen, etc.) to
open a remote file (fopen wrapper is obviously on).
For example if I try the following:
$S = file ("http://www.yahoo.com/");
I obtain the error: "Bad file descriptor"
If I use an absolute IP address:
$S = file ("http://21
Hi everyone,
Can anyone tell me where can i find a place where to put my PHP/MySQL applications for
free?
Many thanks
Bye
Bruno
On Monday 26 February 2001 10:26, Securez wrote:
> session_start();
>
> if( !isset( $c)) {
> session_register("c");
> $c = 1;
> }
>
> echo $c . "";
>
> ?>
> reload
>
> this example that works fine in other system with the same
> configuration, don't work in my machine, everytime he say 1
>
> Hi all,
>
> I changed
>
> > function HTMLTable() {
> > $attributes[] = array("border", "0");
> > $attributes[] = array("cellpadding", "0");
> > // and some other things
> > }
>
> to
>
> $attributes = array(array("border", "0"),
> array(
This is a correction:
I create a new dir
/usr/local/tmp with this perms:
rwxrwxrwtrootroot
and change the dir for store session data to /usr/local/tmp and works, but
in certain situation the some data aren't sotored, :(.
in /tmp don't store data why??
I set loogin to a file if i set t
i have a situation. i hope im clear abt this.
i need to post multiple set of data elements into php.
each set consists of data elements of text, textarea, radio buttons,
checkboxes and even a file(image).
most fields are optional.
all sets are not subset of each other but belongs to the same univ
Joe Stump <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> lynx -source
http://www.php.net/do_download.php?download_file=php-4.0.4pl1.tar.gz&source_
site=www.php.net > php-4.0.4pl1.tar.gz will work - also try wget
Why do so many people apparently not bother to
Hi all,
I changed
> function HTMLTable() {
> $attributes[] = array("border", "0");
> $attributes[] = array("cellpadding", "0");
> // and some other things
> }
to
$attributes = array(array("border", "0"),
array("cellpadding", "0"));
but am
> I have to ask, though, why would you want to run it as a cgi?
>
> Its slower as cgi and runs more security risks.
> I'd only run it as a cgi if that was my only choice.
It's probably less of a security risk when utilised via the cgi actually, at
least when using Apache as the webserver because
I'm a beginner but...I can't install php-4.o.4pl1 on my linux
mandrake..why?
When I run configure ,the program checks all the files...
there are some missing..but it never return an error
it return a warning 'you will need bison if you want to regenerate the
php parsers'
and after other check..it
colin olkowski wrote:
>
> hi all,
>
> my question is this, how would one install PHP4 as a module and as a cgi?
>
> somewhere in the install notes for php4 (redhat) the docs clearly say do not
> install both, yet my old hosting company was able to do it.
>
> btw, i just moved from the world of
Hello everybody,
I am a newbie, so please help me out with my rather basic question.
Please take a look at the following code snippet:
class HTMLTable extends HTMLElement {
var $attributes;
function HTMLTable() {
$attributes[] = array("border", "0");
$attributes[] = arra
Wow. Julie is on this list!
// send note to self to modify filter and sort for good tips...
Hi Julie.
LOVED your book.
With regard to Hurricane Electronic- we (Abriasoft) use them for our
colocating, and they have always been very proffesional and fair to deal
with. They have a really nice faci
davidg Mon Feb 26 01:45:04 2001 EDT
Modified files:
/php4/ext/midgard snippetdir.c
Log:
fixed bug #121
Index: php4/ext/midgard/snippetdir.c
diff -u php4/ext/midgard/snippetdir.c:1.5 php4/ext/midgard/snippetdir.c:1.6
--- php4/ext/midgard/snippetdir.c:1.5
In my system i have apache-1.3.17, (i probe 1.3.14 but the problem persist),
when i register a variable the session is generatet and a file sess_f5g ...
is generated under /tmp but the file is empty size=0, and no data is stored.
";
?>
reload
this example that works fine in other system with th
Hi all,
i was wondering if someone has any idea about how to register that a client has
stopped working with my site and log him/her out?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact th
101 - 169 of 169 matches
Mail list logo