Hi Bsantos,
Why not use the following code:
for ($i="0";$i".result['$i']."";
}
I hope this helps. Should be easier then using
$number_of_selected_cols_minus_one because how do u get this one?
Probably like this, right? $number_of_selected_cols_minus_one =
mysql_num_rows($result)-1; This
Hi!
I have made a guestbook to my website driven by php and mysql.
But I don't know how to get the text as it is written in the textfield
before it is sent to mysql. So is it possible to save the "hits on enter" in
the database?
Best regards Raymond
--
PHP General Mailing List (http://www.ph
While I am not exactly sure of everything you are asking I think I had
a similar problem...
You need to convert the \r to \n before you put it into the DB.
On Mon, 28 Oct 2002 19:30:15 +0100
"Raymond Lilleodegard" <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have made a guestbook to my website drive
Or maybe you are looking for the nl2br() function ...
Tom Woody wrote:
While I am not exactly sure of everything you are asking I think I had
a similar problem...
You need to convert the \r to \n before you put it into the DB.
On Mon, 28 Oct 2002 19:30:15 +0100
"Raymond Lilleodegard" <[EMAIL
www.php.net/nl2br
---John Holmes...
- Original Message -
From: "Tom Woody" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 1:26 PM
Subject: Re: [PHP] How to get linefeed from textfields registered in mysql?
> While I am not exactly sure of everything you are
Thanks!
Why does preg_replace("^\W^","",$str); not remove undescores _ ? Are they
alpha-numeric?
I had to do this preg_replace("^\W|_^","",$str);
TIA,
Shawn
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:000201c27eab$f4ea0500$7c02a8c0@;coconut...
> > I need to replace all NON alpha
Hi guys I'm having the following problem:
I have a mail() function that works by itself, coming from a html form, but when i
tryied to put it inside a more complex script it doesn't work.
The script is at the end of the message and it is suposed to receive data from a html
form and use it to in
Try: mail($Destino,"$Assunto",$Mensagem);
Adam Voigt
[EMAIL PROTECTED]
On Mon, 2002-10-28 at 13:39, Rodrigo de Oliveira wrote:
> Hi guys I'm having the following problem:
>
> I have a mail() function that works by itself, coming from a html form, but when i
>tryied to put it inside a more compl
I don't know what "Formulário de Cadastro" is, but it doesn't belong as fourth
parameter.
That parameter is for From, CC, BCC headers
- Original Message -
From: "Rodrigo de Oliveira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 12:39 PM
Subject: [PHP] Mail()
Ok, thanks a lot! Thats what I thougt.
Regards Raymond
"Tom Woody" <[EMAIL PROTECTED]> wrote in message
news:20021028122633.34f2979e.woody@;nfri.com...
> While I am not exactly sure of everything you are asking I think I had
> a similar problem...
>
> You need to convert the \r to \n before you p
Chris Shiflett wrote:
You can use the explode() function to separate the content part of the
response, which is what you're interested in.
Here's a similar example that only returns the content:
http://shiflett.org/tutorials/php_post.txt
Thanks, that's nearly what I need. But it seems there a
Hi...
I have a little problem... when i do //localhost/ on the browser i don't get
nothing it gives me "Forbidden - u don't have permission to access"... but i
was the one that installed the apache server!! do u know what's the problem?
Thanks
--
PHP General Mailing List (http://www.php.net/)
T
Hi, is there any way to use PHP to programmatically add a user in terms of
Apache user authentication?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try this:
http://phpclasses.websapp.com/browse.html/package/387.html
Regards,
Daniel Kushner
_
Need hosting? http://thehostingcompany.us
> -Original Message-
> From: John Meyer [mailto:johnmeyer_1978@;yahoo.com]
> Sent: Monday, October 28, 2002 3
How can I use PHP to admin my Apache over the browser?
How do big providers allow their customers to admin their
subdomains, forwarders, ftp-accounts over the webbrowser?
Apache should not run under the root account, or?!
--
Jochen Kaechelin
--
PHP General Mailing List (http://www.php.
Hello,
I have a form, with 2 inputs ( a type "file" and a type "text") and a
submit.
When I submit I receive an error, like this :
':\\Inetpub\\wwwroot\\test\\small2158.jpg)' at line 3
Could you tell me what can I do ?
The better solution is save the picture in the database or save the link
to
look up webmin on your favorite search engine.
Adam
On Mon, 28 Oct 2002, [ISO-8859-1] Jochen Kächelin wrote:
> How can I use PHP to admin my Apache over the browser?
>
> How do big providers allow their customers to admin their
> subdomains, forwarders, ftp-accounts
Check what user apache is running under (usually nobody) in which case
you have to give it world read access (chmod 0755) or make apache run
under that user. (second method is perferred). I'm assuming you're
running linux.
-js
Mr. BuNgL3 wrote:
Hi...
I have a little problem... when i do //loc
how do you configure apache to force all .html pages to go through the php
parser?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
AddType application/x-httpd-php .php .html
(in the httpd.conf file)
Regards,
Daniel Kushner
_
Need hosting? http://thehostingcompany.us
> -Original Message-
> From: John Meyer [mailto:johnmeyer_1978@;yahoo.com]
> Sent: Monday, October 28, 2002 4
Even though this should go to an apache list
Do you have an "index.html" (or .php or whatever you have it set to
reconize in the httpd.conf) file in the document root directory?
Mr. BuNgL3 wrote:
Hi...
I have a little problem... when i do //localhost/ on the browser i don't get
nothing it gi
Hi,
this php-script should read from a server (that i've written in perl) until
it receives the EOF signal.
My server sends the EOF-signal by
print $client "\n\004"; # \004 = EOF
to my script but fread wouldn't stop reading
and i don't have any ideas why.
Is php using an other sign for EOF?
Any anyone tell me about this? I know it is about browser detection
software or something.
What I want to know is is it good for general use? Can it be used on UNIX
server for PHP to interface with? Does it require a lot of update or
something? I saw on that website that describe about BrowseH
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Here is one I just came acrossits even in php.
http://webcp.can-host.com/
~Pauly
On Monday 28 October 2002 03:45 pm, Adam Williams wrote:
> look up webmin on your favorite search engine.
>
> Adam
>
> On Mon, 28 Oct 2002, [ISO
Hi!
I'm not sure about your error, but I have heard that it's best to store the
filepaths in the database.
Best regards Raymond
"Christian Ista" <[EMAIL PROTECTED]> wrote in message
news:01c27ec2$ad371a60$0200a8c0@;p3portable...
> Hello,
>
> I have a form, with 2 inputs ( a type "file" and a
Hi,
Lets say I have a simple array like this:
$myarray = array("a"=>"b","d"=>"c");
echo $myarray[0] will return 'b';
How can I get the name of the index? so:
echo $myarray[something] would return 'a';
I know I can do a list($key,$value) but I don't need to loop through the array, I just
need t
I think you are looking for array_search()
On Mon, 28 Oct 2002, PHP List wrote:
> Hi,
> Lets say I have a simple array like this:
> $myarray = array("a"=>"b","d"=>"c");
>
> echo $myarray[0] will return 'b';
>
> How can I get the name of the index? so:
>
> echo $myarray[something] would return 'a'
check your permissions on htdocs etc and also that u haven't blocked ya self
outta there in the httpd.conf
> -Original Message-
> From: John Nichel [mailto:jnichel@;by-tor.com]
> Sent: Tuesday, 29 October 2002 8:09 AM
> To: Mr. BuNgL3
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] newbie: ap
instead of using break use exit() where u have ur breaks and will work fine
> -Original Message-
> From: Marek Kilimajer [mailto:kilimajer@;webglobe.sk]
> Sent: Tuesday, 29 October 2002 1:30 AM
> To: PHP
> Subject: Re: [PHP] New Error?
>
>
> Break an continue are for loops (while,for ...
Since PWS uses Inetpub, I'm guessing you're using PWS and I would recomend
against using it. I use PHPdev 5 which works like a charm. I'd recomend
switching.
http://www.firepages.com.au/devindex.htm
Thanks,
Stephen
http://www.melchior.us
- Original Message -
From: "Raymond Lilleodegard"
This doesn't seem to work for anything past the first key:
echo array_search(0,$myarray);
will print 'a';
None of these give me anything:
echo array_search(1,$myarray);
echo array_search("1",$myarray);
echo array_search(1,$myarray,true);
echo array_search("1",$myarray,true);
so how do I get 'd'?
When i post a string containing plus sign with htmp form to a php scritp,
the '+' is changed to space.
e.g: i enter 'as+df' to a text input but $_POST[] returns 'as df' instead.
It must be in php or apache configuration bcause i have this problem only on
sytem with FreeBSD. On windows it works as e
Why does preg_replace("^\W^","",$str); not remove undescores _ ? Are they
alpha-numeric?
I had to do this preg_replace("^\W|_^","",$str);
TIA,
Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i've just used str_replace for underscores and it's worked wonderfully.
-Original Message-
From: Shawn McKenzie [mailto:nospam@;mckenzies.net]
Sent: Monday, October 28, 2002 4:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] preg_replace (underscore)
Why does preg_replace("^\W^","",$str); not
I did your little test and couldn't reproduce the problems you are
having. as+df gets returned correctly.
Test server: Apache 1.3.23-11 w/ PHP 4.1.2-7 (RH7.3 rpms)
On Tue, 29 Oct 2002 00:26:39 +0100
"Stan" <[EMAIL PROTECTED]> wrote:
> When i post a string containing plus sign with htmp form to a
I'm using some regexes for swear filtering, but I have a problem. I
need to look for ab[ct] and have it replaced by xyz but not replace the
[ct]. I.e. it would be replaced by xyzc or xyzt. Any ideas?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to de
Have you used a SQL-Statement like:
INSERT INTO `tablename` VALUES ('',LOAD_FILE('$file')
to insert it with load_file? I used it without problems that way.
Christian Ista wrote:
Hello,
I have a form, with 2 inputs ( a type "file" and a type "text") and a
submit.
When I submit I receive an e
anyone can download for testing php-4.3.0-pre2 from:
http://chat.italma.ru/php/
(compiled with vc++.net)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Please do NOT use non-offical binaries for testing!
Windows binaries will be posted soon.
Derick
On Mon, 28 Oct 2002 [EMAIL PROTECTED] wrote:
> anyone can download for testing php-4.3.0-pre2 from:
>
> http://chat.italma.ru/php/
>
> (compiled with vc++.net)
>
>
> --
> PHP Development Mailing
Could you tell something about compiling php under vc++.net?
I tried this but wasn't able to (but did not tried it hard).
regards
marcus
At 16:13 28.10.2002, [EMAIL PROTECTED] wrote:
anyone can download for testing php-4.3.0-pre2 from:
http://chat.italma.ru/php/
(compiled with vc++.net)
--
P
Hello Marcus,
Monday, October 28, 2002, 6:40:52 PM, you wrote:
MB> Could you tell something about compiling php under vc++.net?
MB> I tried this but wasn't able to (but did not tried it hard).
MB> regards
MB> marcus
in fact - nothing special about it. haven't seen any terrible bugs.
working und
I guess it wouldn't be too hard for me to switch to perl reg...
Timothy Hitchens wrote:
Can you use or know perl reg??
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
-Original Message-
From: Leif K-Brooks [mailto:eurleif@;buyer-brokerage.com]
Sent: Tuesday, 29 Oct
The plus sign is used to signify a space in some URL encoding. PHP is
probably thinking the text is encoded and it's removing the plus sign.
Not sure on a solution.
---John Holmes...
> -Original Message-
> From: Stan [mailto:stann@;pobox.sk]
> Sent: Monday, October 28, 2002 6:27 PM
> To:
> I'm using some regexes for swear filtering, but I have a problem. I
> need to look for ab[ct] and have it replaced by xyz but not replace
the
> [ct]. I.e. it would be replaced by xyzc or xyzt. Any ideas?
$new_string = preg_replace("/ab([ct])/","xyz\\0",$old_string);
or
$new_string = ereg_re
Hi,
I am getting this error randomly, just stops and starts.
Error: Unable to select database: crm :Commands out of sync; You can't
run this command now
'./configure' '--with-oracle=/opt/oracle/product/8.1.6/'
'--with-oci8=/opt/oracle/product/8.1.6/' '--enable-sigchild'
'--enable-track-vars'
Hi guys,
I wonder if anyone of you know about any PHP system (free or Open Source, etc.) that
can offer the features (or similar ones) one can enjoy from Microsoft SharePoint
Technologies.
tanks in advance,
Rub.
yeah
phpnuke, phpnuke.org
postnuke, postnuke.com
phpwebsite, phpwebsite.appstate.edu
there's probably a few more out there too
> -Original Message-
> From: PHP Beginner [mailto:bphpdev@;icem.cu]
> Sent: Tuesday, 29 October 2002 11:14 AM
> To: php - List
> Subject: [PHP] looking for Powe
This is true, but the + itself should also be encoded.
I did a quick test, and when I post a form variable called test with a
value of 1+1=2, the HTTP request looks like this:
POST /test.php HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020916
Accept
I need a way to make a string be replaced with its uppercase version
using ereg_replace. Any ideas?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.p
Hey everyone,
For years I have used a fantastic merchant ( http://www.ihtmlmerchant.com
), which is feature packed and easy to setup and use. It's written in a
competing language called iHTML ( http://www.ihtml.com ).
As I am getting considerably proficient at coding PHP, I find that I
require
Why must you use ereg_replace?
Does your question mean that you, for whatever reason, cannot use
strtoupper() instead?
Leif K-Brooks wrote:
I need a way to make a string be replaced with its uppercase version
using ereg_replace. Any ideas?
--
PHP General Mailing List (http://www.php.net/)
I don't want the entire string upercase, just part of it as defined by a
regex.
Chris Shiflett wrote:
Why must you use ereg_replace?
Does your question mean that you, for whatever reason, cannot use
strtoupper() instead?
Leif K-Brooks wrote:
I need a way to make a string be replaced with its
oscommerce http://oscommerce.com/
supports mysql as the database. i've set it up a few times, never
implemented it into production, but its fairly easy to use, and from what
i've seen extremly customizable.
Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca
- Original Message -
Agreed. Case in point, when I attach more 9 email addresses to one email
message via Netzero's servers (1 of 7 different email accounts I have), the
delivery fails with a message that reads something like: ' Blah Blah Blah.
Too many recipients. Blah Blah Blah.'
I could be mistaken about servic
The optional second parameter for date() is a timestamp.
So, you convert whatever date you have (eg 29.10.2002) into a unix timestamp
(probably using strtotime() or maybe you'll have to rearrange the string
first), then supply it to the date() function.
Justin
on 29/10/02 1:57 AM, Davíð Örn Jó
In my never-ending battle against swearing on my site, I'm trying to use
a regex that changes any word that ends with abc to xyz. I'm using:
$tofilter = "This is a string containing the word 123abc.";
$tofilter= eregi_replace("[^ ]abc","xyz",$tofilter);
But it returns "12xyz". It clearly pick
I have written followong code in hello.html:
enter your name:
and following in hello.php:
hello %s!",$textbox);
?>
This script works fine with php in redhat 7.2 system
but does not work in solaris 7 !
I have done the php installation...
apache version: 2.0.40
php version: 4.
i might be crazy, but why don't the many CMS, forum, link directory,
etc packages integrate with a unified user manager?
is this possible? is there perhaps an xml standard for contact
datatypes that could be used?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Hello,
"Mukta Telang" <[EMAIL PROTECTED]> wrote:
[snip]
> I tried using echo($_GET['$textbox']) instead of printf statement in
> hello.php..
[/snip]
Try $_POST['textbox'] instead. (You were using "method=post".)
- E
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Hello,
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote:
[snip]
> But that doesn't work at all. Any ideas on how to do this?
[/snip]
Would't it be easier (and faster) to use
http://www.php.net/manual/en/function.str-replace.php ?
- E
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
XML, by definition is an eXtensible Markup Language. That means the
markup associated with a document can be whatever that person wants it
to be. I think a better question to ask is if there are any projects
out there who are working toward a standard XML document type for
contact information, an
I need to do a few other things that require regex though, like making
either an a or an @ match (people love to get around filters by using
symbols instead of letters...).
@ Edwin wrote:
Hello,
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote:
[snip]
But that doesn't work at all. Any ideas on h
On 29 Oct 2002 at 0:14, taylor wrote:
> i might be crazy, but why don't the many CMS, forum, link directory, etc
> packages integrate with a unified user manager? is this possible? is
> there perhaps an xml standard for contact datatypes that could be used?
I'm not sure I understand you but I
I would like to offer a free webhosting account to the first 25 people who
apply. We are in the process of starting an internet services company and
would like to offer these accounts provided that the applicants are willing
to provide some feedback on our service.
All free accounts include:
php-general Digest 29 Oct 2002 05:55:20 - Issue 1672
Topics (messages 121753 through 121818):
4.3.0pre2 Mcrypt Compile failure
121753 by: Mitch Vincent
ereg_replace???
121754 by: Shawn McKenzie
121756 by: John W. Holmes
121764 by: Shawn McKenzie
Re: Free com
101 - 165 of 165 matches
Mail list logo