Graham Anderson wrote:
I am using GET to send variables from one php script to another php script
How would I POST the same variables ?
http://php.net/curl
You can use the CURL functions to send a POST request.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name
Graham Anderson wrote:
In a POST request:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "./movieBuilder.php");
I think you may need to put the full URL here. I don't do a lot with
CURL, though, so someone else may be able to help you more here.
--
Jasper Bryant-Green
rcecms.com/
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e FTP
server, and then filesize() on it afterwards... both from the server...
if the two are equal then the file is complete.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
pts through tags and the like with no problems whatsoever.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PRequest to fetch a
base64-encoded stream of your data and write it to the src attribute
within a "data:" URI scheme, but that won't work on IE or many other
browsers.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List
;
Would the movieBuilder.php file retain the POST'ed variables ? Or, would
they be lost in the void.
maybe this approach is silly?
You could save the variables to a file. But it's silly and slow when you
could just use GET. Can you explain why you don't want to just send them
as GET v
l data and
not a representation of it :)
str_replace is not for encryption. You might want to look at mcrypt, as
using str_replace is probably just as bad as sending the unencrypted
string. It's not going to be secure.
http://php.net/mcrypt
--
Jasper Bryant-Greene
Freelance web
classic ASP you can write VBScript or JScript, and in ASP.NET
you can write VB.NET, JScript or C#. Both classic and .NET allow you to
add additional languages of your choice with a bit of work.
I still prefer PHP though; just thought I'd point out the difference...
--
Jasper Bryant-G
d extract the resulting data, and use the data in vars that
i've defined to be the specific data type.
And hopefully htmlspecialchars() it if you intend outputting it to the
user's browser...
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP G
n the memcached server (it can be on localhost for a
single server setup, or for many servers it can be shared if the
interconnects are fast enough). Then you can cache just about any PHP
variable, including objects, in memory.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.b
David Pollack wrote:
Ok, so this is the actual code that I'm using.
preg_match_all("/-?([\d]+)?(\.[\d]+)?/", $string, $matches);
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Rasmus Lerdorf wrote:
Jasper Bryant-Greene wrote:
Have you looked at memcache?
http://www.php.net/manual/en/ref.memcache.php
He did say that serialization wasn't an option and you can't use memcached
without serializing. You may not realize you are serializing, but the memcache
eet switching entirely on the client
anyway, but you might want to look at your CSS and see why exactly you
need to do this, and if there's another way.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net
d
to something:
$result = $site->Run();
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sylvain Gourvil wrote:
I am looking of a webservice whiwh could permit to convert euro price in
dollar and uk pounds on my php website !
http://pear.php.net/package/Services_ExchangeRates
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing
situation is to benchmark. Go on, it won't take long!
[1] http://php.net/apc
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Taylor-Johnston wrote:
Humour me. I knew how to do this. I want to parse $searchenquiry and see
if it contains "searchenquiry=".
$yourAnswer = ( strpos( $searchenquiry, 'searchenquiry=' ) !== false );
--
Jasper Bryant-Greene
Freelance web developer
http://jaspe
g for a file called "menu_render.php?menu_id=4&format=xml"
which doesn't exist.
Try:
$menu = file_get_contents(
'http://www.yoursite.com/yourpath/menu_render.php?menu_id=4&format=xml' );
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.brya
[EMAIL PROTECTED] wrote:
rdfpic2html( $rdfpicdata );
Shouldn't that be:
$rdfpicdata = rdfpic2html( $rdfpicdata );
Since you haven't defined rdfpic2html as receiving its argument by
reference...
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-g
been replaced by $_POST and $_SESSION,
respectively. The manual will have more details.
P.S. do folks prefer I reply on top or on bottom?
Well, I can't speak for everyone else, but personally, bottom, as long
as you trim your posts :)
--
Jasper Bryant-Greene
Freelance web deve
contents( "http://www.example.com/?$query"; );
// For POST, pass $query to curl_setopt for an HTTP POST (see CURL docs)
?>
Disclaimer: I typed this from memory and haven't tested it, so there
might be minor errors, but you get the picture.
--
Jasper Bryant-Greene
Freelance web deve
bsite if you do send a relative URI, as they are usually (albeit
loosely) based around the standards, which require an absolute URI [1].
[1] http://w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP Ge
n very
occasionally be useful if you intend to do something with those
parameters in JavaScript.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
se of transactions in an
ACID-compliant storage engine like MySQL's InnoDB, if possible.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d trying the same command?
More than likely the user apache is running as doesn't have permissions
to chown -- in fact I believe that in order to chown files one must be
root (at least that's the way it seems to work on my system).
You could use chmod instead to allow the "admi
ing to the list?
Warning: Cannot send session cookie - headers already sent by (output
started at /var/www/html2/thingstodo.html:2) in
/var/www/html2/thingstodo.html on line 4
Warning: Cannot send session cache limiter - headers already sent
--
Jasper Bryant-Greene
Freelance web deve
ESSION['TrolleyContents'] as $value)
if ($value == $mydata->RNum)
{
}
}
Why not replace the foreach and if combo inside the while with:
if( array_search( $mydata->RNum, $_SESSION['TrolleyContents'] ) !==
false ) {
}
--
Jasper Bryant-Greene
Freelance web develo
n it be done?
This question seems to come up every other week on this list. Have a
look at APC[1]; you can cache objects with its apc_store() and
apc_fetch() functions.
[1] http://php.net/apc
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP Genera
server resources.
Not possible unless you can write your own client app. Javascript etc.'s
access to file controls is heavily restricted.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
which you got that
quote? I cannot find any words to that effect on either the php.net or
pecl.php.net websites, but maybe I'm not looking hard enough...
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
var myFile = new File("c:\temp\myfile.txt");
myFile.open("r");
alert('myFile length: ' + myFile.getLength());
Somehow I don't think any browser is going to give JS access to
arbitrary files on the user's system like that.
firmation thing, provide the
ability to undo changes instead. That way you don't piss off the
advanced users who KNOW what they're doing, but you still allow the less
advanced users to undo changes they "accidentally" make.
--
Jasper Bryant-Greene
Freelance web developer
ht
/opendb.php");
//$sql = "UPDATE beskrivandeVarunamn=" . safeQuote($bNamn) . " WHERER"
//mysql_close();
}
?>
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cation: $muerto");
}
You need to specify an absolute URI here
(http://www.example.com/myimage.gif for example).
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that you sent to it.
The 503 status is a signal to the browser, and I don't believe either
Firefox or IE pass that signal on.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ccess file in the root of your application.
AddType application/x-httpd-php .html
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
as
taking that argument by reference (&$foo) unless you want to pass a copy
of the object.
It would have taken you less time to write a test script and see for
yourself than to search the docs and then post to the list...
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.brya
very helpful for you.
Please don't just copy-paste the above table definitions, they're meant
to be modified to suit your needs.
I'll leave your other question to be answered by someone with experience
of streaming audio from PHP, as I've never had occasion to do that.
--
Jasp
);
?>
Is there some way to escape the characters in the directories? For
example if i put a "\" in front of blank spaces it takes care of
those (same for "'","(" etc.) but that obviously doesn't take care of
everything. I'm hoping there is somet
he
same thing happens.
If you've got a row ID number or something, just call the form "lit[id]"
(replacing [id] with the ID number), because I don't think a form name
can start with a number. Otherwise you could sha1() the title and use
that as the identifier, or simply remove all sp
jonathan wrote:
the real characters (presumably è) won't render correctly.
Are you outputting the correct character set information (UTF-8), and
are you sure that UTF-8 is being used throughout the entire process?
--
Jasper Bryant-Greene
General Manager
Album Limited
a: Freepost Albu
aracters like è don't have any special meaning
in XML, and they can be represented in the UTF-8 character set, so
there's no need to convert them to entities at any stage.
--
Jasper Bryant-Greene
General Manager
Album Limited
a: Freepost Album, PO Box 579, Christchurch 8015, New Zeal
going to be very confusing for users
seeing the Acrobat toolbar floating in the middle of their page.
It would be interesting to see some tests of PDF-in- done in
various different browsers, but unless it just happened to work
perfectly in every common browser (we can all dream, can't
php.net/pecl/win32service/
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt;
> I know, but I don't want to post my tracking code. I am certain,
> however, that it is not returning anything to the browser. The is at the top of the page, no echo, ...
So just blank out the tracking code. I'm not sure how you expect us to
help you if we can't see t
//php.net/parse_str
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
script regularly (how regular would depend on the specific
app) to execute all the processes in the list.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New
ths
http://php.net/parse_url for URLs
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
it
was me I'd probably treat it as a string. If you really *have* to treat
it as a number, then use float and get all the precision errors that
come with floating-point, or use binary coded decimal or another
arbitrary precision system.
--
Jasper Bryant-Greene
General Manager
Album Limited
e:
d to use that
degenerate platform, is that sometimes PHP is using a different php.ini
from the one you thought it was using, f.x. if there has been an earler
PHP install and someone's put php.ini in c:\windows\system32 or
something.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL
ne that you've been editing, and then move the one you've been
editing around the following folder until you find the one in which it
works:
c:\php
c:\windows
c:\windows\system32
c:\
Horrible, isn't it?
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w
're using IIS, but is there a similar thing available
through IIS's configuration? (I wouldn't know, I don't practise the dark
arts...)
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21
> becomes:
>
> a/b/c/d/foo.php
>
> but the OP wanted:
>
> foo.php
It will actually work... Did you not notice that he was using
strrpos() ? Note the extra 'r' in there :) http://php.net/strrpos
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL
issue in any suggested answer, keep that in mind.
To be honest, I think you're going about it the wrong way. Put the
secret word into $_SESSION. Point the tag at a PHP script which
pulls it out of $_SESSION and renders it as an image. Then you don't
need to send it to the client in any fo
ue7')
... and so on.
These are apparently much nicer for MySQL to process, which may result
in lower memory usage and faster operation.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21
thing as
an HTTP_Response on its own. It has to be a specific type of HTTP
Response, that is a 301 Moved Permanently or a 304 Not Modified.
Does that help?
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +
'publications' => 'Publications'
);
print( '' );
foreach( $selectValues as $value => $option ) {
print( '' . htmlspecialchars( $option ) . '' );
}
print( '' );
?>
If you're using XHTML, replace ' sele
splayed
if you create a file containing and view it with
your web browser
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php.ini. If it
isn't, then you're editing the wrong php.ini.
Also, make sure you're not overriding those values in a .htaccess file
or in a script.
What kind of errors are happening that aren't being displayed? For
example in an output buffering handler, an error could just c
On Sun, 2005-10-23 at 21:31 -0400, Bob Hartung wrote:
> Jasper
>If if make a file containing only
> phpinfo() ;
>?>
>I get what I expected.
>
>If I make a file containing
>
> phpinfo() ;
>
> // Now a simple class and a call to th
On Sun, 2005-10-23 at 23:01 -0400, Bob Hartung wrote:
> Jasper & Derek
>
>phpinfo() says:
> configuration file path /etc/php.ini
>
>PHP Core
>DirectiveLocal Value Master Value
>
> display_errorsOff
aviour. You
can call graphic.php with GET variables if you need to pass information
on, but you can't put images inline like that except for with data:
URIs.
data: URIs are currently only supported by Gecko browsers (Mozilla,
Firefox, etc) and maybe Safari or Opera (not sure about the latter two).
Do
> but found nothing suitable
> there.
>
> I really need "true" unique identifiers - md5() hash is not OK because of
> the "birthday paradox".
>
> Can anyone recommend a way for solving this trouble?
I use:
$unique_id = sha1( uniqid( mt_rand(), true ) );
w
near congruential
generator, collisions should be *very* improbable, even when generating
IDs on multiple hosts all at the same time.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box
oblem was?
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
sn't working" is a bit vague.
* Does it throw an error?
- If so, can we have the error message?
* Does it mark invalid strings as valid?
- Or vice versa?
Just posting a pile of code with an explanation of what it does and
leaving the rest of us to figure out what the problem is
h chk_mac() (which by the way should return true or false, not 1 or
0, but meh).
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand
--
PHP Gen
On Thu, 2005-10-27 at 00:00 +0200, Jochem Maas wrote:
> gonna jump on your thread there Jasper, I would
> like to comment on your function and ask you a question:
>
> which is 'better' (for what), preg_*() or ereg[i]*()?
I prefer preg_*(), but I used eregi() because
D =1 << 3;
> }
>
> Well now, is this a bug, and I should file it, or is it, and why, normal?
Not a bug. Read manual.
>From http://php.net/oop5.constants comes the following:
"The value must be a constant expression, not (for example) a variable,
a class member, result of a
On Sun, 2005-10-30 at 21:16 -0500, John Taylor-Johnston wrote:
> I need to generate embedded php within in a mysql record. $contents is
> the actual contents of that record.
>
> $contents = " arial,helvetica; font-weight: bold;\">About the Project
> ";
> echo eval($contents);
> ?>
>
> I get thi
way to do what you need to do.
I can assure you one does exist, but with your example it's fairly
obvious, so you'd need to explain better what you're trying to do before
I could help you.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.albu
are $DB as a global at the start of the function. Like this:
function doSomething() {
global $DB;
$DB->doSomethingElse();
}
Or access $DB through the globals superglobal. RTFM.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz
On Wed, 2005-11-02 at 19:05 -0500, Unknown Unknown wrote:
> Oh thanks again
> and what does RTFM mean?
Read The [insert your favourite word beginning with F here] Manual.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
b: http://jbg.n
STDIN );
> >
> > returns an error.
>
> The internal STDIN pointer? there is no such thing by the name of STDIN in
> php.
Yes there is, when running in CLI mode. See:
http://php.net/features.commandline#AEN7906
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL
> global $DB;
Again, no need to global $DB. You are still in the global scope.
> $RL="__";
> $LoginD="__";
> $ID=$UserInfo['ID'];
> echo $ID;
> $DB="membersp";
Here is your problem. You just replaced the $DB object with a string.
Maybe you
tween the output
of phpinfo() in CLI mode and through your webserver.
Jasper
> -Original Message-
> From: Robbert van Andel [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 03, 2005 8:37 PM
> To: [EMAIL PROTECTED]; 'David Tulloh'
> Cc: php-general@lists.php.net
&g
, I've also tried using "\n\n" instead of "\r\n\r\n".
>
> Can anyone give me some advive on how to get the linebreak characters
> interpreted as linebreaks?
Use double quotes around the parts that have \r and \n characters if you
want them to be interpreted.
--
a file pointer exists. You want to check if
the file exists. Try:
if( file_exists( "http://www.stammis.com/getstart.php"; ) )
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
b: http://jbg.name/
p: 0800 4 ALBUM (0800 425 2
>
> > If you guys wouldn't mind taking a few more minutes to mow over all of
> > this, I would *greatly* appreciate it.
Would you mind telling us what the problem is? You've said that you are
having problems and that you don't think you're alone, but you hav
sure AllowOverride is set
correctly in your main Apache config file; try setting it to All for
debugging this.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
b: http://jbg.name/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579
= isset( $_POST['heading'] ) ? stripslashes(
$_POST['heading'] ) : '';
By the way, while you're switching register_globals off, it might be a
good idea to also switch off magic_quotes_gpc (the reason you need
stripslashes() above) and short_open_tag (judgi
chard
Lynch's benefit.) :)
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
GamblerZG wrote:
Richard Lynch wrote:
Please pay attention.
Sorry, I did not see your message when I posted that.
Oh and would you mind using an email address that exists? Every time I
reply to one of your posts, I get a returned mail from highstream.net
saying your user doesn't exist..
[EMAIL PROTECTED] wrote:
Is there a way when making a MySQL database entry through a PHP script and
there is no data to make the db treat it as NULL?
Wouldn't this just work:
INSERT INTO myTable (myField) VALUES (NULL)
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Jay Blanchard wrote:
$theFile = fopen("docs/InstallationInstructionMaster.txt", "r") || die;
I'm not sure if it would make any difference, but I usually use "or" in
this case rather than "||", and I know they have different operator
precedence.
while(!feof($theFile)){
$theLine = fg
Jay Blanchard wrote:
[snip]
Well, it's a pretty model example of a line-by-line file read. I can't
see anything wrong with it, so perhaps the problem lies elsewhere.
There's no other files with the same name in your include_path?
Maybe something to do with auto_detect_line_endings or whatever
s the spec goes).
I always try to enter my email address like this when asked for it on a
form:
Jasper Bryant-Greene <[EMAIL PROTECTED]>
That is a perfectly valid (according to RFC822) email address. Those
that do bother to validate usually spit it out as invalid.
Just to demo
GamblerZG wrote:
What is the purpose of sessions extension?
The reason I ask is because learning to deal with all its functions, ini
options and quirks took me _much_ more time than writing pure-php
replacement. (That is, without using session_set_save_handler().)
I realise that yours might b
er\r\n";
$headers .= "Reply-To: $reply_to\r\n";
and so on. If the headers are all on one line then the MTAs and mail
clients have no way of telling them apart.
Jasper
On 11/12/05, Marco Kaiser <[EMAIL PROTECTED]> wrote:
Hi,
try to add in your $headers linebreaks. (&qu
Todd Cary wrote:
My client's new shared server does not allow printing to a file, so I
want my print statement to print to a buffer, then I'll send it to the
user via Headers. This does not work since "print" does no go to the
buffer, or at least appears not to: I get the errors from the heade
Todd Cary wrote:
Yup! It was the missing parentheses! Works as planned.
Many thanks
The "application/text" gives the user the ability; "text/plain" does not
The ability to...?
seem to do that. I just tried "application/text" since I use
"application/pdf" for other applications.
Wh
Todd Cary wrote:
Marcus -
Many thanks! I did not know that MIME-Type. Change duly made!
You're not suggesting that you actually set the MIME-Type to
application/force-download, are you?
Todd
Marcus Bointon wrote:
On 13 Nov 2005, at 00:17, Jasper Bryant-Greene wrote:
seem
7;', 'firstname', 'lastname', 'address', '
You would need to show us the SQL that was causing that error. Otherwise
it is fairly meaningless.
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
('', '$_POST[f_name]',
You'll be wanting to put backticks (`) around the table name, because it
contains a space.
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s it was and put the backticks
in the SQL statement, like this:
$sql = "INSERT INTO `$table_name` values ('', '$_POST[f_name]', [...]
Jasper
On 11/13/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
Bruce Gilbert wrote:
You would need to show us the SQL
just to stop the bounces, but it appears there is no way to sign up on
that webmail site.
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eturn (these names date from typewriters,
I believe!)
I think that \r\n is the standard way to separate header fields in HTTP
and SMTP, but maybe it's just the most interoperable way. Everyone I
know does it, so I'm just being a sheep...
Jasper
--
PHP General Mailing List (http://w
at string (hint: explode on '/').
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brad Glonka wrote:
The script does not give me any output.
I think this is what I need to enable.
No, as has already been said on the list. That "virtual directory"
setting has nothing to do with this AFAIK.
Are you running PHP as an Apache module or as CGI?
Jasper
--
PHP Gener
301 - 400 of 408 matches
Mail list logo