Hi,
I used
header("content-type:text/html;charset='windows-1256'");
and header("content-language:'fa'");
for showing my Farsi messages, in PHP, on browser
but these could not work.
Please help me!
Thanks.
__
Do You Yahoo!?
Find the one for you a
What is needed to use gd to full capacity to create/modify images?
I figured freetype and tiff support?
Can I simply untar them
./configure
make
make install
for that software, like freetype? I asked the list, and checked the site. No
help
I don't want to install gd/php and find out "Sorry, y
You sure can. You can use variable variables wherever you can use regular
variables. They're really no different than regular variables, except you
have to keep track of what the variable will be named while coding :)
~Chris /"\
http://minwon82.com
php-general´Ô ¾È³çÇϽʴϱî?
¹Î¿ø»¡¸®´åÄÄ ¿¡¼ ÀÎ»ç µå¸³´Ï´Ù.
À̰÷¿¡¼´Â µî±âºÎµîº», ÅäÁö´ëÀå, Á¹¾÷Áõ¸í¼, ¼ºÀûÁõ¸í¼, °æ·ÂÁõ¸í¼, µî
°¢Á¾ ¹Î¿ø 34Á¾À» ¹Ù»Ú½Å Çö´ëÀεéÀ» ´ë½ÅÇÏ¿© ¹ß±Þ´ëÇà ¼ºñ½º Çϰí ÀÖ½À´Ï´Ù.
½ÅûÀ» ÇϽøé ÀÔ±Ý È®ÀÎÈÄ 2½Ã°£ À̳»¿¡ ÆÑ½º³ª À̸ÞÀÏÀ» ÀÌ¿ë ¿¶÷
Try doing a Google search:
http://www.google.com/search?q=weather+php+script
There are plenty of PHP weather scripts already out there. Find one that
does most of what you want and change it to fit your needs.
Scott Atkins <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PR
AND seems correct to me. If you want to generate an error when the file is
not a jpeg file then the file name must not contain jpg AND must not contain
jpeg. If either jpg OR jpeg is present then no error should occur. Be
careful when using the !not operator with logical condition operators, the
I would like to use something like the weather script that came with my
linux on my webserver. However, I do not know where to start with
sockets and such. The actual linux script takes too long to run and
output. Any help would be great
Scott
--
PHP General Mailing List (http://www.php.n
has anyone tried selecting a mirror php site from the drop down at the
bottom-right? i just tried brazil and bulgaria and it seems to be broken in
general...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Hiya All,
I am running Windows XP Professional and am currently experiencing a problem
with PHP.
I have installed Internet Information Services 5.1, and followed my usual
set-up of PHP under IIS.
I have managed to do this perfectly fine on Windows 2000, but have noticed
that on Windows XP, the
sorry if this is an "idiot" question.
But I have several links in my site to php pages on other sites, why is it
that I can not call a particular page up, since it seems to recalculate the
URL eg
http://XX.XX.XXX.XXX/html/early/cs_early_02_types6.php
does this in athe address bar
http://XX.XX.X
Yes trying to get this to work:
$curline = preg_replace("//","$$1",$curline);
So for the current line I am looking for something like I
want to replace that with the contents of $copyright.
Can variable variables be used in regular expressions?
Jeff
- Original Message -
From: "Christ
On Fri, 16 Nov 2001, Jeff Lewis wrote:
> What I need to do, however, is append a variable portion to a constant prefix. So I
>have a set of variables that are named $MYdog, $MYcat etc. and I need to do
>
> $a = "dog"
> ${"MY$a"} being the same as $MYdog
>
> Can this be done, and if so - how? I
I need a build of PHP that can be used as a module with Apache 2.0.28 beta.
Anyone know where I could find one?
thanks
-Jobarr
--
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 adm
I've a question regarding variable variable I was hoping someone could help me with:
All the examples in the manual have the entire variable name being variable e.g.
$a = "hello" and
$$a being the same as $hello
What I need to do, however, is append a variable portion to a constant prefix. So
OK kids, I'm not 19 ... my old brain gets tired easily and my wife is
complaining that I stay up too late PHPing :)
Putting the rest aside, why does AND work and not OR. OR was what I
meant?
I meant ... if the string doesn't contain .jpg or the string doesn't
contain .jpeg ... > ERROR!
John
http
Hi Cosmin,
@ 8:05:05 PM on 11/16/2001, cosmin laslau wrote:
> Hmm, seem to have run into something rather strange. First off, I
> ran the phpinfo command, and, lo and behold...
> http://www.flat-6.net/f6/analyze.php
I'd delete that when you're done (or just rename it to a totally
random (Ie. 1s
Hi Cosmin,
@ 7:30:04 PM on 11/16/2001, cosmin laslau wrote:
> Thanks for the replies. I'm guessing this is the GD library that I
> would need... http://www.boutell.com/gd/
That would be the one..
> Now to find out if it's built into my PHP or not. Anyone know how to
> 'test' for it?
Sure, s
Oh geez, do I ever feel dumb...I can NOT believe I overlooked that in the
manual :( My apologies to the list.
Jeff
- Original Message -
From: "Brian Clark" <[EMAIL PROTECTED]>
To: "PHP is not a drug." <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 6:41 PM
Subject: Re: [PHP] Equivila
Hi Cosmin,
@ 6:16:57 PM on 11/16/2001, cosmin laslau wrote:
> I've got a website which will alllow users to upload photos (jpegs) and,
> once approved, they'll be up for display. To do that, I need an
> auto-thumbnail script, preferrably for on-the-fly thumb generation.
> Any ideas? Also, wha
Hi Jeff,
@ 6:26:28 PM on 11/16/2001, Jeff Lewis wrote:
> Is there an equivilant to Perls exit function? I am calling a fatal error
> function in PHP and I want it to end the script, just want to end the whole
> program if this is called.
Maybe I'm missing something, but.. :-) PHP has exit() an
:-)
done it many times
It is ALWAYS preferable to have the user choose the username FIRST, then
pay. That way they have taken posession of a 'good' so to speak, for which
they must pay. If they pay BEFORE they choose, they may be unable to find
a username they want, and then they want their
Hi P. Roescher,
@ 12:52:36 PM on 11/16/2001, P. Roescher wrote:
> value="ON">
You probably want something like:
That may not work, if not:
Then:
while(list(,$player) = each($players))
{
list($name,$status) = explode('::',$player);
/* Optionally:
print "$name is $status"
I've been meaning to upgrade and finally feel like I have to bite the
bullet. However, I can't find much information on OS X Server and a version
of php more recent than 4.0b2 which is what I'm currently running. Can
anyone provide some links or their configure line?
thanks,
Jack
--
PHP Genera
well, if you are on a *nix based system, you could use ImageMagic. and have
it generate the thumbnails for you.
as for a script, well, you would have to write that.
Jim
- Original Message -
From: "cosmin laslau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001
Is there an equivilant to Perls exit function? I am calling a fatal error
function in PHP and I want it to end the script, just want to end the whole
program if this is called.
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
I've got a website which will alllow users to upload photos (jpegs) and,
once approved, they'll be up for display. To do that, I need an
auto-thumbnail script, preferrably for on-the-fly thumb generation.
Any ideas? Also, what kind of libraries would I need.
Thanks. The site is http://www.flat
I am helping a client make a transition from a ad revenue based site
to a membership based one and I was wondering if there was some commonly
used mechanism for php based membership sites. I have made
membership sites before but they were free. How does one :
1. Have a person register a username
On Fri, Nov 16, 2001 at 06:22:19AM -0600, Ann Jamison wrote:
> my code looks something like this:
>
> switch($id) {
> case "home": include("home.php");
> break;
> }
> so links can be something like www.url.com?id=home
> I have also tried to use require instead of include
>
> When the desitred l
oh duh, why is it always the simplest reason. :)
fixed it and it runs good now.
thank you sir!
Jim Lucas wrote:
> sorry didn't notice the & in the args
> you'll want this instead.
>
> > function scan_string(&$str) {
> > $forbid = array ("coke", "tylenol", "ford");
> > $swap = array ("
sorry didn't notice the & in the args
you'll want this instead.
> function scan_string(&$str) {
> $forbid = array ("coke", "tylenol", "ford");
> $swap = array ("pepsi", "advil", "chevrolet");
> for ($i = 0; $i < count ($forbid); $i++) {
> $str = eregi_replace($forbid[$i],$swa
eregi_replace isn't your problem this funciton "RETURNS" the new string.
> function scan_string(&$str) {
> $forbid = array ("coke", "tylenol", "ford");
> $swap = array ("pepsi", "advil", "chevrolet");
> for ($i = 0; $i < count ($forbid); $i++) {
> $NEW_STRING = eregi_replace(
ok. im answering my own question here. answer is "this sucks". I wrote some
nasty ruff code just to get the job done. but it invoves alot of sql queries
and alot o recursion.
$f_val)
{
unset($query);
foreach($keyword as $k_pos => $k_val)
if ($k_val)
$query[] = "$f_val LIKE '%$k_
function scan_string(&$str) {
$forbid = array ("coke", "tylenol", "ford");
$swap = array ("pepsi", "advil", "chevrolet");
for ($i = 0; $i < count ($forbid); $i++) {
eregi_replace($forbid[$i],$swap[$i],$str);
}
}
I run this script, and I know the array's load up and the fo
Thanks for the thought Alex,
alas, unlike other languages, PHP handles ANY scalar value in a switch
statement, including variables
So now I an really stumped !!
I am gonna try a whole series of 'ifs' though and deal with the ugliness
of it !
thanks again for your post,
regards
richard
--
I'm cheap too. That's why I use a free editor that does support line
numbers, like ConTEXT (http://www.fixedsys.com/context/) or EMACS. It's
been a long time since I had debugged anything in PERL, but it seems to me
that knowing exactly which line the problem is occurring on is a lot more
helpfu
hey
use exit; instead of break;
break breaks the "switch" statement and continues with the
code below, exit exits the script (en doesnt execute any
code below the switch statement)
Kees
> -Original Message-
> From: Ann Jamison [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 16, 200
I config PHP4.0.6 for Apache 1.3.12 on Win32
: in apache configuation file:
ScriptAlias /php/ "C:/PHP/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
then I test with phpinfo.php file in htdocs directory.
: phpinfo.php :
when I type: http://localhost/php
I'm using switches to make liunks like www.link.com?go=home
code :
switch($go) {
case "home":include ("home.php");
break;
}
etc, also tried require stead of include.
what i get is the requested liunk loaded on top of the index.php page on the
same page, check it out @ www.ribec.airann.com
what
> How can I send the values inside the array into a function
> for calculation?
function addValues( $arrayVar ) {
$reteval = 0;
foreach( $arrayVar as $element ) {
$retval += $element;
}
return $retval;
}
$myArray = array( 1, 2, 3, 4, 4 );
echo addValues( $myArray );
Chris
Hi all,
How can I send the values inside the array into a function for calculation?
Thank you,
Calvin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL
On Fri, 16 Nov 2001, George Whiffen wrote:
> Multi loads are fine for me in 4.0.3 at least, but I don't use arrays,
> each upload has a different name (I gave up on form arrays at IE 3!).
> Have you tried giving them unique names?
I was hoping to avoid that. :)
I'll give it a shot, though. Than
Got it...if anyone's interested the code is below :)
/connect to db
$connectionToDBid = odbc_connect("codesnipits", "joecode", "joecode");
// sql statement
$sqlb = "SELECT imagepath FROM IMAGES";
/ run the query and dump into $numberofrecords variable
$row = odbc_do($connectionToDBid, $sqlb);
my code looks something like this:
switch($id) {
case "home": include("home.php");
break;
}
so links can be something like www.url.com?id=home
I have also tried to use require instead of include
When the desitred link is clicked, the page loads the new link, but also
includes my index page taked
Jimmy Elab wrote:
>
When your not positioned straigth at your keyboard a ';' may
occasionally turn into an 'l'...
--
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 administrato
if I give the user a search and he enters 'cat dog' I am going to want to
find all the results that have the word 'cat' or 'dog' in them, but I want
all the results that have 'cat' and 'dog' at the beginning of the results
because these would be more relevent. now how I see it is this, it aint
pre
Andrew Forgue wrote:
>
> By putting brackets after the variable name [] in a form element
>
>
>
>
BLAAACH!!! Please add an index variable, as fields that you don't need
wil NOT be posted, so when you have several fields for one single
dataset, you might end up with the wrong set of indexes.
Sorry, couple post-Post changes..
The initial query should have been:
$sql = "SELECT Image,Width,Height FROM Images WHERE ID='$ID'";
The an echo of the UPDATE sql now looks like this:
UPDATE Images SET Thumbnail='
Warning: Supplied argument is not a valid Image resource in
/home/mike/wtoa
It doesn't load the dll, when specifying the path (relative path neither
absolute path).
Any solution?
Daniel Berwig
"Henrik Hansen" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> [EMAIL PROTECTED] (Daniel Berwig) wrote:
>
> > The problem is that the
Casper,
My guess would be that the folder that you are trying to write the file
to doesn't have the correct permissions to allow the webserver to write
to it.
Try that and let me know if it works!
Thank You
Brian Paulson
Sr. Web Developer
[EMAIL PROTECTED]
http://www.chieftain.com
-Origin
Hello,
Jtjohnston wrote:
> See these. Reduire.phps probably has what you want.
> http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/reduire.phps
This is what I was looking for I think.. But it still gives me an
error.. This one actually got inserted right into the database:
Warning
Hi there. I have s a php page that randomly grabs an image's path from a db
field and displays it on my php page. My problem is that sometimes when I
refresh the image won't display. So I guess you can say I'm getting
intermittent images...sometimes it displays and sometimes not. I've checked
all
ahh
write permission the folder- duh- not thinkingtoday
thank alot
-Original Message-
From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]]
Sent: 16 November 2001 18:14
To: Caspar Kennerdale; Php-General
Subject: Re: [PHP] quick friday query
check under what user Apache is running ( most
[EMAIL PROTECTED] (Daniel Berwig) wrote:
> The problem is that the php tries to load the dll from the extension_dir. Is
> there a way to make it load from anywhere else?
try to supply a path in dl().
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
got it :) thx for looking
"Joe Van Meer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there. I have a table called IMAGES and I would like to retrieve all
> image_ids and dump into an array. I'm new to php so any help would greatly
> be appreciated. I sta
The problem is that the php tries to load the dll from the extension_dir. Is
there a way to make it load from anywhere else?
"Henrik Hansen" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> [EMAIL PROTECTED] (Daniel Berwig) wrote:
>
> > Does anyone know if
[EMAIL PROTECTED] (Daniel Berwig) wrote:
> Does anyone know if it is possible to load a dll at runtime that is not in
> the extensions_dir configured in the php.ini? And if it is possible, how can
> I do it?
if anything dl() does it.
--
Henrik Hansen
--
PHP General Mailing List (http://ww
check under what user Apache is running ( mostly nobody ). You have to give
write permission on the directory where you want the files to be to that
user. For security reasons, just don't give write access on your
document_root, instead create a directory outside ( or within) your
document_root a
On Fri, 2001-11-16 at 17:49, Caspar Kennerdale wrote:
> I am writing files to my server using
>
> $fp = fopen("myfile.txt", "w");
>
> this all works. However in the php manual it says that by using the "w"
> switch that php will create the file if it doesn exist
>
> However this does not seem t
The script I have:
value="ON">
The Problem I have:
How can i read all checkboxes?!?
Please respond with a source
Pat Hanna wrote:
>
> I'm doing my senior exit project on database languages online. I'm asking
> for help from anyone who can provide any information on the comparison
> between the different languages. I'm comparing languages such as PHP, ASP,
> ColdFussion, perl and any others that I might not
I am writing files to my server using
$fp = fopen("myfile.txt", "w");
this all works. However in the php manual it says that by using the "w"
switch that php will create the file if it doesn exist
However this does not seem to work
I can only write to a file that already exists and has CHMOD 7
Hi all,
So a few weeks back on my Debian Sid box I had everything running
nicely, PHP4, Apache 1.3, and had it such that Multiviews were turned
on, and I could call /foo?id=1 and the file foo.php would register the
variable id as having a value of 1.
I dist-upgraded last weekend (now PHP-4.1.0-R
Sorry if I wasn't very clear abou tthis..
I don't need to echo the contents to be viewed on the web.. I'm already
doing that here:
http://www.wtoaction.org/caravan2001/
It's a matter of saving it to a file on the disk (from the database) so
I can manipulate it with djpeg, pnmscale, cjpeg
Th
Hi George,
George Whiffen wrote:
> I'm confused. Is your problem serving up the images in your database to the web or
>writing them out
> to files on the server?
Sorry for the confusion.. It was in writing out the database images to
files on the server. This is where my problem lies..
>
Hello,
Chris Bailey wrote:
>
> PEAR is another db abstraction layer, and potentially will be integrated
> into PHP. I use it for all my DB access (in PHP) now. In fact, I'd say
> it's more powerful and easier than using the mysql_ methods for example.
PEAR is essencially a Perl DBI clone, so
Hi there. I have a table called IMAGES and I would like to retrieve all
image_ids and dump into an array. I'm new to php so any help would greatly
be appreciated. I started my code below, but am unsure what to do next :(
Thx Joe:)
'connect to db
$connectionToDBid = odbc_connect("codesnipits", "j
[^>]*)>.*'.$quoted.'(?>[^<]*)!Ui', $source, $matches);
?>
good point to start:
http://www.php.net/manual/en/ref.pcre.php
- Original Message -
From: "Martin Thoma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 8:30 AM
Subject: [PHP] Regular expre
>
> I know how to make an error message when the connection is lost with the
> database, with the @ and the OR DIE in the connection with the database.
>
>
> Is there also a way to display a custom error message when this error is
> displaid?
i wrote a more or less simple class to wrap
Does anyone know if it is possible to load a dll at runtime that is not in
the extensions_dir configured in the php.ini? And if it is possible, how can
I do it?
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
Peter Frlicka wrote:
>
> Hello.
>
> What does apache + php do if the user refreshes a page 10 times in a while
> before the scripts finishes? do all 10 .php scripts finish or do the first 9
> get aborted? how can i solve the problem that when someone clicks a lot on a
> link (always the same lin
PEAR is another db abstraction layer, and potentially will be integrated
into PHP. I use it for all my DB access (in PHP) now. In fact, I'd say
it's more powerful and easier than using the mysql_ methods for example.
PEAR uses the standard factory design pattern to determine which DB it's
talkin
Nate Carlson wrote:
>
> I'm trying to create a form that supports multiple uploads (of up to 4
> files), but does not require each of them. I've tried all the code
> examples in the PHP documentation, and they don't appear to work with PHP
> 4.0.6. Basically, I get the file names returned in the
Hello,
Pat Hanna wrote:
>
> I'm doing my senior exit project on database languages online. I'm asking
> for help from anyone who can provide any information on the comparison
> between the different languages. I'm comparing languages such as PHP, ASP,
> ColdFussion, perl and any others that I mi
unfortunaelty its not in php- but director
-Original Message-
From: Matthew Luchak [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 16:03
To: Php-General
Subject: RE: [PHP] timing
If the other application is written in PHP you can use "flock".
Ma
If the other application is written in PHP you can use "flock".
Matthew Luchak
Webmaster
Kaydara Inc.
[EMAIL PROTECTED]
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 11:00 AM
To: Php-General
Subject:
Thanks. It actually turned out that I wanted to do just:
$HTTP_POST_VARS[\\1]
in the regex (ie: removing the quotes entirely inside the array)
and it works just fine. Thanks for the info however.
On Friday 16 November 2001 09:37, George Whiffen wrote:
> Henrik,
>
> I think your problem is jsi
I have a script that when is executed parses and html file and writes the
contents to a text file.
I need to then read this text file from another apllication
Is there a way of timing this operation, so that my other app does not try
to access the file before being written?
--
PHP General
On Fri, 2001-11-16 at 10:19, Matthew Luchak wrote:
>
> If you know the setup of the form beforehand it is relatively easy to do
> something like :
>
> $string="$myfield1[0] $myfield2[0] $myfield1[1] $myfield2[1] etc..."
>
> However I remember one of my stupid mistakes awhile ago was mistakenly
Joe,
One approach that works for me is to have a separate IMAGE table with an automatically
generated
primary key image_id (auto_increment with MySQL). I don't use this store the image,
but just to
give me the unique name for the image file. I also use the IMAGE table to store away
the origi
When we open this url : http://localhost/index.php/test=2
Yep index.php/test=2 not index.php?test=2
Apache open the page index.php one time for every broke link he find in the
index.php page. Example :
Simple PHP test page
Simple PHP test page
Images are broke because the pa
Thanks for pointing me to phpinfo(), the field for the ./configure
command is my old one, I guess I'll go back and start from scratch, must
of forgot a step.
On Thu, 2001-11-15 at 21:06, Johan Holst Nielsen wrote:
> > I know it's probabally overkill but in the configure messages, it says
> > y
I'm trying to create a form that supports multiple uploads (of up to 4
files), but does not require each of them. I've tried all the code
examples in the PHP documentation, and they don't appear to work with PHP
4.0.6. Basically, I get the file names returned in the arrays, but the
array that shou
you can fopen() remote files!
$fp = fopen("www.site.com/infodir/exchange.txt","r");
$rates = fread($fp, ...);
fclose($fp);
"Mindhunter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Lets say I want to get the current exchangerate from anot
Hi - my sysadmin tells me that PHP is compiled in, rather than loaded
as an Apache module.
I need to use
php_value include_path ".:/www/includes/foo"
to get different include paths for different sites. How do I
accomplish this?
The manual says "When using PHP as an Apache module, you
name the checkbox as:
' name='selectedplayers'>
where ID is used to identify this current field!
then read in the posted page as:
"P. Roescher" <[EMAIL PROTECTED]> wrote in message
01c16eab$65226360$015a@cc48693a">news:01c16eab$65226360$015a@cc48693a...
> The script I have:
>
take the query string as is:
$QUERY_STRING
in this case:
$qstring = "myfield1=&myfield2=aaaccc&myfield1=";
and then pass it on as is again to whoever you want!
or you can parse it like:
$qstrings = split('&', $qstring);
then split each pair:
$pairN = split('=', $qstrings[$i]);
et
If you know the setup of the form beforehand it is relatively easy to do
something like :
$string="$myfield1[0] $myfield2[0] $myfield1[1] $myfield2[1] etc..."
However I remember one of my stupid mistakes awhile ago was mistakenly
giving two form fields the same name. My result was that the se
Does anyone have some recommendations for database books. This is something that I
want to get
better versed in as I have gotten along by visualizing the database and its
relationship for small
projects, but I think I need a better base and more knowledge. Recommendations can
before both
MySQ
Hi
I have following problem:
I get a form with some fields having the same name.
PHP solves this problem by appending [] to the form-field-names which causes the
creation of arrays.
My problem now is, that I have to pass those variables further to another script (not
PHP) in exactly that order
grab a copy of phpmailer .. it does exactly what you want
- Original Message -
From: "Jaime Iniesta Aleman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 4:01 AM
Subject: [PHP] Sending mail without using mail()
>
>
> Ok, where can I find a tutorial about
Sorry for sending this message through the list, but I'm getting mail errors
when I try to send it directly.
- - - - -
Sorry it took so long. The generation scripts aren't very fleshed out,
and neither is the display format, but it's a good solid example of the
basic example. Every main unit
Nope. That is just the problem. session_destroy() only destroys the data
inside the session. Not the id.
But i actually solved it now. I am using the same algorithm as php itself to
create a new id everytime the page is loaded:
session_id( md5( uniqid( "", 1 ) ) );
session_start();
- Dani
Henrik,
I think your problem is jsimply that you are not getting variable substitution
of $HTTP_GET_VARS["whatever"] inside double quotes.
print "whatever is $HTTP_GET_VARS["whatever"]";
is not safe.
You need
print "whatever is {$HTTP_GET_VARS["whatever"]}";
or, (IMHO better),
print '
Note that you don't need to use xgettext to use gettext. It is simply a
time-saver that generates a template .po file for you. You can easily
create this text file yourself.
-Rasmus
On Fri, 16 Nov 2001, Pavel Novak wrote:
> so I know where is the problem:
>
> ">
>
> gettext is seeking thr
I'm confused. Is your problem serving up the images in your database to the web or
writing them out
to files on the server?
If it's serving images, I would expect you to have:
select myimage from db
Header("Content-type: image/jpeg");
echo $myrow[myimage];
exit();
etc.
If it's writing from t
The script I have:
value="ON">
The Problem I have:
How can i read all checkboxes?!?
so I know where is the problem:
">
gettext is seeking through all of strings in the file, it thinks that one
string is:
""
And it doesn't work even with this:
value=""
or this:
value=''
Does anybody know how I can do it to be good?
--
PHP General Mailing List (http://www.php.net/)
To unsu
Hi,
i am writing a simple postcard-script. I use php 4 sessions and stores the
data in MySql with the sessionid as a unique id for the card.
The problem is - i can´t send more than one card with the same id. I can´t
find any way to get a new session id without closing the browser. In the
manual
I always get strpos wrong.
So typically in this case I would do something like:
list($file,$ext) = explode('.',$yourimage);
if ($ext != 'jpg' or $ext != 'jpeg')
{
error...
}
(More properly we should make sure jpg or jpeg are at the very end of the filename
i.e. you probably
don't like myfi
Hi,
Lets say I want to get the current exchangerate from another page on the web
and use it in calculations on my own page. How do I retrieve info from
another site once someone access my page?
Tx
MH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
1 - 100 of 135 matches
Mail list logo