At 11:02 PM 7/18/02 -0300, you wrote:
Is PostgreSQL started with the -i switch? (I think that's the one; it
exposes it to tcp/ip connections.) Check your PGSQL docs to be certain.
This is not the problem.
Have you run a page with phpinfo? Is PostgreSQL support compiled into your
Hi all,
I've asked simular questions before, but I think I'm finally asking the
*right* question to get the right answer.
I'm look for some suggestions on the best method of parsing a HTML document
(or part thereof), with the view of CAPTURING and MODIFYING a specific
element of a specific tag.
On Friday 19 July 2002 04:26, Scott Fletcher wrote:
If you're going to use the cron file (or crontab) then php wouldn't work
because it is a programming languages for the web pages. For cron files or
crontab, you can use the bash shell or ksh or whatever you have. It's
simple. All you had
Justin French wrote:
JF As has been said on this list MANY times, just have a look at the big sites
JF like amazon.com -- no cookies, no javascript, no reliance on client-side for
JF anything. Take care of it all server-side, where you have a controlled
JF environment.
And what about
Yes, but if you're on a shared server, other users of the user will likely
be able to read your PHP files get the password.
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 23:10 PM
To: Sailom
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP]
Andre, here's the function that worked for me...
function file_get_contents($filename) {
$fd = fopen($filename, r, 1);
$contents = fread($fd, 12000);
fclose($fd);
return $contents;
}
$page_string = file_get_contents(my_file.php);
The third parameter in fopen() [1] can be
Hi Rasmus,
file_gets_contents() doesn't work in my version of PHP (4.2.1). It says not
a valid function or something like that. Also, I discovered that the
filesize() function won't work on files fopened from the include_path. It
returns a value of zero, so, I had to hardcode the bytes into the
This is probably more of an HTML question... Is there a way to pass
variables to another page via POST instead of via the URL? I need to pass
several variables, one that is an array and another that is a fairly long
string, so, I can't really do this via the URL.
My initial idea was to just
Okay, this is just very general info to help point you in the right
direction, but, here are some functions you'll probably need to accomplish
this:
* Regular Expressions
* pregi() and/or eregi()
* explode() and implode()
* str_replace()
Regular expressions will probably be the most
I've asked simular questions before, but I think I'm finally asking the
*right* question to get the right answer.
That's often the tricky part :-)
I'm look for some suggestions on the best method of parsing a HTML document
(or part thereof), with the view of CAPTURING and MODIFYING a specific
On Friday 19 July 2002 04:26, Scott Fletcher wrote:
If you're going to use the cron file (or crontab) then php wouldn't work
because it is a programming languages for the web pages. For cron files or
[Perhaps there was even more text missing that made this all out of
context... Sorry.]
I
Hey, I'm new, but I have some advice.
Do you have to POST? becuase you can use sessions, and PHP has a bunch os
session functions.
Secondly, POST will not attach any variables to the URL, this is done by
GET.
To access the POST variables traverse through the $HTTP_POST_VARS (or $_POST
array, i
I just checked grant and it said something like...
GRANT USAGE ON *.* TO 'X'@'%' IDENTIFIED BY .
Does this means user named 'X' can log in from any server? This may be
a silly question.
Jonathan Rosenberg [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
How can I do the following with PHP?
1) Accept more than 1 connections without forking
2) socket_read and fgets from 2 connections at the same time
please help!
thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
str_replace() is faster and better for simple string replacement.
-Original Message-
From: vins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Truncate ::: DAM!
LOL..
So after my last post about updating files i sat and
The password code will be parsed out by PHP, so, it won't be viewable in the
HTML source delivered to the browser.
Some advice: set up a user for your database that has the minimal amount of
access necessary to perform queries or writing to the database and use that
in your scripts. Don't ever
And what kind of permissions might that be? (server side)
Richard Lynch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
Can i access my paralel or USB port with PHP server side?
The client's (browser's) parallel or USB port? No. See PHP HASP
thread.
If the web-server has a
Ok I am going to give out my little secret that was passed to me. Your
worry is warranted in my opinion especially since let's say your isp is in
the middle of an upgrade or something happens to php that breaks it.. Now
your php code is being shown as regular text.. Anybody can see your code.
hello,
any regex gurus?
i'm trying to match words put into a textarea
that are in the form of a\np\np\l\e
or any combination of new lines in between, before
or after.
$answer = hello\na\np\np\nl\ne\n; /*from textarea in form*/
$word = apple;
$word =
Monty wrote:
This is probably more of an HTML question... Is there a way to pass
variables to another page via POST instead of via the URL?
Yes.
form action=another_page.php method=post
... (form fields here) ...
input name=button_name type=submit value=Button Text
/form
--
PHP General
Pardon my sloppy explanation but here it is:
how can i sort an array based on key element ie.
key values are: a1, a2 ,a3 ..., b1, b2 ,b3, ...c1, c1, c3...
so doing this:
while (list($k, $v) = each($data)) {
for ($i=0; $icount($k); $i++) {
echo $k[0] = $v\nbr;
}
will list all the $k $v .
a = foo
Hi,
Let's say I have the following string:
$str = 'abcdefghijklmnop';
...and I want to strip out char #'s 4 through to 7 (d,e,f,g)
$strip_start = 4;
$strip_end = 7;
($str would now be 'abchijklmnop';)
THEN I want to plug a new string $filler at position 4
$filler = '4567';
($str would now
Is it possible to somehow do a session unregister of all session variables
except for (say) 2 variables. varA and varB
So if my session had :
varA, varB,varC, varD,varE (etc)
I want to unregister all but varA and varB.
Is there an 'elegant' way to do this without testing for all the variables
I got a file line like this
!-- START --
This is a line1
this is a line2
this is a line3
this is a line4
!-- END --
how can i grep out the line1,line2,line3 ??
do anyone out there have any idea ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
in ym search page, i construct a sql query from user input to search my
database, and i run this query to get totalresults. Then run another query
with a LIMIT 0, 30 ending for each page. So I'm running 2 mySQL queries per
page. My
try changing the +'s with *'s
+ = 1 or more
* = 0 or more
-Original Message-
From: Joe Rice [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 3:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] vertical word match
hello,
any regex gurus?
i'm trying to match words put into a textarea
dunno if this'll work... but here goes...
sort($data);
ksort($data);
but ksort() might mangle the order from sort(). In that case, you'll need to
write your sort routine that retains the old order
-Original Message-
From: Peter J. Pieczora [mailto:[EMAIL PROTECTED]]
Sent: Friday, July
dunno how much slower it'd be, but it might look better. You could convert
the strings to an array, use array_splice(), and then convert back to a
string.
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 3:39 PM
To: php
Subject: [PHP] best way
201 - 228 of 228 matches
Mail list logo