On Tuesday 17 December 2002 10:19, Noodle Snacks wrote:
> PHP is telling me that I need GD 2.0 or later. This is on a newly installed
> mandrake 9 distro. Could this be a configuration issue? or do I need to
> figure out how to update GD?
If you want to use those functions, then yes, you need to f
Yes I'm reading the FM :) http://www.php.net/manual/en/ref.mysql.php
I should know this. How will I PHP this SQL into my MySQL table?
INSERT INTO testals VALUES ($part1, $part2, $part3, $part4);
I'm particularily concerned aboute single quotes. How do I escape them? Should I?
Here is what I thi
Hi,
some weeks ago I asked if it was possible to have a per apache-virtualhost
disable_functions list. Rasmus answered that this is not possible since
the interpreter is initialized once, and it'd be too expensive to reload
the config.
But, what about PHP as CGI?. I guess the disable_functions pa
I am emailing 150 or so
-
Chris Kay (Systems Development)
Techex Communications
Website: www.techex.com.au Email: [EMAIL PROTECTED]
Telephone: 1300 88 111 2 - Fax: (02) 9970 5788
-
On Mon, 16 Dec 2002, wrote:
>I wonder if I can mail 300 customers in one click?
>
>part of script:
>
>while($listrow = mysql_fetch_array($listresult)) {
>
>$recipient = $listrow[epost];
>$subject = "$subj";
>$message = "$mess";
>$headers .= "From: $admail\n";
>$headers .= "Rep
you will need to say what drive the temp folder is on so c:\temp\ in the
php.ini
> -Original Message-
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 17 December 2002 4:11 PM
> To: 'Elaine Kwek'; PHP
> Subject: RE: [PHP] Plz help to solve my problem.
>
>
> From this error
>From this error
Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0
It looks like you'll have to change php.ini to have session.save_path point
to a valid path. Maybe \temp\ ?
HTH
Martin
-Origina
I am now trying to use php session control in my web application. i try to
copy a coding an test it...but it come out error. i not sure how to solve
it. Plz help me...I using Apache server.
the code sample is like this:
";
?>
And this is the result of the page:
Warning: open(/tmp\sess_c0fe7c6
I would definitely store the file type (either extension or mime-type) of
the files.
Justin
on 17/12/02 3:27 PM, Bruce Levick ([EMAIL PROTECTED]) wrote:
>
> Sorry for the newbie question.
> I am an artist and entering my pieces into a databasebasically all
> that will be displaying will be
Don't double post and do a little thinking for yourself. The error is
undefined variable: Array. That means that where you are using
$Array["URL"], it doesn't have a value, it's, "undefined". Where is
$Array coming from, or where do you think it's coming from?
---John W. Holmes...
PHP Architect -
Sorry for the newbie question.
I am an artist and entering my pieces into a databasebasically all
that will be displaying will be
Title:
Medium:
Date Created:
and an image (.gif, .jpg, .swf)
I want to know what is the best way to call a specific image type.???
Should I give each image file e
a .htaccess file in your document tree, anywhere above the file in question
ForceType application/x-httpd-php
(assuming apache server)
on 17/12/02 2:38 PM, Krzysztof Wozniak ([EMAIL PROTECTED]) wrote:
> Is there any possibility to invoke the PHP engine on a single, specific
> file? I mea
There is actually a gpg PHP module available that makes gpg easy
functions available to PHP so you do not need to execute command line
programs on plain text files.
Remember if you write your data to a plain text file it will temporarily
be vunerable to interception by anyone with read access to t
Is there any possibility to invoke the PHP engine on a single, specific
file? I mean, I know I can ask PHP politely to treat every .html file as
a PHP file, but it will slow down the whole server. Can the PHP engine
be invoked locally (by folder) or preferably on a single file?
Thanks,
Krzyszt
Check phpinfo() on both the new and old server -- i think the var not
defined stuff is related to a different (higher) error reporting directive
on the laptop.
As for the images, view the actual SOURCE of the resultant HTML page
(browser > view source) and see how the image src's are being written
Thanks a lot!
I'm just blind!
"Quentin Bennett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
o.nz...
What's wrong with
select left(myfield, 500) from mytable;
?
Quentin
-Original Message-
From: Micah Bushouse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 17 December 2002 3:
Please help! I am a beginner of php, I got an error from my own webpage:
Notice: Undefined variable: Array in C:\Inetpub\wwwroot\php\HandleForm.php
on line 23
Please enter a valid Web address!
Below is my code:
Using Files
http://\\2\\3\"target=\"_new\";>\\2\\3";
$Array["URL"] = eregi_repl
Please help! I am a beginner of php, I got an error from my own webpage:
Notice: Undefined variable: Array in C:\Inetpub\wwwroot\php\HandleForm.php
on line 23
Please enter a valid Web address!
Below is my code:
Using Files
http://\\2\\3\"target=\"_new\";>\\2\\3";
$Array["URL"] = eregi_repl
you didn't send the code snippet for "Undefined index"
however, I think the reason you're getting these errors at home is because
you have a different error_reporting level.
HTH a bit
Martin
[snip]
//filled out info and clicked send.
Notice: Undefined index: license in c:\inetpub\wwwroo
What's wrong with
select left(myfield, 500) from mytable;
?
Quentin
-Original Message-
From: Micah Bushouse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 17 December 2002 3:22 p.m.
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL select a field's first X bytes
Is there a way in MySQL to select
Is there a way in MySQL to select a fields first X bytes?
I have a field of type text. I would like to print the first 500 or so
bytes of its contents as a summary of the entire field, then having the user
click "read more..." or something of that sort for the whole document.
I read up on select
> > For example i have some words:
> >
> > Today is very beautiful day and sun is shining
> >
> > What i want to get from this is array
> >
> > words
> > [Today] => 0
> > [Is] => 6,30
> > [Very] => 8
> > [beautiful] => 12
> > ..
> >
> > Can somebody please help me with this. Those nubers a
PHP is telling me that I need GD 2.0 or later. This is on a newly installed
mandrake 9 distro. Could this be a configuration issue? or do I need to
figure out how to update GD?
I get these errors:
Warning: imagecreatetruecolor(): requires GD 2.0 or later in
/var/www/html/golgo13/includes/img.cl
Sorry I did not mention.
My local machine is WinXP pro, running php 4.2 and mysql 3.23.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, I only saw the first line in your message ("I want to know all
about...") - somehow assumed the 2nd to be part of the sig on first
reading - and hurried to be cynical.
Can't help you with a good site/book. Why don't you RTFM instead? :)
Bogdan
[EMAIL PROTECTED] wrote:
Hello List,
I wan
ok
[EMAIL PROTECTED] wrote:
Hello List,
I want to know all about copiling, installing and configuring php with gd-support.
Anybody knows a good site or book to read about?
Oliver Etzel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have just setup my localmachine to see how our site runs on php 4.2.
It currently runs on 4.1 on the server. I am only fairly new to this so
I have come across a slight hurdle.
At first logging in as a user to the database was giving "undefined
variable" error. Have read up on this and fixed it
Is there a way to put each part of a string matching a regex into an
array? Example:
$string = "-_-_--- --_-_-- random text here-_";
$array = regextoarray($string,"[-_]{1,}");
//Produces array of "-_-_---","--_-_--","-_"
--
The above message is encrypted with double rot13 encoding. Any
I'm not sure what is meant in this thread but arrays
are pretty simple. PHP allows both numerical and
associative arrays (although in all reality they all
are associative) but anyway:
$arr1 = array('a','b','c', 42 => 'yep');
print $arr1[0]; // a
print $arr1[1]; // b
print $arr1[2]; // c
Hi,
I wonder if I can mail 300 customers in one click?
part of script:
while($listrow = mysql_fetch_array($listresult)) {
$recipient = $listrow[epost];
$subject = "$subj";
$message = "$mess";
$headers .= "From: $admail\n";
$headers .= "Reply-To: $admail\n";
$headers .=
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 3:16 PM
Subject: Re: [PHP] PHP Auto-Responder
> On Tuesday 17 December 2002 04:16, Kevin Stone wrote:
> > I need a solution to activate a PHP script when somebody sends an e
On Tuesday 17 December 2002 04:16, Kevin Stone wrote:
> I need a solution to activate a PHP script when somebody sends an email to
> a specified account. I've looked into procmail and sork and find that I am
> in way over my head. I know my way around PHP well enough but I'm more
> than a little
I see. Well, in that case I don't really know what to do. Sorry.
On Tue, 17 Dec 2002, Quentin Bennett wrote:
> Hi,
>
> No I don't think that is right.
>
> $monthschedule["Jun"] is not what is being looked for, but
>$monthschedule[something]="Jun";
>
> Try doing a loop to see what is in the arra
the pdf_add_weblink() function does not do anything for you?
--- http://cristophus.cjb.net ---
Why static, when you can go dynamic?
On Mon, 16 Dec 2002, enediel wrote:
> Thanks [EMAIL PROTECTED] for your answer.
>
> I'll verify the PDFLib, create dinamically a pdf file and add a link
The limit is by your webhost and by bandwidth. Emailing 300 people with that
script would be rather time consuming if your host is slow...
- Original Message -
From: "Jan Grafström" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 4:34 PM
Subject: [PHP] can I ma
Try to insert all your received data from the database server data into an
array then to
execute your query after the unique id(if you have one!!!).
$sql=select * from table where id='$id';
then all the data you put into an array and select the index from the
array. Check the list html tag for more
Hi,
I wonder if I can mail 300 customers in one click?
part of script:
while($listrow = mysql_fetch_array($listresult)) {
$recipient = $listrow[epost];
$subject = "$subj";
$message = "$mess";
$headers .= "From: $admail\n";
$headers .= "Reply-To: $admail\n";
$headers .=
Hi,
No I don't think that is right.
$monthschedule["Jun"] is not what is being looked for, but
$monthschedule[something]="Jun";
Try doing a loop to see what is in the array.
Example, from PHP Bible,
function print_keys_and_values_each($arr)
{
reset($arr);
while ($cell = each($arr))
{
What you have to do, at least I think, is you have to type:
$r = $monthschedule["Jun"];
That is what I think you have to do. The other way you did it was when you
have a value-only array.
On Mon, 16 Dec 2002, Mako Shark wrote:
> I have an array I set up like this:
>
> $monthschedule = array(1 =
Perhaps you made an error when you configured it?
On Mon, 16 Dec 2002, Lic. Rodolfo Gonzalez Gonzalez wrote:
> Hi,
>
> I've just recompiled PHP 4.2.3 on RedHat w/Apache, after having upgraded
> from Perl 5.6.0 to 5.8.0 (I had to disable mod_perl for now, due to
> incompatible libraries). But now
oh, some addendum, I would need it for MySQL if its dependend.
Thomas
On Mon, 16 Dec 2002 21:46:34 +0100 [EMAIL PROTECTED] (Thomas Seifert) wrote:
> Hi folks,
>
> I'm looking for a function or class which is able to automatically update
> multiple tables.
>
> The hard thing on this is, I only
Hi folks,
I'm looking for a function or class which is able to automatically update
multiple tables.
The hard thing on this is, I only want to give it some predefined arrays which
define the table-structures (and maybe aliases for some fields) and on execution
it only gets some field-names and t
Difficult to tell exactly what your problem is but to disassociate a
varaible name to its place in memory you use, unset($varname);
-Kevin
- Original Message -
From: "Beauford.2002" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 1:29 PM
Subject:
Hi,
I have a webpage where users input information. This gets sent to a PHP page
to use this input. The first time the user inputs information it works
correctly, but the second, third, forth, etc. times does not. It appears the
information from the first time is still stored in the variables I am
Hi again,
I'm still trying to understand sessions, and have made some progress
during the afternoon, thanks to Ernest E. Vogelsinger. I'm at the moment
trying to get a login-script up and running, but without 100 percent success.
The script is split up in two major parts: bilder.php, which is
Gerard Samuel wrote:
What Im trying to do is, reject all email address strings ending in
yahoo.com, except [EMAIL PROTECTED]
Im trying ->
if (preg_match('/[^[EMAIL PROTECTED]|yahoo.com]$/', '[EMAIL PROTECTED]'))
{
echo 'match found';
}
else
{
echo 'match not found';
}
?>
The search patt
--- Tomas Lopez <[EMAIL PROTECTED]> wrote:
> can someone tell me where can i enroll in a
> good proyect o someone to help..
I would recommend finding an open source project to
contribute to. You can find many projects that are
currently seeking help here:
http://sourceforge.net/people/
Chris
-
Hi ALL!
I'm new on PHP (just a few mounths) and i'm learning , my problem is that i
dont have good projects to do., can someone tell me where can i enroll in a
good proyect o someone to help..
Thank you so much.
Tomas Lopez
_
MSN
I need a solution to activate a PHP script when somebody sends an email to a
specified account. I've looked into procmail and sork and find that I am in
way over my head. I know my way around PHP well enough but I'm more than a
little dense when it comes to Unix commands. I wouldn't even know ho
--- Max Clark <[EMAIL PROTECTED]> wrote:
> Warning: socket_connect() unable to connect [60]:
> Operation timed out in
> /usr/home/maxc/public_html/admin/functions.inc on line 66
>
> Is there any way to time out this function? I only want
> to wait 5 seconds.
Now that you mention it, I am not awar
Uros Gruber wrote:
Hi!
For example i have some words:
Today is very beautiful day and sun is shining
What i want to get from this is array
words
[Today] => 0
[Is] => 6,30
[Very] => 8
[beautiful] => 12
..
Can somebody please help me with this. Those nubers are
position of special word
Hi,
I've just recompiled PHP 4.2.3 on RedHat w/Apache, after having upgraded
from Perl 5.6.0 to 5.8.0 (I had to disable mod_perl for now, due to
incompatible libraries). But now something weird is happening: sometimes
as a page with PHP code loads in the browser, it's not processed by PHP,
but the
thanks, I will give that a shot.
-Original Message-
From: Joseph W. Goff [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 2:25 PM
To: php-general; Edward Peloke
Subject: Re: [PHP] php setup
You have the error_reporting set at E_ALL in the ini file. Set it to E_ALL
& ~E_NOTICE
Hi-
Warning: socket_connect() unable to connect [60]: Operation timed out in
/usr/home/maxc/public_html/admin/functions.inc on line 66
Is there any way to time out this function? I only want to wait 5 seconds.
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsu
Here is what i do to parse a file with a perl script from PHP to get a
formatted output from the file :
error_reporting(E_ALL);
$cmd="/pathto/dump.pl \"".$HTTP_POST_VARS["filename"]."\" 2>&1";
$res=exec($cmd,$tab,$err);
With small files all goes fine, but when parsing a big file i get the
155 er
You have the error_reporting set at E_ALL in the ini file. Set it to E_ALL
& ~E_NOTICE
- Original Message -
From: "Edward Peloke" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 1:29 PM
Subject: [PHP] php setup
> I recently got a laptop and was in the pr
Hi-
I was wondering if someone could help me with a regex to test for a valid
domain name (foo.com).
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You don't have a closing french brace for your while loop.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 12:57 PM
Subject: Re: [PHP] Re: Stumped!
Hmm, I am still getting a parse error on the last line of code
it is turned on
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 2:03 PM
To: Edward Peloke
Cc: php
Subject: Re: [PHP] php setup
Turn on register_globals in your php.ini file.
On Mon, 16 Dec 2002, Edward Peloke wrote:
> I recently got a
On Tuesday 17 December 2002 02:46, Gerard Samuel wrote:
> What Im trying to do is, reject all email address strings ending in
> yahoo.com, except [EMAIL PROTECTED]
> Im trying ->
>
> if (preg_match('/[^[EMAIL PROTECTED]|yahoo.com]$/', '[EMAIL PROTECTED]'))
> {
> echo 'match found';
> }
> else
--- Chris Shiflett <[EMAIL PROTECTED]> wrote:
> --- [EMAIL PROTECTED] wrote:
> > I keep getting a parser error and I can't figure
> > it out. Here is the code and any help is greatly
> > appreciated.
> >
> > $sql = "SELECT * FROM requests";
> >
> > while ($result = mysql_fetch_array($query))
>
>
I don't know. You need to show your code.
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Joseph W. Goff" <[EMAIL PROTECTED]>
Cc: "php-general" <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 12:01 PM
Subject: Re: [PHP] URL field receiving Array for others
>
> But what could the
Check out your while
{
} <--- i don´t see a closing one
echo ("$meetingName ");
try:
echo ''.$meetingName.'';
<[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hmm, I am still getting a parse error on the last line of code...
In a message dated 12/16/200
Turn on register_globals in your php.ini file.
On Mon, 16 Dec 2002, Edward Peloke wrote:
> I recently got a laptop and was in the process this weekend of installing,
> php, apache, mysql etc. One thing I noticed is when I ran the code (that
> works fine everywhere else) on the laptop, I got erro
--- [EMAIL PROTECTED] wrote:
> I keep getting a parser error and I can't figure
> it out. Here is the code and any help is greatly
> appreciated.
>
> $sql = "SELECT * FROM requests";
>
> while ($result = mysql_fetch_array($query))
While this is not related to your parse error, it is a
major logi
I recently got a laptop and was in the process this weekend of installing,
php, apache, mysql etc. One thing I noticed is when I ran the code (that
works fine everywhere else) on the laptop, I got errors of 'Variable not
defined' and I have pictures that just won't show. I am not sure if this is
Hmm, I am still getting a parse error on the last line of code...
In a message dated 12/16/2002 1:49:26 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:
> $sql = "SELECT .";
> $sql_e = mysql_query($sql);
>
> while ($result = mysql_fetch_array($query_e)) {
> .
> }
>
> You were missi
Thanks [EMAIL PROTECTED] for your answer.
I'll verify the PDFLib, create dinamically a pdf file and add a link to it
into a result web page could be the solution I need.
Sometimes the asked report could be extremely large, and include all
resulting information inside the web page won't be the sol
$sql = "SELECT .";
$sql_e = mysql_query($sql);
while ($result = mysql_fetch_array($query_e)) {
.
}
You were missing the mysql_query
<[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to display a column from my database as a list. Each
> I am trying to display a column from my database as a list. Each listing
> needs to be a URL that links to another script that brings up all of the
data
> in the row to edit. I keep getting a parser error and I can't figure it
out.
> Here is the code and any help is greatly appreciated.
>
> $
What Im trying to do is, reject all email address strings ending in
yahoo.com, except [EMAIL PROTECTED]
Im trying ->
if (preg_match('/[^[EMAIL PROTECTED]|yahoo.com]$/', '[EMAIL PROTECTED]'))
{
echo 'match found';
}
else
{
echo 'match not found';
}
?>
The search pattern must also be capab
I am trying to display a column from my database as a list. Each listing
needs to be a URL that links to another script that brings up all of the data
in the row to edit. I keep getting a parser error and I can't figure it out.
Here is the code and any help is greatly appreciated.
$meetingNa
> Yes, but my example was geared towards trying to work through a more
> generic scenario. I'll bet if you try using perl regex with callback
> it'll be even faster.
I'll take that bet and say using preg_*_callback will be slower. :) I'll try
and time each of them tonite and post what I find.
Som
Yes, but my example was geared towards trying to work through a more
generic scenario. I'll bet if you try using perl regex with callback
it'll be even faster.
Marco
--
php|architect - The magazine for PHP Professionals
The monthly worldwide magazine dedicated to PHP programmers
Co
It gives me an error
"Warning: error opening none in Line 51 (which is the ftp_put())
-Original Message-
From: Joseph W. Goff [mailto:[EMAIL PROTECTED]]
Sent: 16 December 2002 17:53
To: php-general; Marios Adamantopoulos
Subject: Re: [PHP] FTP Can't create temp file?
What happen
But what could the user be typing into the field to return an array?
I'm completely at a loss.
Quoting "Joseph W. Goff" <[EMAIL PROTECTED]>:
### Whatever variable that is suppose to contain the URL is an array. If you
### try to print a variable that is an array the value you get is 'Array'.
Hi!
I have dome almost the same
$input = 'Today is a very beautiful day and the sun is shining';
$output = array();
$words = explode(' ',$input);
$cur_pos = 0;
foreach($words as $word) {
if(!empty($output[$word])){
$output[$word] .= ','.$cur_pos;
} else {
$output[$word]
Whatever variable that is suppose to contain the URL is an array. If you
try to print a variable that is an array the value you get is 'Array'. You
will either have to step through it, or implode it, or something of that
nature to get what the array contains.
- Original Message -
From: <[
On Tuesday 17 December 2002 01:43, Mako Shark wrote:
> I have an array I set up like this:
>
> $monthschedule = array(1 => "Jan", 2 => "Feb", 3 =>
> "Mar", 6 => "Jun");
>
> When I try to access them, doing this:
> $r = $monthschedule[6];
>
> nothing comes up ($r is blank). Any thoughts? There
> are
What happens when you remove the suppresion operator (@) from the
move_upload_file and why not just use ftp_put()?
That has always worked fine for me.
- Original Message -
From: "Marios Adamantopoulos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 11:06 AM
Subj
Hello All!
I have a script which inserts a users info into mysql via PHP.
Here is the code which does so:
$sql = ("INSERT INTO `business` (`id`, `bt_id`, `bus_name`, `bcity`, `phone`,
`cell`, `email`, `url`, `details`, `duration`, `s_id`, `license`, `datime`,
`comments`,`ip`,`user_id`,`user_pas
True, but it answers the original question. :) You can easily throw in a
if($word == ' ') then don't save it, but still increment $pos. You could
use a regular expression to check/remove punctuation, too.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your cop
I have an array I set up like this:
$monthschedule = array(1 => "Jan", 2 => "Feb", 3 =>
"Mar", 6 => "Jun");
When I try to access them, doing this:
$r = $monthschedule[6];
nothing comes up ($r is blank). Any thoughts? There
are missing elements (4,5,7-12) in $monthschedule.
_
At 12/14/2002 12:50 AM, John W. Holmes wrote:
> And here's a good example of why you should always test each solution
> and time it to see what's better. I was recommending a
> preg_replace_callback solution which I thought, as a lot of other people
> would also think, is a lot faster that your ow
John,
I'm not sure this will work if there is more than one space between
words.
Also, my previous example won't work if there are duplicate words
(although it's easy to make an array out of each word and solve the
problem), nor if the words are delimited by any character other than
spaces, in wh
> For example i have some words:
>
> Today is very beautiful day and sun is shining
>
> What i want to get from this is array
>
> words
> [Today] => 0
> [Is] => 6,30
> [Very] => 8
> [beautiful] => 12
> ..
>
> Can somebody please help me with this. Those nubers are
> position of special
You could use strpos--there are easier ways if you don't need the
offsets.
Example:
This is from memory, but it looks like it should work even for weird
strings like the one above.
Cheers,
Marco
--
php|architect - The magazine for PHP Professionals
The monthly worldwide magazin
yes, thank you, found it in the manual
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- rolf vreijdenberger <[EMAIL PROTECTED]>
wrote:
> If I close the browser window before the execution
> of the script, a lot of emails do not arrive. is
> there a way to prevent this?
Try this at the top of your script:
ignore_user_abort(true);
Chris
--
PHP General Mailing List (http://www.p
I was wondering when a script stops executing server side.
I am sending out a large number of mails.
This takes some time ( 30 secs) before it is done.
If I close the browser window before the execution of the script, a lot of
emails do not arrive.
is there a way to prevent this?
and how does this
Hi!
For example i have some words:
Today is very beautiful day and sun is shining
What i want to get from this is array
words
[Today] => 0
[Is] => 6,30
[Very] => 8
[beautiful] => 12
..
Can somebody please help me with this. Those nubers are
position of special word in above sentence.
Hi all again
I'm trying to upload to a unix server. The program I use works fine on my
2000 IIS machine but it has a problem on the online one. Permittions have
been checked and I've been looking all day to find something, but natha...
I would appreciate it if someone can have a look and suggest
Problem solved:
I forgot to add the enctype to the original FORM tag.
Cheers,
Lee,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have big problems getting the mail()-function working -> the error I
always get is as follows:
syserr(apache): can not chdir (/var/spool/mqueue/): Permission denied
Has anybody a clue what might be the reason for this error?
Should I change the rights of the mqueue directory? The mqueue
dire
> I've got a question about the echo function. If I have a variable (string)
> with a ` in it, and I use echo, the output is \` instead. This I use this
> in a form (if people fill in the form incorrectly, they get the form
> again, with the values they entered filled in) and it looks rather weird
It looks to me like you are trying to get an uploaded file?
If so, it isn't $HTTP_POST_VARS, it is $HTTP_POST_FILES or $_FILES if you
are using a version of PHP that has super globals.
See the PHP manual for more info:
http://www.php.net/manual/en/language.variables.predefined.php
- Original M
Ofcourse there can only be one home function:
require_once "HTML/IT.php";
class Home {
var $tpl_home = NULL;
function Home(){
$this->tpl_home = new
IntegratedTemplate("../templates");
$this->tpl_hom
Hi all,
I've got a question about the echo function. If I have a variable (string)
with a ` in it, and I use echo, the output is \` instead. This I use this
in a form (if people fill in the form incorrectly, they get the form
again, with the values they entered filled in) and it looks rather weir
I am not a specialist, but I discovered the parameter iv and the
related function create_iv. Most likely you must provide an created iv
before encryption, store the cypher and the iv together in the cookie and at
retreaval, use both in decrypt.
So in between:
/* Terminate encryption handler */
Yes I know that. It returns a number. Meanwhile I found out that 11 (what is
returned in my case) means that I have to try again, something like a
temporary unavailable resource. It is weird that the same program on the
command line returns a string to stdout without a problem. When I used it
from
1 - 100 of 147 matches
Mail list logo