On Thursday, December 12, 2002, at 03:10 PM, Marek Kilimajer wrote:
Does anyone know a way to change endianness of a binary string?
Hi Marek:
You might look at pack() and unpack().
http://www.php.net/manual/en/function.pack.php
Perhaps one of the options for unpack?
HTH
David
--
PHP
Hi All
This is probably off-topic here and my only real excuse is that after
having searched google as well as both php and mysql sites/manuals I'm
no closer to an answer for something I'd like to get solved this
morning...
I have two database tables (mysql). One contains information about
image
check out:
http://www.phpfreaks.com/tutorials/43/0.php
David Eisenhart
"Föíö Öxî?êójînyóon" <[EMAIL PROTECTED]> wrote in message
047d01c2a5ba$0b7bd480$c900640a@gandalf">news:047d01c2a5ba$0b7bd480$c900640a@gandalf...
I need to be able to show maybe 10 items that I que
I recommend that you check out phpMyAdmin http://www.phpmyadmin.net/
David
"Thomas Goeminne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I got a tab delimited file which looks like this:
>
> let us call it items.txt
&
loaded via HTML form, if it is text, perhaps in PHP
you could look for \r or \n and make sure that the UNIX line ending is
there - not sure which MacOS 9 uses.
HTH somewhat.
David
Would it be efficient to strip the resource fork with PHP? Has anyone
written anything to deal with this? If not
Hi Phil:
It probably does what you are asking it to do. Have you checked the
value of $nickname to see if you are setting it to "bob" or appending
"bob" to it?
i.e first time $nickname = "phil"
second time $nickname = "philbob"
HTH
David
On Saturday, Dec
G'day Peter
> I have a form with several date fields. I want to be able to
> set these by selecting from a calendar display. Does anyone
> know of any php function or code which would let me do this?
If you mean having some sort of pop-up calendar display that the user
can select a date from
Am working through document to collect pieces that match and then insert
them into an array so they can be used to construct another file.
Looking in my doc for lines like this:
{\*\cs43 \additive \sbasedon10 db_edition;}
{\*\cs44 \additive \sbasedon10 db_editor;}
{\*\cs45 \additive \sbasedon10
> So, there is something in the new security of XP and Win 2K
> SP 3 that
> does not let the dll load and run. Ever since I loaded SP 3
> I have had
> problems - like many others!
Don't know about Win2k as I haven't tried it but Apache/PHP/MySQL is
working perfectly well on my Win XP laptop
Joskey- Squirrel Mail is pretty good-
www.squirrelmail.org
David
- Original Message -
From: <[EMAIL PROTECTED]>
To: "PHP Mail List" <[EMAIL PROTECTED]>
Sent: Monday, December 02, 2002 4:30 AM
Subject: [PHP] Who can tell me the best php-base webmail?
> Than
Martin- the command line switches are stored in the $_SERVER['argv'] array.
E.g.
php -q myscript.php4 1000
The value of $_SERVER['argv'][1] in the myscript.php4 script would be 1000.
David
- Original Message -
From: "Martin Thoma" <[EMAIL PROTECT
Hey,
I'm somewhat new to PHP and I'm doing a lot of forms stuff. Looking at
some of the examples at:
http://www.linuxguruz.org/z.php?id=33
The variables seem to persist through a reload. For example, the first
demo has:
if (!isset($pick)) {
echo "Fill out and submit the form below.";
turned on in php.ini.
You can either set the value = on or access posted values by using $_POST or
$HTTP_POST_VARS depending on your version of php.
- Original Message -----
From: "David Chamberlin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003
OK, last one was answered quickly and successfully (thank you!), so
here's another one.
Is there an easy way to set something in a select list to be selected?
Right now I'm doing a real brute-force method. e.g.,
echo "";
$choices = array( 'pub' => 'On Public Page',
'members' => 'Only on
till gives me a "413 Error - Request Entity Too Large."
Are there any other settings that I need to look at in order to make this
work? All of the other basic settings are in place (IE, file_uploads = on
etc)
Any help would be greatly appreciated.
Thanks,
David M. Jeffress
[EM
I use authorize.net with curl as well. It works great. There are tutorials
on http://www.phpbuilder.net on how to set this up.
David
- Original Message -
From: "Jonathan Rosenberg (Tabby's Place)" <[EMAIL PROTECTED]>
To: "Chad Day" <[EMAIL PROTECTED]
> @MYSQL_QUERY("UPDATE d SET h='$h' WHERE id='$id'"); // this
> query doesn't work
Personally, I'd call it bad programming practice to do a database update
and not check to see if it worked or not. In this case, how are you
determining that the query did not work? Are you manually checkin
> $mysql query1
> result
> array[cityid][cityname]
>
> mysql query2
> result
> array[cityid][cityname]
>
> now what i want to do is kick out any doubles in my array
> and resort them alphebetically by cityname ?!
It's difficult to answer this question without knowing more about the
cont
> How do I create a drop down list that automatically
> generates a list of months for the next 12 months upto and including
this month
This would do it...
$month_name\n";
} else {
echo " $month_name\n";
}
}
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubs
When attempting to run any PHP script, I get the message:
Unknown(): Cannot open 'C:\WINDOWS\system32\inetsrv' for reading
And then I get the windows error message:
PHP Script Interpreter has encountered a problem and needs to close. We are
sorry for the inconvenience.
Any ideas here?
--
PHP
Eh, nevermind on this one.
I uninstalled PHP and then reinstalled it. I am no longer getting this
error.
I have another problem now that I will mention in a new post.
"David Scott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Whe
I am running this file from a tutorial:
Something Useful Tutorial
When this file is run from my webserver (IIS) I get a page that says: No
input file specified.
What can I do to get this working?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
this is addressed in quite a few dedicated articles in php sites.
For me some of the big pros of PHP:
- the active community behind it
- associated open source products (such as phpMyAdmin and the Smarty
template engine)
- the ease and power behind coupling it with MySQL databases (ASP has of
cour
I want to be able to retrieve POST variable in one PHP script (which is
straight-forward) and then send these from the script to another one
returning the processed input.
I have written a script that will parse a frames-based page and render it as
a flat page (i.e. all frames displayed as a table
d all the
POST (or GET... but that is easy) data received by my script onwards to
another.
Does this make more sense?
"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Could be an issue on the webserver if PHP has register_
ution that wouldn't need to repost
anything.
If I am missing something, please elaborate. Thanks!
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> David Barrett wrote:
>
> >Think you may have mi
nother frame window what the variables are
> while this one is still visible, you can use javascript to send variables
to
> other frames. That is out of the scope of this message and I'd have to
look
> up the syntax for that, but it is definitely possible.
>
>
>
> Larry S.
to add another cent to Timothy's contribution I agree, check out Smarty
(http://smarty.php.net/) for the templating.
D
"Timothy Hitchens )" <[EMAIL PROTECTED]> wrote in message
000801c2b7ab$837eefa0$0500a8c0@bambino">news:000801c2b7ab$837eefa0$0500a8c0@bambino...
> My 2 cents would be use a
as a 'one off' exercise I recently did something similar except the data was
from Access, but would work the same from an excel file:- saved as
a CSV file and then used phpMyAdmin to import the CSV file data into a MySQL
table (of course, didn't have to use phpMyAdmin for this but it did make the
i
> I'm looking for online
> references, personal experience and opinion and even examples of open
> source code which you think demonstrate the above criteria on this one.
I have found the Smarty template engine (http://smarty.php.net/) to be a
most excellent tool for separating business logic and
> My question is this: is it possible to use
> autoincrement to generate
> the id's and still keep them sequential when I delete say,
> item 3 of 5.
Generally speaking, an auto-increment column will not fill gaps and keep
sequential orders. Your choice, basically, is to write your code
You might see if your server is running procmail. If it is, then you
can have your .procmailrc file auto-generated from PHP, and then
procmail will do all the forwarding for you.
The procmail recipe will be pretty simple for what you want (e.g.,)
# user_id -> [EMAIL PROTECTED]
:0
* ^TO([EMAIL
Check out the Smarty tutorial links page from it's site resources section -
http://smarty.php.net/resources.php?category=0
Also the Smarty manual is excellent - very comprehensive and well written. I
just about taught myself Smarty using this alone.
I think Smarty is the absolute biz when it com
I only want to keep html code of a page.
I want to remove php tags.
Some tell that strip_tags is not adapted.
sample of what i want to do:
na
->
na
php tags can be :
or
or /i
Merci.
.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
G'day CJ
> This is really a html more than a php question.
Yep, it probably is...
> Is it possible to have two buttons and have different
> actions for each button in the same form?
Yep, you can.
When you process your form in php you'll find that you have either
$first_submit_act
assumption would be that there should be a class out
there somewhere that handles it well.
Thanks
David Russell
IT Support Manager
Barloworld Optimus (Pty) Ltd
Tel: +2711 444-7250
Fax: +2711 444-7256
e-mail: [EMAIL PROTECTED]
web: www.BarloworldOptimus.com
smime.p7s
Description: application/pkcs7
Hi:
I believe that if you reference the form element like:
document.forms['mycell[]'].value
you will get what you want.
HTH
David
On Friday, January 17, 2003, at 08:33 PM, Nico Jansen - NiRo IT
Consultants B.V. wrote:
Hi all,
I'm trying to write a grid widget in php. When t
Hey,
Anybody have a php-based guestbook that they like and can be freely
downloaded? Don't need anything really fancy, just for a personal
website. Easy-to-use, and not hard to integrate into the site would be
bonuses (mysql not a problem).
I've looked around, and there's a bunch out there -
> Is there a way to get to know from which country a user is
> calling the webside with my php-script?
Probably only if you're going to ask them to tell you what country they
are in.
You can look at the resolved domain that they are coming from and it's
country code - this might be indicative
> You could rely somewhat of the time zone codes as you refer
> to them, the
> only issue is in some parts of the world
> this would include 10 countries at a time.
But what time zone are you getting? The time zone of the browser? The
time zone of the proxy cache that's in a possibly differ
> On another note, I have found that if I include (and use)
> the submit button
> everything works perfectly, HOWEVER if I just enter data and
> hit return then it messes up.
You could try including a hidden submit field like this:
For name="submit" change that to whatever name your norm
Hi Karl
First up, would you mind posting your messages in plain text instead of
html format? It's just a courtesy to the rest of us.
> does anyone have the code to where i can have the time
> printed on my home page like for example
>
> Monday, January 19, 2003
Sure, check out the date() fu
G'day Scott
> Just curious, is there a PHP function that will break up the
> string for us?
I'm not specifically having a go at you but more observing that some
people use this list as a first line of question rather than doing some
work themselves.
Assuming that I didn't already know what fu
> I have a conditional:
> if (a == b)
>
> a is the number 0, but b is a string "Friday August 22".
>
> The condition is evaluating as true, which is not what I want.
> What am I misunderstanding?
You're comparing a string to a number perhaps?
I tried this:
-8<-
$a = 0;
$b = "Frid
Hi,
I am trying to run php as shell script. I have this:
helloworld.php:
I run
php helloworld.php
then I got this:
Hello World.
Fatal error: Nesting level too deep - recursive
dependency? in Unknown on line 0
I am using Redhat 8, anyone knows what is the problem
is?
Thanks,
David
On Saturday, February 1, 2003, at 10:58 AM, Tomator wrote:
I tried but I can't upload any file. My form and code are as following:
Try looking at:
http://www.php.net/manual/en/features.file-upload.php
There is a working example there.
--
PHP General Mailing List (http://www.php.net/)
To uns
> i want to set up a form that will load values from a table
> and make them the
> "value" of the edit box... then when people press an update
> button then all
> of the stuff that changes from the record already in the table gets
> changed... anybody know how to make it where you can get th
> i am having a problem using tags by using current
> values kept in a mysql table. how do you get the values out of the
table and
> into a form so they show as the value= part of the tag?
Start by making a basic test:
";
?>
or you could try this:
Either should work.
Rinse and repe
> echo("| %s | %s | %s | %s | %s |", $array[id],
> $array[username],
> $array[password], $array[status], $array[notes]);
If you look at http://www.php.net/echo you'll see that echo
does not support this syntax. If you want to use this syntax
then you should probably be using some form of print
Karl:
Your question appears to be completely off-topic but perhaps this might
help you.
http://www.gotquestions.com/xs/seeDocument.asp?topicID=14&documentID=696
On Saturday, February 1, 2003, at 03:56 PM, Karl James wrote:
IncrediMail -
Karl,
> what is a winmail.dat file?
Is it too much to ask that you do some of this sort of thing for
yourself?
Here, I'll help you...
1. Connect to the Internet (if necessary)
2. Load a web browser
3. Navigate to http://www.google.com/
4. Type "what is a winmail.dat file" into the search b
Another template engine you could consider is Smarty http://smarty.php.net/.
One can write very elegant code using such an templating system
david
>
> it is also good idea to separate html from the code, for instance by using
> some template engine.
>
> rush
--
PHP Gener
article The
Object-Oriented Evolution of PHP at
http://www.devx.com/webdev/Article/10007/0/page/1
David
"Edward Peloke" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ok,
>
> I have seen a suggestion or two for oop books but I w
You may be interested in the article: Using PHP to Develop Three-Tier
Architecture Applications
(http://www.zend.com/zend/tut/tutsweatpart1.php)
David Eisenhart.
"Hardik Doshi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Ev
yes, you can call a static method on a class by specifying the class name,
then 2 colons and finally the function name:
classname :: functionname([arg,.])
(of course properties can not be accessed by such methods)
David Eisenhart
"Leo Spalteholz" <[EMAIL PROTECTED]>
you may find the following link interesting
http://www.tek271.com/articles/JavaOrPhp.html
David Eisenhart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi John:
Well actually I believe that you don't have to set MAX_FILE_SIZE...(I
don't)
but you might want make sure that you are not trying to send a file
larger than the post_max_size directives in php.ini and ensure that
file_uploads is set to allow http uploads.
On Sunday, February 9, 2003, a
t respects though
...
David Eisenhart
"Joshua Moore-Oliva" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The only thing I do wish is that there was a way to force php into a
typecast
> mode... and possibly a setting to reqiu
"Chris Hayes" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 23:09 9-2-2003, you wrote:
> >you may find the following link interesting
> >http://www.tek271.com/articles/JavaOrPhp.html
> >
> >David Eisenha
pleasure Leo, happy php'ing !!
"Leo Spalteholz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ah! thank you very much. Thats exactly what I was looking for.
>
> Leo
>
> On February 9, 2003 01:49 pm, David Eis
>
> On February 9, 2003 06:38 pm, David Eisenhart wrote:
> > yeh, I'd agree with this; on your second issue of variable definitions I
do
> > find that being able set the error reporting level to show non critical
> > errors (such as undefined variables) to be a reaso
stances this is preferable to using xml
stylesheets)
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Can anybody help me with file uploading, again...
Have you tried using the fairly simple example that is given at
http://www.php.net/manual/en/features.file-upload.php yet? I've found
that starting with this example and then adding all the extras tends to
work well when you've got problems.
ith the very comprehensive manual and an active, well supported email
list)
> If
> you have more knowledge regarding XML+XSL then it
not a great deal a this stage, but they are clearly worth looking into.
- Original Message -
From: "Hardik Doshi" <[EMAIL PROTECTED]>
To: &
> i've written a secure PHP login script which will allow
> users to login to a
> directory such as this:
>
> smezone.com/members/index.php
>
> however, how do I restrict people from accessing HTML files in that
> directory (which they can easily do so by typing the URL into their
> brows
ndy sitting there on the
desk while you work. Sorry - not the quick fix solution you request but one
that'll help in the longer term.
David
"Yc Nyon" <[EMAIL PROTECTED]> wrote in message
01c2d434$f8be3c80$5340ba66@gis">news:01c2d434$f8be3c80$5340ba66@gis...
yeh, I'd totally agree with this. Smarty is fantastic
The best one imho in PHP is Smarty.
> I'd rank it up there with Template::Toolkit. Take a look:
>
> http://smarty.php.net/
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> What I want to do is have the registration form, on submit, check the
> data validity right then, if there is an error, redisplay
> the form with an * next to the field that is incorrect.
This is the code logic rather than the actual working code:
---Start of PHP Page---
1. Check for form h
> I have a string in this format:
> 2003-02-15 13:19:02
>
> I want to display it in a more readable format like
> Staurday, 11 Februardy,
> 2003, 13:19:02. How can I achieve that. I tried date()
> function but could
> not get what I wanted.
The date format above is a standard mysql date/t
> as a general rule of thumb, try to do as much
> checking as you can with
> JavaScript. For those checks such as "is the field a valid
> date", "is
> the field numeric" and so on, it is much faster to check on
> the client,
> than to send the data back to the server and check
the date recorded in the database when the document /
record was added and NOT the date/time that PHP generates the document.
I am hoping that I can pass a date / timestamp in the header.
Any ideas? Or did I confuse everyone.
David McInnis
--
PHP General Mailing List (http://www.php.net/)
To
Try http://www.php.net/md5.
Use md5 to encrypt the password, then when you need to check from login just
encrypt what is given, and see if this matches the md5 found in the
database.
- David
"Rob Packer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMA
btw - What do you mean by paypal generated passwords? I am interested in
using PayPal as an alternative to my current credit card handler.
Just a link is appreciated.
- David
"Rob Packer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED].
See topic.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yeh, I'd strongly agree with Jonathan's view that quality of the code can
mitigate against the dangers of register_globals.
FYI, an interesting article on php vulnerabilities is at:
http://www.securereality.com.au/studyinscarlet.txt
David Eisenhart
"Jonathan Pitcher" <[
On Tue, 18 Feb 2003 13:35:14 +, you wrote:
> i wanna make an internal site search, i wanna search my internal html
>pages and php pages..and i have no clue how to do thatany help!!!
Choices
1. Embed a Google search that only searches within your site. Eg
http://www.google.com/searc
On Tue, 18 Feb 2003 14:19:16 +, you wrote:
>On Tue, 18 Feb 2003 13:35:14 +, you wrote:
>
>> i wanna make an internal site search, i wanna search my internal html
>>pages and php pages..and i have no clue how to do thatany help!!!
>
>Choices
>
>1. Embed a Google search that only se
On Tue, 18 Feb 2003 17:38:28 +0100, you wrote:
>At last I got safe-mode turned off (Gott sei dank!). But I'm still having a
>problem. I can only read Mysql DBs. I can not open a DB to update.
You have to connect to MySQL with a username and password.
First check that the user you're connectin
On Tue, 18 Feb 2003 09:23:52 -0800, you wrote:
>Greetings all,
>
>Is there an easy way to pull out the schema of a MySQL for viewing??
You want the tables and the relationships between them? Not easy to get
the links because of the lack of foreign keys in MySQL.
If you want a table, "DESC tablen
On Tue, 18 Feb 2003 13:10:33 -0500, you wrote:
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 18 Feb 2003 16:02:59 -0500, you wrote:
>http://www.psikon.com/vartest.php
>http://www.psikon.com/vartest.phps
>
>how can I get rid of that null character or am I forced to use sub_str in
>this case?
You changed the string to be "abcd\0f" on line 8. You didn't remove the
character, you set
hey purchased Web space at the same company
I did) to have access to it. Is there any way, short of a dedicated
server or a wholesale switch to another server-side language, to avoid
these problems?
Thanks.
--Dave
----
--
Da
introduced into a large multi user environment, switching programming
languages would not alleviate these security issues.
On Tue, 2003-02-18 at 15:49, David Feldman wrote:
I run a PHP-based Web site hosted on a shared UNIX server provided by
a
pretty standard Web hosting company -- as I imagine
I originally learned PHP from the section in O'Reilly's book, Webmaster
in a Nutshell. I did have extensive prior programming experience
though. Since then, the PHP online manual has been more than sufficient.
--Dave
On Wednesday, February 19, 2003, at 07:10 AM, Awlad Hussain wrote:
http://www
On Wed, 19 Feb 2003 12:57:42 +, you wrote:
>
>I wonder if it is possible to retrieve emails from an email account
>say in hotmail, yahoo, or any other email provider.
>
http://people.freenet.de/courierdave/
http://httpmail.sourceforge.net/
http://www.geocities.com/ballarke/Projects/HttpMail/H
On Wed, 19 Feb 2003 13:56:49 +, you wrote:
>One questions though - if I delete a topic, I need to delete all of its
>child messages and all of the child comments from each message. What is
>the best technique to do this? This has been driving me up the wall as
>it seems to involve some kind
to/include/file.php";
works fine, but
include "include/file.php"
doesn't. I don't see anything in the docs about this...what's going on?
Thanks again,
--Dave
On Wednesday, February 19, 2003, at 08:03 AM, David Feldman wrote:
Thanks. Looks like a properly configu
On Wed, 19 Feb 2003 14:16:47 +, you wrote:
>>Otherwise, yes, in MySQL you have to recurse down the tree deleting
>>comments.
>How would I go about recursing down the tree? Has anyone done this before?
I have, but it's been a while. Something like (pseudo-code) .
def delete_comments(a) :
I've enabled safe mode on my local test server, but it doesn't seem to
be working. If I run a script owned by one user (me), and within it
include (using include()) another script or file owned by another user,
the include is successful, whereas it shouldn't be in safe mode.
I can verify throug
On Wed, 19 Feb 2003 14:59:27 +0100, you wrote:
>I'd like when a customer fill in a form to recover his IP address, is there
>a PHP function to do that ?
echo ($_SERVER["REMOTE_ADDR"]);
Be warned: This is NOT a reliable way to identify a user. These days you
are probably /more/ likely to get the
I'm working on a script that allows the user to upload several images,
then base64 encodes them and attaches them to an email to me. I'm
having trouble getting the images readable on the other end. I've
managed to get all the MIME types and message parts straight enough to
be recognized as sepa
t 12:29 PM, Philip Hallstrom wrote:
http://www.phpguru.org/mime.mail.html
makes it pretty easy.
On Wed, 19 Feb 2003, David Feldman wrote:
I'm working on a script that allows the user to upload several images,
then base64 encodes them and attaches them to an email to me. I'm
having
pany's PHP
installation (though safe_mode is set to Off there).
Does anyone know if safe_mode works in this binary OS X install of PHP?
Do I need to compile my own?
Thanks,
--Dave
----
--
David A. Feldman
User Interface D
Hi,
I'm designing a site with about 100 different pages. I'm debating whether to
use a template mechanism such as smarty or patTemplate vs just creating
pages and including the body templates based on the url parameters. I
realize you get a layer of abstraction using the template mechanisms, but
w
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote:
>I'm using PHP & MySQL to generate a RTF document. I use this header:
>
>header("Content-type: text/rtf");
>
>Of course, the header scares the poor browser. The browser bawks and says, unknown
>file type, and instructs the browser to save the file.
>
On Thu, 20 Feb 2003 06:20:26 -0500, you wrote:
>Is there a way to encrypt a URL that will still work when clicked on, BUT
>not show the customer where the file actually resides?
It's not possible to "encrypt a URL" and leave it readable. URLs are
plaintext.
>Is it also possible to have it expir
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote:
>I'm using PHP & MySQL to generate a RTF document. I use this header:
>
>header("Content-type: text/rtf");
Sorry, I should have mentioned
header("Content-Disposition: attachment; filename=myfile.rtf");
as well. Rather easier :)
--
PHP General Ma
On Thu, 20 Feb 2003 14:41:09 +0100, you wrote:
>Im have a "script.php" which needs to be able to tell if it has been
>included in an .shtml file or not...
>
>e.g. if included is true: do this, else: do something else
>
>I could ofcourse do something like this:
>
>
>
>but it would be nice to totall
On Thu, 20 Feb 2003 11:33:19 -0500, you wrote:
>Is it possible to display the contents of a given folder, list them , and
>make them links?
http://www.php.net/manual/en/function.readdir.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 20 Feb 2003 17:44:51 +, you wrote:
>When using a php script to pull recorda from a db how can I cut the records
>at 1/4 of the total and arrange them alaphabetically according to a certain
>field? Thanks in advance.
http://www.mysql.com/doc/en/SELECT.html
LIMIT and ORDER BY.
This
101 - 200 of 4419 matches
Mail list logo