R. Ragunathan wrote:
can we implement lock to a table using postgres with php.
if any of u all knows the solution do reply back.
You may also want to look at the following URL:
http://www.postgresql.org/docs/8.0/interactive/explicit-locking.html
--
PHP General Mailing List (http://www.php.net
R. Ragunathan wrote:
can we implement lock to a table using postgres with php.
if any of u all knows the solution do reply back.
Please, for the second time, simply read the manual.
http://www.php.net/pgsql
It explains both the issues you have recently posted about very well. If
you have a s
hi,
can we implement lock to a table using postgres with php.
if any of u all knows the solution do reply back.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Marco Tabini wrote:
> Unfortunately, I can't seem to be able to connect to your server right now.
>
> What server software are you using? I have never heard of this approach not
Info:
---
Apache-AdvancedExtranetServer/2.0.50
Mandrakelinux/7.2.101mdk
mod_ssl/2.0.50
OpenSSL/0.9.7d
PHP/4.3.8
T
On 8/9/05 10:30 PM, "Wee Keat" <[EMAIL PROTECTED]> wrote:
> Hi Marco,
>
> Thanks for taking the time to answer my questions.
>
> Marco Tabini wrote:
>> That's been discussed a few times on the list. For example:
>>
>> http://beeblex.com/lists/index.php/php.general/190410
>
> Yes. I'm truly awa
Hi Marco,
Thanks for taking the time to answer my questions.
Marco Tabini wrote:
> That's been discussed a few times on the list. For example:
>
> http://beeblex.com/lists/index.php/php.general/190410
Yes. I'm truly aware of that and have tried it but to no avail. I've
added the code provided i
i'd like to create a graph with the amount of downloads per hour, i am a
little confused how i should go about this.
i know i can use rrdtool/mrtg, but im looking for more 'user friendly'
graphs with custom colors,etc.
each time someone downloads a file it is incremented in the db and the
la
Hi Eli--
On 8/9/05 9:40 PM, "Eli" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I got a PHP program on my server. I want to open a live TCP port
> connection between my server to a client (client is developed in .NET,
> not regular HTTP browser).
> How can I do this using PHP?
You can use the socket fun
Hello Wee--
That's been discussed a few times on the list. For example:
http://beeblex.com/lists/index.php/php.general/190410
Cheers,
Marco
On 8/9/05 8:59 PM, "Wee Keat" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've been struggling to detect HTTPS connection for a shopping cart.
> I've use
Hi all,
I've been struggling to detect HTTPS connection for a shopping cart.
I've used $_SERVER['SERVER_PORT'] to check for 443 and it kept on
showing up as 80.
Does anyone have any idea why this is happening? Is it the server
config? I've called the server administrator and he said that it is
ru
Hello Eli,
Wednesday, August 10, 2005, 2:40:07 AM, you wrote:
E> I got a PHP program on my server. I want to open a live TCP port
E> connection between my server to a client (client is developed in
E> .NET, not regular HTTP browser). How can I do this using PHP?
Look in the manual at the quite c
Hi,
I got a PHP program on my server. I want to open a live TCP port
connection between my server to a client (client is developed in .NET,
not regular HTTP browser).
How can I do this using PHP?
-thanks in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Philip Hallstrom wrote:
i'd like to create a graph with the amount of downloads per hour, i
am a little confused how i should go about this.
i know i can use rrdtool/mrtg, but im looking for more 'user
friendly' graphs with custom colors,etc.
each time someone downloads a file it is increme
Sebastian wrote:
yeah sorry, i must of deleted the original topic and all i had was the
followups..
anyway, what do you want, the cake and eat it too?
why two types of 404's?
i mean you either use ErrorDocument or use php headers..
i guess i dont understand why use both..
to send 404 header
i'd like to create a graph with the amount of downloads per hour, i am a
little confused how i should go about this.
i know i can use rrdtool/mrtg, but im looking for more 'user friendly' graphs
with custom colors,etc.
each time someone downloads a file it is incremented in the db and the las
well, i found a little problem with this.
when $url looks like "http://myhosting/xml.php"; and i upload it to my
hosting, it times out before getting the content.
that php needs includes and when i try $url="/dir/xml.php" it gives me a not
found error. the file it doesnt find is one of those i
Hi, I have 5 chekboxes in a page, I would like insert the values of all
chekboxes checked in a mysql db.
--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
--
PHP General Mailing List (http://www.php.net/)
To unsub
Your $url variable's content like what?
So, if you using like ftp://foo.bar it's the generally normal that
you see the codes.
If not, would you like to give me the $url's content?
(Sorry for my bad English)
Jesús Fernández <[EMAIL PROTECTED]> writes:
> yes, the remote machine runs php (its
yes, the remote machine runs php (its my hosting's server)
--
"El único error real es aquel en el que no hemos aprendido nada."
Ok,
Has the remote machine configured to run the php? So, the remote
machine is your $url variable's host.
Or, you may try browse the URL via any browser (etc; IE, Firefox). If
you see the PHP codes, the remote machine has not been configured to
run PHP.
Jesús Fernández <[EMAIL PROTECTED]> writ
thanks, it works, but that returns the php code.
what i actually need is the output of that php code evaluated.
--
"El único error real es aquel en el que no hemos aprendido nada."
Hi,
You may make it with fopen() like that;
$fd = fopen($url, "r");
$returnString = ""
while (!feof($fd)) {
$returnString .= fgets($fd);
}
fclose($fd);
Jesús Fernández <[EMAIL PROTECTED]> writes:
> Hi there,
> i'm a little newbie you know.
> I have a php that returns some xml, and i wa
i'd like to create a graph with the amount of downloads per hour, i am a
little confused how i should go about this.
i know i can use rrdtool/mrtg, but im looking for more 'user friendly'
graphs with custom colors,etc.
each time someone downloads a file it is incremented in the db and the
la
Hi there,
i'm a little newbie you know.
I have a php that returns some xml, and i want to parse that xml through
php. the xml returned depends on the variable passed thru the url. what i
need is to get the output of that php file and store it in a string. i have
tried everything i have though,
Sounds like you want to do an inner(?) join on the two tables. This will show
you where you have matches between the two tables but also show you the items
that don't match (no special instructions). If I understand right, you have an
"order_id" in both "orders" and "special_orders_instruction
Jasper Bryant-Greene wrote:
Sebastian wrote:
Paul Waring wrote:
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
Should it? Is it possible to write a doesexists.php script which
would cause the 404 directive to be triggered?
I also tried: header("Status: 404 Not Found"); but
Hi to all,
It's more mysql question than php, but I like you more than mysql guys! :)
Let's say I have a table called "orders" and other table called
"special_orders_instructions".
Logically, one column in "orders" table should be link to
"special_order_instructions" (foreign key ?) and if that
- Original Message -
From: "Terry Romine" <[EMAIL PROTECTED]>
To:
Sent: Sunday, August 07, 2005 10:03 AM
Subject: [PHP] PHP error tracking on new server
... The problem is that when an error occurs, the page just comes up
blank,
Does your hosting service give you access to the PH
Sebastian wrote:
Paul Waring wrote:
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
Should it? Is it possible to write a doesexists.php script which
would cause the 404 directive to be triggered?
I also tried: header("Status: 404 Not Found"); but this did not work
either.
Hi Bruce,
the error_reporting level in your php.ini is set to 81, that means only
a few sorts of errors will be shown on your site. Even parse-errors are
hidden.
But you can set it to a different level in your script.
Have a look at error_reporting in the manual.
Best regards
Sabine
Bruce Gi
I have a form which displays fine with html, but when I add the php
thew page is blank. I am re-using code which I have on another form so
I know it works. I was wondering if there might be something in the
PHP confuration which may be preventing the page from displaying. IE
error reporting .
Can
I guess this would help. The URL to my PHP config is
http://www.wealthdevelopmentmortgage.com/test/form_test/info.php
--
::Bruce::
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi ,
This time I'm trying to add support for compressed files
into the PHP module version 4.3.4 running with Apache 1.3.29
I remember adding dbase and mysql support with the following command
> './configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs'
> '-enable-dbase'
Now I need t
Sabine wrote:
Hello to all,
I'm working on a server where even a simple counter-script won't work.
session_start();
if (isset($HTTP_SESSION_VARS['counter'])) {
$HTTP_SESSION_VARS['counter']++;
} else {
$HTTP_SESSION_VARS['counter']=1;
}
On every refresh the counter is set to 1.
I take
Paul Waring wrote:
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
Should it? Is it possible to write a doesexists.php script which would
cause the 404 directive to be triggered?
I also tried: header("Status: 404 Not Found"); but this did not work either.
Try searching th
> I have lots of places where I used to do this. Since MySQL 4.1 I've
> changed it to something like:
>
> "INSERT INTO mytable SET id = 123, bla = '$x' ON DUPLICATE KEY UPDATE
> bla='$x'"
>
> This saves you a query, and makes it easier to isolate the insert/
> update as it will play nicely with aut
Paul Waring wrote:
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
Should it? Is it possible to write a doesexists.php script which would
cause the 404 directive to be triggered?
I also tried: header("Status: 404 Not Found"); but this did not work either.
Try searching the archi
Bosky, Dave wrote:
I seem to be having some trouble renaming a file after uploading it.
It always returns a warning message indicating I have an invalid
attribute in my rename statement.
$old = 'C:\\homedirectory\uploadedfiles\\newfile.gif';
$new = 'C:\\homedirectory\\uploadedfiles\\2005-08-
I seem to be having some trouble renaming a file after uploading it.
It always returns a warning message indicating I have an invalid
attribute in my rename statement.
Thanks,
Dave
---
Example:
$old = 'C:\\homedirectory\uploadedfiles\\newfile.gif';
$new = 'C:\\homedi
>
> I have a site with some phone products. I want to search for
> a specific products. I use this:
>
> SELECT product_id, product_name FROM products WHERE
> product_name LIKE '%$search_string%'
>
> It works fine if the search string counts 1 word. But if the
> search string id counts 2 or
At 08:54 AM 8/9/2005, [EMAIL PROTECTED] wrote:
Hi,
I have a site with some phone products. I want to search for a specific
products. I use this:
SELECT product_id, product_name FROM products WHERE product_name LIKE
'%$search_string%'
It works fine if the search string counts 1 word. But
[snip]
I have a site with some phone products. I want to search for a specific
products. I use this:
SELECT product_id, product_name FROM products WHERE product_name LIKE
'%$search_string%'
It works fine if the search string counts 1 word. But if the search
string id counts 2 or 3 or more words
Hi,
I have a site with some phone products. I want to search for a specific
products. I use this:
SELECT product_id, product_name FROM products WHERE product_name LIKE
'%$search_string%'
It works fine if the search string counts 1 word. But if the search string id
counts 2 or 3 or more word
[snip]
can we implement postgres transactions with php.
if anyone knows the solution please reply back.
[/snip]
Have you read http://www.php.net/postgres ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
can we implement postgres transactions with php.
if anyone knows the solution please reply back.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
U might try omthing like this::
$query = "SELECT id FROM mytable WHERE bla LIKE " . $x .";
$result = mysql_query($query, $cnn) or die(mysql_error());
$totalRows_result = mysql_num_rows($result);
if($totalRo
Alan Milnes wrote:
I'm interested in extracting a series of web pages from a Yahoo forum
and storing them in a MySQL database so I can generate things like most
number of posts etc. I've searched on Google but most of the links seem
to be for email harversters!
Anyone have any tips for where
Roger Thomas wrote:
Am looking for code snippet to download file. It should be able to detect
mime-types. Thanks.
http://www.php.net/manual/en/function.header.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Am looking for code snippet to download file. It should be able to detect
mime-types. Thanks.
--
Roger
---
Sign Up for free Email at http://ureg.home.net.my/
---
--
PHP General Mailing List (http:/
Hello to all,
I'm working on a server where even a simple counter-script won't work.
session_start();
if (isset($HTTP_SESSION_VARS['counter'])) {
$HTTP_SESSION_VARS['counter']++;
} else {
$HTTP_SESSION_VARS['counter']=1;
}
On every refresh the counter is set to 1.
I dont' know, where to
On 8 Aug 2005, at 16:07, Martin van den Berg wrote:
$query = "SELECT id FROM mytable WHERE bla LIKE " . $x .";
$rows = execute( $query )
if ( $rows == 0 )
{
/* some more processing */
$query = "INSERT INTO mytable .. etc etc
execute( $query )
}
I have lots of places where I used to
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
> Should it? Is it possible to write a doesexists.php script which would
> cause the 404 directive to be triggered?
>
> I also tried: header("Status: 404 Not Found"); but this did not work either.
Try searching the archives for this list
52 matches
Mail list logo