So, you have a text file with tab delimited values, one row per line yes?
---
";
foreach($myrow as $k => $v)
{
if($row == 0) { $v = "{$v}"; }
echo "{$v}";
}
echo "\n";
$row++;
}
fclose ($fp);
?>
---
Notes:
1. untested code, but should be f
Hi,
I have 'test_file.txt' with the contents:
label1label2label3comments
name1 name2 name3
name4 name5 name6This is a comment
...
How can I turn this into a table using PHP?
Thanks,
-Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
"Cirstoiu Aurel Sorin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I tried to use $HTTP_SERVER_VARS['HTTP_HOST'] but the result is null.
I believe your web server has to set that variable. Does phpinfo() show
a value for it?
- Steve Yates
- Friends
> Anup wrote:
> > Hello I am working on a PHP server which has register_globals off. In my
> > script is there anyway to turn it on, just for my script?
One trick for using old PHP code is to use
extract($HTTP_POST_VARS);
...at the beginning of your script. That will autocreate all the POST
va
> So, is this allowable to set in user scripts? Or is the dosumentation
> correct in saying it cannot?
My bad, you (and the documentation) are correct. :-)
Jome
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yikes, I sort of lied. It's been awhile...
Clients uploaded files from an intranet server to an external servier via
their browser and ftp_put. It wasn't local machine to remote server.
Sorry! Best of luck,
Jed
P.S. I wonder, though, if there isn't some way to execute a script with
exec() to ge
Hi,
Monday, September 9, 2002, 3:42:44 AM, you wrote:
A> Hello I am working on a PHP server which has register_globals off. In my
A> script is there anyway to turn it on, just for my script?
By the time your script is read register_globals has already done it's
checking so it is too late and won
Hello everyone,
I should get GD 2.0.1 installed to my PHP 4.2.2 binary running as a module
in the Apache 1.3. The box is RedHat 7.3. There is a previous version of GD
(1.8.4) installed as a default and it seems that I can't even get ereased it
due to depencies. Anyway, I'd need that GD 2.0.1 due
An extremely basic chat would be a frame or iframe which has a meta tag
refresh (or javascript refresh) of a plain HTML page every 10-20 seconds.
As far as the flash stuff goes, have a look at macromedia.com or the 1000's
of flash sites... I'm positive you'll find some development tools for a
pre
Gerhard Hoogterp wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> > Hello Phil, your idea is interesting. I am evaluating it because it is not
> > a true 'chat' (if user doesnt load any page he will never see incoming
> > msg), but your idea is the only thing I have to this time.
>
>
php-general Digest 9 Sep 2002 02:21:53 - Issue 1574
Topics (messages 115662 through 115696):
Re: LDAP Authentication problem
115662 by: Stig Venaas
Re: file include relative file addressing.
115663 by: . Edwin
115664 by: . Edwin
115665 by: . Edwin
dropping
timo stamm wrote:
> Hi Mig,
>
> to create something that behaves more like a true "chat", you
> need an active client side.
> For example, you could let a frame with the PHP be reloaded in a
> short interval.
>
> To create a real chat, you need a socket connection. The best
> solution would be Fl
Why you can't use square brackets?
"Alex Shi" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How to ontain data from a group of checkbox using same name?
> For example, in a form there're 6 checkboxes and all named as
> "Interesting_Area". I know if put a
How to ontain data from a group of checkbox using same name?
For example, in a form there're 6 checkboxes and all named as
"Interesting_Area". I know if put a pairs of square brackets at the
end of the name then in php all the values of them can be ontained.
However, for some reason I cannot use s
Does this work for the original poster?
Does not work for me (of course I am going the opposite way, wanting to
test scripts one-by-one to verify they work with register_globals off)
running: ini_set("register_globals", 0);
(and, tried both) ini_set("register_globals", "Off");
According to the d
http://your.redirection.url/";);
die;
?>
http://www.php.net/manual/en/function.header.php
HTH..
Take care.. peace..
eriol
"Anjali Kaur" <[EMAIL PROTECTED]> disgorged:
: i dont know how to redirect a page... i mean i want to
: have the effect of submit button without clicking on
: th
Hi David,
you should start by checking your current php instalation:
# rpm - qa | grep php
This will show you all packages which contains "php". It will be something
like following:
php-4.1.2-7.2.4
php-manual-4.0.6-15
php-imap-4.0.6-15
php-ldap-4.0.6-15
php-mysql-4.0.6-15
php-odbc-4.0.6-15
php-
> Hello I am working on a PHP server which has register_globals off. In my
> script is there anyway to turn it on, just for my script?
ini_set("register_globals", 1); at the top of your script.
Jome
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Hi
I setup Easy php on my PC (windows 98) , I try to use dreamweaver 4.0 to
make borders as it is done with frontpage. I used (SSI ) like that :
but the pb the borders (top , left and bottom.htm) appears in my
dreamweaver but in local host they don't appear (the local host is apache
1.3.20 )
pl
I think you are definitely on the right track here, though I
unfortunately haven't had time to look at your code (thus, I'm just
going by your description).
Due to frequent vulnerabilities found in Internet Explorer's cookie
handling (versions 4.0 - 6.0 allow anyone to view cookies from any
d
Hi all. What's the correct procedure to upgrade PHP (in this case 4.0.6) on
a Red Hat system? Usually I just get the PHP tarball compile it myself but
for this particular machine I just want to upgrade the Redhat PHP that's on
the system. As you guys know Redhat puts its PHP (and Apache) files i
hello,
i dont know how to redirect a page... i mean i want to
have the effect of submit button without clicking on
the submit button.
thank you
anjali
__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
PHP
Ohmygosh.. That works...
if ($update_type == update_Williams) {
mysql_query("INSERT INTO events_Williams (user, detaildesc, indexx,
reference, date_added) VALUES ('$cookiewho',
'$add_Williams','','$row_num','$last_update')", $sql4)
or print mysql_error();
}
inserts perfectly..
Shoudn't it be:
if ($update_type == update_Williams) {
mysql_query("INSERT INTO events_Williams ('user', 'detaildesc', 'index',
'reference', 'date_added') VALUES
('$cookiewho','$add_Williams','','$row_num','$last_update')", $sql4)
or print mysql_error();
}
You need the '(' and ')'
This syntax fixes the syntax error..
if ($update_type == update_Williams) {
mysql_query("INSERT INTO events_Williams ('user', 'detaildesc', 'index',
'reference', 'date_added') VALUES \'$cookiewho\',
\'$add_Williams\',\'\',\'$row_num\',\'$last_update\'", $sql4)
or print mysql_error();
Hi,
cd /etc/rc.d
locate the scripts reflecting the services you need to start at boot
do insserv for each script.
e.g.
insserv apache
That way, next time it boots these services will start.
Another way is to use the runtime-level editor of YaST2.
-Stathis.
[EMAIL PROTECTED] wrote:
>
> Hi,
>
Parse error: parse error, unexpected T_ECHO in
/var/www/html/actionreg/doupdate.php on line 24
Forgot I had that function.. I don't understand the error though..
Steve Gaas
Sr. Systems Engineer, Carrier Markets
Riverstone Networks
972.668.8329 (follow-me)
877.713.7063 (pager analog dial)
[EMAI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
Send the results of mysql_errno() please. :)
~Pauly
if ($update_type == update_Williams) {
mysql_query("INSERT INTO events ('user', 'detaildesc', 'index',
'reference', 'date_added') VALUES (\'$cookiewho\',
\'$add_Williams\',\'\',\'$r
Hello,
My code below always dies! I've tried just about every iteration of the
values, etc.. Can anybody show me how to insert into MySQL a value?
"INSERT INTO events ('user','detaildesc') VALUES ('$user','$details')"
I just don't get it!
if ($update_type == update_Williams) {
mysql_query("
Hi,
Look at www.php.net/ini_set
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Anup" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hello I am working on a PHP server which has register_globals off. In my
> script is th
Here are my safemode parameters:
; Safe Mode
safe_mode = Off
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_ ; Setting certain environment
variables
; may be a potential security breach.
; This directive contains a comma-delimited
; list of prefi
So do you think it has to be a server issue and not a code issue? My site's
traffic load has increased significantly in the last week or so and that's
kind of when it started happening. Could there be a resource problem? Is
there any way to find out more on why it's not running?
- Noah
"Noah Spi
Sorry, I wrote too quickly. I meant that the file size field value is passed
to the bottom frame. And JavaScript is used to resize the gif, not DHTML.
(Used to be DHTML when I was adding nbsp instead of resizing an image.)
HTH,
Jed
On the threshold of genius, Jed Verity wrote:
> There really is
I think it is a global configuration setting, so it would not be
possible to turn it off for an individual script.
Just use the $_SERVER['variable_name']
-Brad
Anup wrote:
>
> Hello I am working on a PHP server which has register_globals off. In my
> script is there anyway to turn it on, just
Hello I am working on a PHP server which has register_globals off. In my
script is there anyway to turn it on, just for my script?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
There really isn't a great solution for this, that I know of. It's one of
the few things that makes an argument for ASP over PHP, as far as I'm
concerned (if you have the luxury of choosing). Below is what I did once to
try to get around the problem. It worked *okay*.
The bummer is that I had to
Hi,
I'm setting up an Linux Server for codetesting an routing, but it takes
about one week now to configure this s**t.
I could make the routing working. But some Daemons don't start at bootup.
Such as Apache, Squid, MySQL and so on. The only way I'm able to surf in the
Internet is to start Squid
How about giving this page a look over:
http://www.macromedia.com/desdev/topics/php.html
Here's an article especially for using PHP and MySQL with Flash MX
http://www.macromedia.com/desdev/mx/flash/articles/flashmx_php.html
HTH
-Brad
"Thomas Edison Jr." wrote:
>
> I have a mySQL db, and a bunc
I have a mySQL db, and a bunch of tables in it.
What i want to do, is to pick up some data, and
display in my Flash Movie.
For example. I have a table with a list. Now on my
main page, i display the total number of people in the
list so far (By counting the rows). Now i want to
display the same
Everything I've read says that there is no way to display the progress of a
file upload (via a form) using PHP.
I'm currently working on a site which will regularly be accepting very
large uploads, anywhere from 10 to 250+ mb and I really need a way to
display the progress of the upload so tha
Hi list
Is is possible to change the default behaviour of the mail() function to
send the message to the queue instead of trying to send it immediately?
I did do some research into this a while back, but it never really got
to a point where I was completely satisfied with the results. I can
recal
??? I thought you said "my.inc.php" but you're including "my.php".
This one should work:
include_once "../include/blah/my.inc.php"; // filename is my.inc.php
- E
"Nelr" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> From the root of a website: /
>
> I had
??? I thought you said "my.inc.php" but you're including "my.php".
This one should work:
include_once "../include/blah/my.inc.php"; // filename is my.inc.php
- E
"Nelr" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> From the root of a website: /
>
> I had
??? I thought you said "my.inc.php" but you're including "my.php".
This one should work:
include_once "../include/blah/my.inc.php"; // filename is my.inc.php
- E
"Nelr" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> From the root of a website: /
>
> I had
On Wed, Sep 04, 2002 at 03:58:18PM -0400, Brad Harriger wrote:
> I'm trying to retrieve information from an NDS server using LDAP
> functions in PHP 4.06. I am able to establish the connection and bind
> to the server using an anonymous bind, but when I try to bind as a valid
> user, the app s
php-general Digest 8 Sep 2002 13:49:48 - Issue 1573
Topics (messages 115635 through 115661):
How to do pass on information...
115635 by: Chuck PUP Payne
115636 by: Brad Bonkoski
header() problem
115637 by: xdrag
Re: Proposal for securing PHP sessions
11
On Wed, Sep 04, 2002 at 02:26:49PM +0200, Søren Henning Dalgaard wrote:
> I can make an ldap_connect with the ldaps://hostname/ parameter but what
> next:
> How can make an ldap_bind command?
> How can I encrypt and decrypt the data?
When using ldaps:// all communications are through SSL, you do
Hi Mig,
to create something that behaves more like a true "chat", you
need an active client side.
For example, you could let a frame with the PHP be reloaded in a
short interval.
To create a real chat, you need a socket connection. The best
solution would be Flash (which has great functions
Hi speedfreak,
uh, clients. Can't they just send the checks an be content? :-)
I have yet not done a user-sorted list in PHP/MySQL (I am using
PHP since a week, now :-). But I think the following database
setup should allow you to do it:
id content above below
1 lala
Hi Kevin,
I find it a bit awkward to mix variables and arrays in a pseudo
array. But I guess you have reasons...
Anyhow, maybe this is what you want:
$variable1="one";
$variable2="two";
$variable3 = array();
$variable3[0]="three";
$variable4 = array();
$variable4[0]="four";
$j=1;
wh
>From the root of a website: /
I had a file called /my.php which included a file /include/blah/my.inc.php
In my.php if I put the include_once( "./include/blah/my.inc.php" ); it works
fine
when my.php is in the root of the site.
If I move /my.php to /blah/my.php, no matter how I address
../inclu
One thing that I did that may help.
Every time a session is opened, the system insists on writing to disk on
every page, whether the session is updated or not.
With a lot of users, this is a bit of a system bog.
So, I hold the contents of a session when 'read', in a global variable.
Then, in the
Nope, have no idea... I've just allways been told (and adhered to) the rule
that you don't trust anything client side, which would include IP address'.
Even if you could get it working for AOL, what about some other ISP located
in Australia, South Africa, or anywhere else on the planet that you've
Just out of curiosity, do you know if any part (e.g. x1.x2.x3.x4) of the IP
remains static when AOL changes it? Even if it's only the first part, that's
better than nothing.
I'm having a headache now, because I'm already behind schedule, and this has
just thrown a spanner in the works :( (but sti
Yeah,
I have outputted to browser
Split() was working fine.. Sorry for the noise
on the list. But I have realised that the very moment
I posted the mail on the list.
/Chandu
- Original Message -
From: "Chris Wesley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "N. Pari Purna Chand"
lol, no sooner had I spoke than it sprang back into action! I now have the
source you posted. Looking it over!
"M1tch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Okay, having had my own solution shot and burned ;), I would love to look
at
> yours, but unfo
Okay, having had my own solution shot and burned ;), I would love to look at
yours, but unfortunately the page (well, the entire site), will not load.
It could be a temporary outage with either ISP, but is there anyway you
could post it here? (I perhaps flag it as large?).
On my site, I'm not rea
Check Out
Credit Card validation routine. Uses MOD 10 to check if credit card
number is valid.
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=74
Validating Credit Card Numbers Without Bank Involvement
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=333
A set of f
Ooooh, it's a lesson every day! Right, back to the drawing board :(
"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> on 08/09/02 5:04 AM, M1tch ([EMAIL PROTECTED]) wrote:
>
> > Why not just use IP?
> > I created a nice system, whereby if your IP
"Philip J. Newman" wrote:
> You could create a scema, or module that is called with each page load, that
> checks for messages when the user is logged in. So when the message is
> stored into the databace, when the user loads the anypage while logged in it
> checks for new messages, and if the u
On Sun, 8 Sep 2002, N. Pari Purna Chand wrote:
> $to = " abcd <[EMAIL PROTECTED]>, efgh <[EMAIL PROTECTED]>" ;
> Now split() in the following function*** is notworking as needed.
> ie, I'm getting
> $tos[0] = "abcd";
> $tos[1] = "efgh";
split didn't do anything wrong. use your browser's "view
, efgh <[EMAIL PROTECTED]>";
$tos=split_addresses($to);
echo $tos[1];
?>
echos efgh <[EMAIL PROTECTED]> ?? Whats the problem? Maybe you output to a browser
and don't see <[EMAIL PROTECTED]> cause its between <>
Op zondag 08 september 2002 10:17, schreef N. Pari Purna Chand:
> I have a string
I have a string
$to = " abcd <[EMAIL PROTECTED]>, efgh <[EMAIL PROTECTED]>" ;
I want a function returning an array of
indivial names+mailids like from the $to seperated by ","
something like
$tos[0] = "abcd <[EMAIL PROTECTED]>";
$tos[1] = "efgh <[EMAIL PROTECTED]>";
Now split() in the followin
63 matches
Mail list logo