Alice,
If you are already set 755 on the CGI, it looks like it might be a webserver
configuration issue.
If you are using Apache (I'm assuming you are) you might want to take a look
at
http://httpd.apache.org/docs/2.0/howto/cgi.html#configuringapachetopermitcgi
for some hints on how to make
I'm thinking:
?php
header(HTTP/1.1 410 Gone);
die();
?
Regards,
Jason
On Thu, Jun 26, 2008 at 1:54 PM, David Giragosian [EMAIL PROTECTED] wrote:
My favorite vi command:
e! Damn it. e!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Body not found? Who do you think I am? Jesus?
On Thu, Jun 26, 2008 at 3:01 PM, Robert Cummings [EMAIL PROTECTED] wrote:
On Thu, 2008-06-26 at 14:54 -0400, Jason Murray wrote:
I'm thinking:
?php
header(HTTP/1.1 410 Gone);
die();
?
What about a 404? :)
?php
header( 'HTTP/1.1 404
On Thu, May 15, 2008 at 2:09 PM, afan pasalic [EMAIL PROTECTED] wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or all.
order number is stored in mysql
Try:
echo tdinput name=.urlencode($key). type=checkbox
value=.urlencode($value)./tdtd. $value./td;
On Wed, May 14, 2008 at 4:02 PM, Mark Bomgardner [EMAIL PROTECTED]
wrote:
I am trying to use array's to populate a group of check boxes for a form.
I
am getting the checkboxes to print OK,
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You need to explode() $line.
Won't that still cause problems for him, since explode() will
ignore concurrent separators ()?
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Where do you get that from?
Probably from not trying it before I open my mouth. I must
have dreamed it somewhere, sorry :)
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How can I get this to use the next auto_increment of
id (Next Autoindex = 52)?
What if you just remove id from your field list?
insert into ccl.ccl_maintest (id,RNum,YR,AU,ST
^^^
Here :)
(Just an idea...)
J
--
PHP General Mailing
Go to www.google.com - enter phpMyAdmin - hit I'm Feeling Lucky
:)
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
-Original Message-
From: Erik Gilchrist [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 10:15 AM
To: [EMAIL PROTECTED
Can anyone tell me if there is any reason why this would not
be working?
mysql_connect($DBhost,$DBuser,$DBpass) or die(header(Location:
error.php));
Why bother calling die() at all there?
?
if ($mysql != mysql_connect($DBhost,$DBuser,$DBpass))
{
Header(Location: error.php);
Can you practice function over-loading in php?
No you cannot overload in PHP.
You can achieve the same effect (having the same function do
something else in a different circumstance) by making
parameters optional:
?
Function functionName($param1, $param2 = )
{
...
}
?
I was about to set up a spreadsheet again - but since I've started
getting into learning PHP - and have recently set up our home linux
server - thought that it would be a lot more exciting / functional
to have a system running on the server that would allow each person
to log in,
Is their a way to run a command as root..or another user..
I know their are a log of security issues with allowing this.. I will
tighten down security after I get it to work.
Get your sysadmin to set up sudo so that the user running your
web server (usually nobody, httpd or www) can execute
Would you please direct your attention to this URL
http://testphp.netfirms.com/code1.html
Look at the bottom where the big orange commented syntax is
and explain what is going on there?
{$config[prefix]}
I think this should be
${config[prefix]}
... also, it's handy to actually echo
Mine produced the same error message as yours, Jason, but the memory
and CPU usage continued until I hit the 'stop' button on the browser.
It seemed to have overridden both time and memory limits, as it had
racked up 320 megs of my RAM by the time I stopped it.
It certainly didn't do that
I'd be interested in knowing your versions and the versions
of the first guy that posted about this. Maybe he has the same
setup as me, or close enough, but both of us are different
from you.
Actually, I just thought about it - maybe you guys are both running
it on Windows (shame on you
I know what you are saying. I've taken down apache on win32
with setcookie
[snip]
I'm pretty sure they ran PHP on apache, not IIS. Maybe this
problem is only with the win32 version of the PHP module.
Yep, apparently I can't read. Apache, IIS, same header() probs.
Nonetheless, a bug is
/passwd and guessing passwords, or
getting access to other sensitive information on your file
system).
Unless there's something specifically bad about the Header()
command (you didn't make it clear if this is what you were
talking about), inifinite loops are, in general, bad.
Jason
--
Jason Murray
It does not stop after its execution time.
Is your PHP actually configured to stop running after 30 seconds,
though? Its the default, but you may have overridden it.
We have let this run for 10+ minutes to see if it would crash the
server, and it did.
Is it possible you're called
It's a default PHP installation. We aren't calling set_time_limit().
I know its an infinite loop, the point is that if a user wanted to
attack a server (happens every day) they would be able to use this
method to take the server down.
But, if the user has enough access to the server to
If the user has enough access to the server to place files on it ?
There are hosting places that have PHP and you can just upload the PHP
script through FTP and access it in your browser.
... in which case all you'll accomplish is taking out your own server,
which is not a DoS attack. :)
A big if, since the OP has not yet verified that the time limit and
memory limit are in effect at the outset of the loop as supposed.
Someone else want to test for this scenario? Someone, that is, who
can deliberately bring down their server without getting kicked
off permanently?
So that was both as an Apache mod and a CGI binary? Sounds like it's
reproducible.
Running as an Apache module here, it terminated as expected at 30 seconds.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Use strip_tags and only allow basic HTML (basic HTML can be anything
but I'd make it BIUDIVSPANSTYLETABLETRTD) through.
This will strip all SCRIPT tags.
J
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
-Original Message-
From: Leif K-Brooks
You can specify a From: field in the extra headers area of
the mail() function. Additionally, you can specify the address
you want bounces sent to by the same method (I think it's
bounces-to or something like that).
J
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now
Actually, having just checked through a message from Yahoo
Groups' list server, I think you'll find it's Return-Path.
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Friday
times
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Has anyone ever converted an excel file over to a MySQL database
via PHP? I'm currently doing it with perl, and this isn't a very
good option for me. The client needs to login to a server via ssh
every time they want to put data from their excel file to mysql.
I'd like to find some way
Thanks Jason, that is a pretty good idea. Any idea how well
PHP handles large ammounts of data like that? There'll be about
25,000 lines in every excel file, and they come in groups of 5 or 6.
I've rigged up an import script for similar functions before, it
seems to run ok... it really
If it's possible, it probably better to deal with each line
by itself, rather than try to load to whole file into memory.
Good point. Shared server admins probably hate me. ;)
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think this might be what you're looking for:
http://www.php.net/manual/en/function.highlight-string.php
J
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
-Original Message-
From: Michael Zornek [mailto:[EMAIL PROTECTED]]
Sent: Wednesday
It begs the question, why don't you just download the manual?
It's available in a myriad of different formats, one of which
must suit you. It may not be bang up-to-date and it may not have
the (sometimes) useful user comments but it sure saves you a lot
of time and bandwidth.
Heheh ...
I've got the PHP manual as a series of hyper-linked HTML
pages. Searchig is is very fast. And, I don't need to wait
for download of single page.
Each to their own, each to their own ... :)
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I'd say $id is blank, not being passed in, or is equal to a
nonexistant IDArt.
Maybe you should echo out your SQL and run it manually to see
what's going on.
J
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
-Original Message-
From: Dr. Shim
I went to php.net wnating info on the date() function. To my
surprise the word date was already in the search for field.
It was probably the last thing you looked for there. I know I
constantly go back to look up Date() placeholders. :)
J
--
PHP General Mailing List
since the security patch
was installed.
These servers are Sun 420's running Solaris SunOS 7, 1 Gig
RAM, Apache 1.3.19, Apache JServ 1.1.2, PHP 4.0.6 + patch so
you can imagine how we're surprised at the high load on them...
Has anyone else experienced this or similar?
Jason
--
Jason Murray
Is there any PHP function that works like ColdFusion's location tag?
After a certain execution, I wish to leave the current PHP
page entirely and go to another page. Is this possible?
That's a HTTP Header, so you want to use the ... Header() command.
A Location header is what does the
Or, alter your page's structure so that it writes its output into a
buffer, and echo/print it at the end of the page. That way you can
do the redirect at any point it's needed within the page logic.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later
?php
function questions()
{
[snip]
a href=?php echo $PHP_SELF??page=questionsfont
[snip]
}
?
$PHP_SELF is unknown to the function questions().
You'll need to add global $PHP_SELF at the top of the function.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work
that HTML source code tells the browser how
to render the page.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
... could you please use a *slightly* less obnixously long
signature when you post to the list? Signatures aren't
supposed to be over 4 lines (and if we want to know your
AIM/ICQ/MSN/Y! ID's, we'll ask you).
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak
it in the database. :)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I would like to know why you put this character (!) in front of this:
An ! means that the following statement should be false. So:
if (!isset($variable))
means If $variable is not set
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
for ($i=1; $i 12; $i++) {
echo state_$i; // This would print out either Yes No or Maybe.
}
What you actually want is:
for ($i=1; $i 12; $i++)
{
$mystate = state_.$i;
echo $$mystate; // This would print out either Yes No or Maybe.
}
$$X tells PPH to use the
-based
code just ain't there.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I need to make this case insensitive. This seems like over kill?
if((substr($author, 0, 1) == a) or (substr($author, 0, 1) == a))
{
}
if((strtolower(substr($author, 0, 1)) == a)
{
}
:)
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
What is the code to make a string into lower case?
Could you please check the manual before you ask like this?
It's strToLower().
http://www.php.net/strtolower
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http
backward compatibility (and thus
accessibility) with non-JavaScript browsers.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The function sendtohost:
[snip]
Is great for posting results to a regular http site. But
what I need to do is post to a secure site (https).
At that point, you'll want to look into using CURL extensions
to PHP.
http://www.php.net/manual/en/ref.curl.php
Jason
--
PHP General Mailing
Your problem is a simple HTML formatting problem - your FORM
submit button is inside your TABLE but outside a TD (it's
after the final /TR), thus Netscape puts it above the table
entirely.
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
-Original
I'm looking for a function that turns special charcters into
html charcter codes ( into quot;). Is there one?
Please try the manual before you ask here.
If you'd looked, you'd have found the function:
html_special_chars()
... which you'll note is named extremely closely to the
wording
This had worked without problems..
It sounds like the text encoding could be wrong. Using
some encoding types, =charchar means something else.
Maybe the charset you're using needs to be looked at?
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
unneccessary)
- Firm grasp of SQL and MySQL use
- Reasonable grasp of HTTP and networks
Please email me directly - [EMAIL PROTECTED]
Thanks
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne
Hello. I just finished creating a simple input form in
which the contents of a textarea get written to a file
which in turn gets read by a particular page.
This is a Really Bad Idea(tm).
it seems pretty dangerous to allow a user to enter any
amount of php programming at their will.
...
Would strip_tags() do?
Easily gotten-around then by not closing your PHP ? ? tags.
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Any expert programmers out there with the way to chop this
even further?
I would suspect that chopping this further would make it
even harder to understand/maintain in the future...
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason L wrote:
Of course, I am lucky enough to be working in a place which uses
PHP/MySQL for practically everything, and Perl in a few others.
And say ASP, and you are liable to get your head shot off.
Same here, everything web-related anyway ... but the head-shot-off
attitude is in
The error message might be useful, but in any case I think
you need to enclose the source filename in quotes; also (you
better check the docs here) if I remember correctly you need
to give the full path to the source file unless it is in the
mysql data directory.
That's right, it needs
I have the need to be able to mail out a text file. whats
the best way that I could do this?
Simple answer: mail(). If you're not sure, www.php.net/mail.
More complicated answer:
Are you talking about using a text file as a template for
the email, using a user-uploaded text file as the
I figure if I'm forced to go M$ I'd much rather use C# that
VBScript...
C# actually seems to be getting quite a lot of positive mentions
in the *nix world at the moment.
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well, the projects that are underway to create a open source
implementation of the .NET platform as evidence that at least
some people in the *nix world have been quite taken with it...
That, and the number of positive mentions its getting on SlashDot
in the last week or so.
Jason
--
PHP
copied the uploaded data into.
Take care that you use the appropriate security measures to protect
yourself against exploits here.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
might be busy at the time). If you think
you've graduated from the Newbie class, pat yourself on the
back, move on, and quietly unsubscribe yourself.
Don't make fun of the newbies who come here for advice.
They don't know any better, and we were all new to PHP at
one point.
Jason
--
Jason Murray
suspect your connection isn't working, as I've never
seen 127.0.0.1 used - normally I just use localhost
or .
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
I'm think I'm going to start forwarding all the bugtraq
alerts for PHP scripts to this list. Any objections?
Yes, if the author of the script isn't on the list it's useless
unless someone wants to patch their script themselves. And if
they're the kind of person who's inclined to do that,
I'm processing a form but all the functions I've found on the
web only seem to add the BR after the \n. I need to remove the
\n altogether - anyone know how I can kill the \n and put a BR
in it's place?
Sounds like you want a simple ereg_replace(\n, BR, $sourcestring);
Jason
--
PHP
Isn't there a function br2nl() and it's relative nl2br() ??
There's nl2br, but I don't believe there's one that goes the other way.
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
1 $limit = 5000;
2 if(strlen($text) $limit)
3{
4cut $text down to $limit length
5$text .= ...sorry, text was too long;
6}
4$text = substr($text, 0, $limit);
5$text .= ... (More);
:)
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Here is the error...
Warning: Unable to jump to row 1 on MySQL result index 2 in
/blahblahblah/patient/display_search_results.php on line 39
This means that the query you executed didn't return enough
rows to count up to ... 1.
Here is the code on line 39
$d = mysql_result($result,
Here is the code on line 39
$d = mysql_result($result, $c, id);
the field id is an auto_increment column.
$c is an exsisting row in the query, $result.
Any help?
Yes, it looks like $result doesn't contain anything, so maybe
your SQL is messed up.
Oh yes, additionally
Why PHP is so not popular in the computer science teaching area?
Well, here at RMIT in Melbourne Australia they're teaching all
the first year students PHP...
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
The file is running on an NT box and can be accessed fine
through IIS. It is only when using the include() statement to
this file that problems occur. If I do a local path map to it,
it will include fine but when using an URL it gives that error.
Can you retrieve the file from that URL
stumped.
\n is the new line character. Make sure you use it in and
not in ''.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
: Don't know why it's got everyone else stumped.
:
: \n is the new line character. Make sure you use it in and
: not in ''.
:
: Jason
Unfortunately, that doesn't work either, it changes the \n that
appeared at the end of the new line to a single black block. It
does not put the next
I thought this would be easy but it ain't. What I want is
the id number of the last record in a table.
If you use mysql_num_rows() and decrement it by one, you'll
have the ID of the row you can use with mysql_result.
Jason
--
PHP General Mailing List (http://www.php.net/)
To
I need that that my webmail can send mail with many attach.
How can I do it?
You could either ask the user how many attachments they want,
and present that number of INPUT TYPE=FILE fields, or you
can grab the file attachment from the user, store it in a
uniquely-named temporary directory,
in aol.com could
be in the USA, Europe, Asia, or Australia these days.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Thank you Jason ,I will check the Digital Envoy to get more
information, have you got the website address of it?
www.google.com ... digital envoy ... I'm feeling lucky :)
... or just www.digitalenvoy.net.
Search engines are fun :)
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne
Is there a way around this? Or is this a limitation of my
older versions of PHP and MySQL?
You need to apply addSlashes() to the text fields before entering
them into the database.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
What is an addSlash ?
How can I appy addSlashes ? Can anyone give me an example ?
Try the manual ... http://www.php.net/addslashes
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
When you run phpinfo(), the first line of detail has the OS
version. What variable produces this?
Thats the output from uname -a on the command line... at least,
under *nix it is...
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
My problem is that I want to use events in my forms but I do not know how
to
use php as a script for an event. Say I wanted to do something as simple
as
(within a form): input type=button value=Test onclick= ?php print
'testing, testin 123';?
Essentially, when a click this button in a
Like google has it's toolbar, why not have a PHP Manual toolbar? That
would be *great*. Just type in the function name and hit go and the
manual comes up.
You could probably work a bit of javascript magic in a bookmark to
do the same thing.
I've seen bookmarks that pop up a javascript
news would actually be a PHP script, of course. I know how
to handle /2002/01/02/keyword as parameters, my question is on
making news be interpreted through PHP.
Off the top of my head...
You could either use a .htaccess to force Apache to recognise
news as a PHP script, or you could use a
So far nothing seems to work which leads me to believe
there's something else wrong.
Here's what I've tried
$service_type_insert = $x['926service_type']; //works fine
when I hard code
a value in and returns proper value
$service_type_insert = $x[$$keyservice_type]; //returns empty
A 404 ErrorDoc would still reply with a 404 code, which could mess up
some search engines.
Not true, try this: www.inww.com/ifdbnifoudbvfd
This is actually produced by ErrorDocument 404 /404.php3 in our Apache
configuration, and 404.php3 is a PHP script that sends the neccessary stuff
to be
True, but if I remember right, the hit will end up in your
error_log not in your access_log.
Ah. Bugger.
But since this would require messing with your Apache config
you could adjust that anyway surely?
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
HTML doesn't pay attention to line breaks, thats why you're
needing a BR...
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
-Original Message-
From: Ray Gaylog [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 3:49 PM
rolled my own solution).
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
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
messages.
Could someone please help me a little with this? :)
Thanks
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
generated files?
I just use:
Header(Content-disposition: filename=.$filename);
... ie, no attachment.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
Can't be done easily with PHP right now... To get that type of
functionality, you'd need to write it in Perl using the
SpreadSheet::WriteExcel module.
http://homepage.tinet.ie/~jmcnamara/perl/WriteExcel.html
In that case, someone could probably work out how to do it based
on the source of
Actually, I looked into the possibility of doing that, but it turns out
the Excel 5.0+ file format is -very- complicated... Not just a standard
binary file...
Check it out:
http://www.wotsit.org/search.asp?page=49s=ALLFILES
Way beyond my capabilities and patience. :)
Eugh
Actually, I looked into the possibility of doing that, but it turns
out the Excel 5.0+ file format is -very- complicated... Not just a
standard binary file...
Check it out:
http://www.wotsit.org/search.asp?page=49s=ALLFILES
Way beyond my capabilities and patience. :)
I need something that will do a direct transfer to word or
excel or the others.. not something via a cvs method..
Excel loads comma separated (CSV - CVS is something else entirely)
files happily.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Then why didn't you notice that in the additional headers
you can specify the from header?
mail([EMAIL PROTECTED], Whee, Whee! Mail Body,
From: Jason Murray [EMAIL PROTECTED]\n);
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
-Original
I have 2 date string like this
$t1 = 2001-11-12 17:30:10;
$t2 = 2001-11-12 17:15:32;
I need to substracts the number of seconds from $t2 from $t1
First, convert them to unix time format:
?
Function dateTextToUnix($string)
{
$year = substr($string, 0, 4);
$month =
Its works for file .html or.zip or .tar or .tar.gz
But it is not for text file..
Could you recommend how I download text file ?
What do I have to do in my scripts...?
I read the manual about HTTP functionsand search through
mailing list
about header functions
but still
You'll also need to compile php as a standalone, and put as
the first line of your php script
#!/path/to/php -q
What if we need both version??
There's nothing stopping you running both.
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
1 - 100 of 311 matches
Mail list logo