Hi Everyone.
I'm having problems creating code to read a file from another server.
1. Is this even possible? with a secure server aswell?
2. I have tried using fopen()but this always gives me an error:
Warning: stat failed for http://www.domain.com/test.txt (errno=2 - No such
file or
it. and I knwo the txt file
is full of info.
I'm stumped again.
Cheers. for your help.
Thomas
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> --- Thomas <[EMAIL PROTECTED]> wrote:
> > I'm having problems creating code t
; . $url .
$filename);
print ($result);
?>
// OUTPUT
0
if I use anythign other than the ftp:// for a prefix (like http. or https) I
get an error.
Cheers.
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> --- Thomas <[EMAIL PROTECTED]
Hello everyone,
I'm trying to pass some info into Flash. this worked fine with another
funciton call instead of Players();
But for some reason it will only pass the first name into flash..that's it.
however, when I check it just in a browser, it works fine.
I'm not sure why this one won't specif
nnot be displayed" (in IE)
any ideea?
have fun
thomas
$_SERVER["REMOTE_ADDR"]
If the user have a proxy the real IP is:
$_SERVER["HTTP_X_FORWARDED_FOR"]
have fun
thomas
- Original Message -
From: John
To: [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 1:26 AM
Subject: [PHP] $_SERVER[REMOTE_ADDR]
Makes
I have a problem with my php.
I have a form and in that form there is an image submit button. When I
click on it, it won't tell me if the submit button is clicked.
It works fine with a normal one.
sample:
If I use This works finedo I need to do
something e
ok, sorry I'm a newb...what do I do with that info? I saw that page, but it
makes no sense to me
Thomas
"John Coggeshall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> http://www.php.net/manual/en/language.variables.external.php
>
>
>
&
AwesomeThank you so much.
Cheers.
Thomas
"John Coggeshall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Well you can ignore it if you don't need the X/Y cord... But you can use
> it to make sure the button was clicked:
>
>
It works either way apparently...plus, I need the $POST not $_GET. but it
works aswell.
"-{ Rene Brehmer }-" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wed, 2 Apr 2003 21:41:02 -0500, John Coggeshall wrote about "RE: [PHP]
> Submit Image Button" what the universal translato
iles for C++.
Is this available? If not, what is the easiest way to link in a few of
my own fully compiled functions to be used from PHP?
Thanks to everyone who has any clue what I am talking about :),
Thomas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
> did you check www.zend.com and their caching/optimizing products?
They dont seem to have anything free, I need something free.
--
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 a
Hello there,
I am using semaphores to synchronize access to specific database
records. Problem is, it does not seem that the semaphores are being
released. Not only am I using sem_release() but the PHP manual says it
will release all semaphores that are still acquired at the end of the
PHP page lo
Ok, I got it working so long as sem_release is SPECIFICALLY called.
Problem is I have a lot of "die" calls throughout my scripts and I would
rather not have exit hooks on every script (not sure how reliably those
will ALWAYS be called, and would be a hassle to store a list of all
semaphores to be
The following code fails after the first call:
if(!($lock_id = sem_get(2501)) || !sem_acquire($lock_id))
die('failed to get semaphore')
..do something, error triggers "exit;"..
sem_release($lock_id)
But having sem_release right after acquire makes everything work ok. I
use FreeBSD and see ther
ANYONE CAN HELP WITH THIS PLEASE???
--
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]
I had a similar situation, I just made a simple editor on a PHP website,
and then edited the files from any other computer. You can the editor
script over a SSL secure connection or at least have it passworded if
you are worried about security, but either way its safer and simpler
than FTP.
--
This is a client-side situation, so PHP probably wont help much. Some
people do it with javascript and others use it by submitting forms and
refreshing the page everytime it is changed.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
I might be interested, I will email you about doing a column.
--
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]
You need to send a Content-Type header, I believe it is octet-stream or
something similar to that.
--
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 P
Is there any mutex access with PHP or just the SysV semaphores?
--
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]
"copy" copies file to file, not data to a file (creating files).
You should look at using fopen() and fwrite() instead. You may also want
to check the returned value from these functions to see if an error
occurred.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EM
Hi there,
Quick question on performance:
I have got some expensive sql queries (doing lots of LEFT JOINS) that result
in anything between 10 to 1 results. I need to do paging on those. So
far I have used a LIMIT solution which will not do anymore because you don't
get the whole total.
Now,
inserting, that way
we don't call the db n times from php. Does that make any difference?
Maybe I am just stupid .
Thomas
Hi Chris,
Thanks, I thought so. You are quite right with the errors, I ran into some
where it looked like that php does not allow you to execute such a concated
string ... the error started at the second insert statement with no apparent
reason. Is that a ph restriction?
Thomas
-Original
Thanks Richard that makes it clear.
Thomas
-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: 02 June 2005 12:43 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Multiple inserts as a single string?
Hello Thomas,
Thursday, June 2, 2005, 10:20:11 AM, you wrote
that repair
function on every page call,
2. I am using xhtml1.1 as DOCTYPE and tidy only gives me the 1.0
transitional version.
Thanks,
Thomas
sufficient).
Thanks
Thomas
Hi there,
Is there an app out there that can easily create a relationship (flow)
diagram of a given database?
Thomas
quite often (just renamed
the files to the insert id) with good success.
Any ideas?
Thomas
t if could do any other
way would be great.
Any ideas?
Thomas
Hi there,
How can I do something like this:
[snip - theoretical code] if( isset($step) ) echo step.$step() ) [/snip]
$step would be an int (I would check that before) and then I would have all
sorts of functions like step1(), step2() . etc.
Any ideas?
Thomas
Thanks Burhan. Is there much overhead?
Norbert: that's what I am doing now, just wanted to save some code. :-)
Thomas
-Original Message-
From: Norbert Wenzel [mailto:[EMAIL PROTECTED]
Sent: 08 August 2005 11:18 AM
To: php-general@lists.php.net
Subject: [PHP] Re: dynamically select
reating
of reports, and so on, and so forth . )
Alternatives could be: mono, qt (arrgh), mozilla/xul (any done that?) or
Java :-( .
Any thoughts on that?
Thomas
Hi there,
How can I protect all files with extension .xml from being accessed by the
outside? For Apache can one use .htaccess (if yes, how?), is there a generic
way of keeping stalkers from viewing your config files?
Thomas
SPIRAL EYE STUDIOS
P.O. Box 37907, Faerie Glen, 0043
Tel
who may or may not like to
do that)? From that question, .htaccess files seemm the most portable
solution.
Thanks again.
t
-Original Message-
From: Rory Browne [mailto:[EMAIL PROTECTED]
Sent: 29 August 2005 07:59 PM
To: Thomas
Cc: php-general@lists.php.net
Subject: Re: [PHP] Prote
Hi,
On checking form fields that they are of type int, what is best to use:
intval() or type casting (int)?
In terms of speed, would (int) not be better, because we save a function
call (especially on very large sql statements)?
Thanks.
Thomasx`
SPIRAL EYE STUDIOS
P.O. Box 37907, Faerie Glen
r into the query function manually?
Thanks
Thomas
SPIRAL EYE STUDIOS
P.O. Box 37907, Faerie Glen, 0043
Tel: +27 12 362 3486
Fax: +27 12 362 3493
Mobile: +27 82 442 9228
Email: [EMAIL PROTECTED]
Web: www.spiraleye.co.za
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
Sent: 27 September 2005 03:20 PM
To: php-general@lists.php.net
Subject: Re: [PHP] __FILE__ and __LINE__ of calling scripts?
Thomas wrote:
>Hi,
>
>I want to find out if it is possible to get the file name and the line
>number of a calling script (__FILE__, __LINE_) from a calling cla
Hi,
Having spent a little time on Google (and reading unrelated articles ...) I
would like post my question here again (as advice on the list is always very
valuable indeed!):
Q: What would be the best way to save db calls for large result sets?
I thought about serializing the data and then c
Hi,
Having spent a little time on Google (and reading unrelated articles ...) I
would like post my question here again (as advice on the list is always very
valuable indeed!):
Q: What would be the best way to save db calls for large result sets?
I thought about serializing the data and then c
scripts)?
Thanks
T
-Original Message-
From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED]
Sent: 28 September 2005 11:41 AM
To: php-general@lists.php.net
Subject: Re: [PHP] serializing result sets or what?
Thomas wrote:
> Q: What would be the best way to save db calls for large res
I have used nusoap and a xmethods service. You can get the ziped files here:
http://www.thomash.co.za/uploads/forex/forex.nusoap.zip
Hope that helps
BTW: also had issues with the PEAR package.
T
-Original Message-
From: Sylvain Gourvil [mailto:[EMAIL PROTECTED]
Sent: 28 September 2005
Hi,
Templating systems are really a matter of taste. You have a few options,
depending also on the paradigm you want to use (Model2, MVC ... maybe read
up on that as that is good general knowledge).
Also, please check the archives as this question has already been discussed
at length ;-)
Anyway,
eason (but then again, we might have been stupid :-)_
If you are rewriting the project, why don't you implement a DB abstract
layer, like PEAR:DB or adodb_lite? Will take you a while but will make your
code look so much better.
Cheers
Thomas
-Original Message-
From: AmirBehzad Eslami
with javascript (if you do not need 'fresh' data)
Thomas
-Original Message-
From: Robert Graham [mailto:[EMAIL PROTECTED]
Sent: 19 January 2006 09:34 AM
To: suresh kumar
Cc: php-general@lists.php.net
Subject: Re: [PHP] help me plz
suresh kumar wrote:
> hi,
>i am usin
also indicates that it can't really be my php scripts, otherwise it
would happen all the time.
Does anybody have any suggestion as to how I can solve this issue? I know
this is pretty vague information, but it's all I have (hence the confusion).
Thanks,
Thomas
SPIRAL EYE STUDIOS
P.O. Box 379
Hi Jochem,
PHP5.0.4, on both systems. I suspect that either of the PEAE modules cause
some server id10t error (if indeed the issue is on my side).
Thomas
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: 25 January 2006 03:00 PM
To: Thomas
Cc: php-general
Hi,
I really need some help here because I am going to lose my mind otherwise!!
A script that was running fine Friday has decided not to work for no
apparent reason today. The problem seems to be with a socket_create that
just stops the script, so I created a simple test script as shown below to
s
.delouw.ch/linux/web-cyradm/
Thomas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I have some code that writes data to a socket (works fine) and stores the
resource id created in a table with the column defined as varchar (80). Then
the next time I need to write data to the same IP I retrieve the resource id
and reuse it. Problem is that the socket_write seems to work fine
";
}
include ('./footer.php');
?>
What i need is to declare the arrays $names and $prices
And select the prodid as key and the title as val how can I do this?
I tried "select prodid as key, title as val
but that doesnt work.
thx for any help
--
PHP General Mailing List (http://www.php.net/
Hi,
you give less information.
How do you compute the entry number and how do you save the entries and so on.
Normally you will have to live with the gaps but sure, you can touch every entry
and change its number ;-).
Thomas
On Sun, 1 Dec 2002 10:33:45 - [EMAIL PROTECTED] (Vicky) wrote
arent
- nice admininterface to answer support-requests and add comments (not sent to
visitors)
- open/close/stalled/bogus ... and so on tags for the system
- ...
So the question is, does anyone know any good troubleticket/helpdesk-systems written
in PHP?
Thanks,
Thomas
--
PHP General Mailing
Sounds interesting.
I used RT at work but it was a nightmare to install and since my machine
is a pure PHP-Apache I don't want to install mod_perl-support as well.
Let me know if you need help on some parts.
Thomas
On Sun, 1 Dec 2002 14:33:02 -0500 [EMAIL PROTECTED] (Jonathan Chum) wrote:
$fp=fopen("filename","a");
fputs($fp,"text to the file");
fclose($fp);
Regards,
Thomas
On Mon, 2 Dec 2002 15:52:23 -0800 (PST) [EMAIL PROTECTED] (Bryan Koschmann - Gkt)
wrote:
> Okay, this is probably stupid, but how do you print to a file?
>
> Thank
.e. search for the "grant"-statement.
Thomas
On Tue, 3 Dec 2002 16:56:40 -0700 [EMAIL PROTECTED] (Chase) wrote:
> Thanks for the info... As it turns out, I am just a blithering idiot... I
> didn't know that I had to create a separate user... As I said, that shows
> m
Hi,
Background:
I've created a vacation-request application for our company's intranet.
When an employee requests a vacation, he has to list the name of another
employee who will 'fill in' for him while he is gone.
Before a vacation request can be saved in MySQL, I need to
Hi,
I am attempting to timeout a socket_read() that is part of a handshaking
process using socket_set_timeout(). Problem is it doesn't seem to work at
all. If I switch of the handshaking write on the server side the read just
sits there and doesn't time out at all. I have tried
socket_set_timeout(
built my own timeout loop into the code and voila!!
Gareth
"Gareth Thomas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am attempting to timeout a socket_read() that is part of a handshaking
> process using socket_
Mail/News-Client Sylpheed
On Sat, 7 Dec 2002 23:31:57 -0500 [EMAIL PROTECTED] (Conbud) wrote:
> I was just curious, but what program or website do you all use to view and
> reply to the newsgroups with ?
>
> Lee
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
If you do not want to re-write all your code and your web server is Apache
and your host allows the use of .htaccess files you can turn
register_globals = on programmatically:
http://www.php.net/manual/en/configuration.directives.php#ini.register-globa
ls
(php_flag register_globals = ON;) i think
Using $_REQUEST[""] works because the vars are in the http request, but
$_POST[""] contains nothing as the other poster noted: mehtod="post"
>>-Original Message-
>>From: David Scott [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, December 10, 2002 1:20 PM
>>To: [EMAIL PROTECTED]
>>Subject: [P
t;>-Original Message-
>>From: Jason Wong [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, December 10, 2002 2:04 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [PHP] Pls Help: Moving script from Win to Linux
>>
>>
>>On Wednesday 11 December 2002 02:38, Craig Thomas
>>previous page. Try putting the log in information and anything
>>else needed
>>in hidden fields in your form.
YIKES!...hidden form fields are viewable in the html source generated.
session_register() anyone?
I thought you were trying to re-use the db connection?
if so, use mysql_pconnect() i
>>The problem is I have to reset the SQL result array on each for
>>loop. How do
>>you do that?
$myNewArrayFullofSqlResultsThatICanLoopOverAsManyTimesAsIWant =
mysql_query($sql);
-Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= mysql_fetch_array($result)) {
>>//Some Code
>>echo $row['filed'];
>>}
>> //Reset result array
>> $result = mysql_query($sql);
>>}
>>
>>--
>>_____
>>Mark McCulligh, App
>> $mysql_result = mysql_query($query, $mysql_link);
I am not sure if this is your only problem or not, but mysql_result(); is a
function in php. Using a function name as a variable seems like it will
just lead to confusion to me. I'd try to avoid it.
>>--> line 36 while($row = mysql
--> line 36 while($row = mysql_fetch_row($mysql_result))
>>
>>Anyway, where do you define $row?
>>
>>HTH
>>
>>-Craig
DOH! it's been a long one...
-Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s and their corresponding values.
It should compute then the required tables to update based on the involved fields
and update them with the values given.
I know I could do it on my own with some work but I'm hoping someone has already
developed something like that.
Thanks,
Thomas
--
P
oh, some addendum, I would need it for MySQL if its dependend.
Thomas
On Mon, 16 Dec 2002 21:46:34 +0100 [EMAIL PROTECTED] (Thomas Seifert) wrote:
> Hi folks,
>
> I'm looking for a function or class which is able to automatically update
> multiple tables.
>
> The h
rst off I dump all the records which were already in the
dbase. And then it needs to get filled up with the new items.txt
I would appreciate your help
greets
--
Thomas Goeminne
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
from the manual:
Note: On systems which differentiate between binary and text files (i.e. Windows) the
file must be opened with 'b' included in fopen() mode parameter.
Thomas
On Wed, 25 Dec 2002 11:43:13 +0100 [EMAIL PROTECTED] (Bbun) wrote:
> Hey,
>
> I am trying t
an excerpt from php man pages says that:
"This function requires the imap_stream to have been opened as the mail
administrator account. It will not work if opened as any other user.
...
...
$mbox = imap_open ("{your.imap.host:143}", "mailadmin", "password");
"
my question is, where do i set this
sult)){
print "\t\n";
print "".$line['level']."\n";
print "".$line['pm']."\n";
print "".$line['date']."\n";
print "\t\n";
}
Regards,
Thomas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
there is no need to close and open the connection for every query.
just run the mysql_query again and again and again on the open connection.
Still Stephen's quote is true, you can't run more than one query by one call to
mysql_query.
Thomas
On Tue, 31 Dec 2002 16:30:38 -0600 [EMAIL
Hi,
i need some way for child-processes to ignore the kill of their parent. Any
idea?
Thanks,
Thomas 'Neo' Weber
---
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
dear all,
i have 2 servers that were *given* to me to setup and implement webmail
solution for our client. i have done some groundwork in terms of the backend
applications that are needed to do this.
what i wanted to know is, how best can i distribute the backend applications
between those 2 serve
I am using the pcntl_ fork() from PHP. The problem with exec() is that i
need the variables and socket-descriptors from the parent.
Thomas 'Neo' Weber
---
[EMAIL PROTECTED]
[EMAIL PROTECTED]
- Original Message -
From: "Michael J. Pawlowsky" <[EMAIL PROTECTED]&
it may be, that destiny is wrong.
the error-message tells that you don't have access to where you are trying to upload
the file to.
Thomas
On Wed, 08 Jan 2003 20:59:02 +0100 [EMAIL PROTECTED] (Oliver Witt) wrote:
> I uploaded that script with a common ftp program on my serve
I am trying to run a PHP page from my browser (Mozilla) and each time I load
the page it is attempting to force a dowload of the page instead, based on
the mime-type. I had been developing a command line PHP application which
works fine and then had just started on a web interface and realised that
Open Platform Consulting
> e-mail: [EMAIL PROTECTED]
>
> > -Original Message-
> > From: Gareth Thomas [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 9 January 2003 12:03 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] apache and php
> >
> >
> &g
they are
not
new namespaces
Thomas
On Sat, 11 Jan 2003 12:49:15 +0100 [EMAIL PROTECTED] (Ben9000) wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hello List,
>
> a simple problem turned out to be not so simple as I thought.
>
> Here the situation
http://de.php.net/manual/en/function.mktime.php
The most important part is
"mktime() is useful for doing date arithmetic and validation, as it will automatically
calculate the correct value for out-of-range input."
Thomas
On Sun, 11 Jan 2004 16:12:01 +0330 [EMAIL PROTECT
have the time in 3 hours
$timestamp = $timestamp + (3600*3);
// you can convert this time back to a readable format using strftime
Regards,
Thomas
On Sun, 11 Jan 2004 16:22:08 +0330 [EMAIL PROTECTED] (Sadeq Naqashzade) wrote:
>
> So Thanks, but can you get me some exampl
how about just reading the docs which are available online?
http://de.php.net/manual/en/ref.image.php
and especially
http://de.php.net/manual/en/function.imagecopyresized.php
will help.
Thomas
On Sun, 11 Jan 2004 16:32:36 +0330 [EMAIL PROTECTED] (Sadeq Naqashzade) wrote:
> Hi every one,
i am referring to imap_get_quota manpages at
http://www.php.net/manual/en/function.imap-get-quota.php
it gave a short script (see bottom).
question: in a qmail-ldap/courier-imap environment, who is that mailadmin ?
-- script start --
$mbox = imap_open("{your.imap.host}","mailadmin","password",O
php-4.3
libmcal-0.5 (i intend to use Horde's Kronolith and the README said it cannot
work with libmcal-0.6)
configure gave this error:
checking for MCAL support... yes
configure: error: Unable to locate your libmcal header files - cal_misc.h
should be in the directory you specify or in the include
The mail-server has to respond that it received the mail.
Maybe you've set the firewall only one-way open?
Thomas
On Fri, 17 Jan 2003 15:29:32 -0500 [EMAIL PROTECTED] (Stephen Goehler) wrote:
> Thanks, the server was relaying, but it turned out to be the firewall that
> was re
it doesn't change it in the database, just in the output.
Thomas
On Sun, 19 Jan 2003 03:17:04 +0200 (EET) [EMAIL PROTECTED] (Paul Marinas) wrote:
> something like that only i don't whant to alter the database, the fields
> in the database must remains unchanged, only, on
Hmm, I didn't see this effect but I only tried on a development machine.
I benchmarked a app there with both php-versions and it was nearly 20%
faster with php-4.3.0.
But that may depend on the application.
Thomas
On Mon, 20 Jan 2003 18:30:05 +0100 [EMAIL PROTECTED] (Philipp) wrote:
&g
"file" already returns an array so this would be best for that :).
Thomas
On Wed, 22 Jan 2003 14:00:09 + [EMAIL PROTECTED] (Didier McGillis) wrote:
>
> Cool I'll report back what I have found. Question. I have tried fopen and
> file and was wondering for opening
>
> Is there anything obvious that I am doing wrong?
>
> Thanks,
> Shams
>
> p.s. I don't want to use else{} because I have lots of if() checks!
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
Thomas Seifert
mailto:[EMAIL PROTECTED]
http://www.MyPhorum.de
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try:
if (isset($_POST['frmAction']) && $_POST['frmAction'] == "formmail")
instead of your line.
Thomas
On Wed, 22 Jan 2003 09:47:46 -0500 [EMAIL PROTECTED] (Stephen Goehler) wrote:
> Hey guys,
>
> Thanks in advance for your help.
>
> I
it won't work the way you are doing this.
Try something like that line (changed from yours):
fputs($fd, "From: ".$_POST['name']." <".$_POST['email'].">\n");
Don't ask arrays directly in a string.
Thomas
On Wed, 22 Jan 200
I'm running it in production since MySQL-4.0.2 and without any problems.
Thomas
On Wed, 22 Jan 2003 11:21:40 -0800 [EMAIL PROTECTED] (Joe Stump) wrote:
> Anyone out there have anything to share as to using PHP4+MySQL4. I've been
> hearing good things on the MySQL list ab
Hi.
is their a possibilty to get the windows username of the current logged on
user with php.
I want this to make a logon dialog more comfortable.
Thanks for an answer and a little example if it's possible.
Thomas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi all,
I have a command line PHP script that is in a continous loop to monitor a
particular database event. I am running RedHat 8 and the only problem I am
finding is that it hogs the CPU. I developed the script originally on
Windows and it worked better there. Is there a way to limit CPU resourc
of
> how to do an insert to the database using these arrays? My array is
> this...$item['itemID']
try something like that:
mysql_query("INSERT INTO items SET itemcolumn='".$item['itemID']."'");
or just
mysql_query("INSERT INTO items
onvertdb.php on line 17
>
> The code:
> [...]
> Any idea?
Yeah, read out mysql_error() after sending the query and before doing fetch... to
see what mysql thinks is wrong.
Regards,
--
Thomas Seifert
mailto:[EMAIL PROTECTED]
http://www.MyPhorum.de
--
PHP General Mailing Li
1 - 100 of 862 matches
Mail list logo