Don Myers wrote:
...
B. Since the PHP-CLI script never ends how can I send the first echo "You
have..."?
Maybe flush() helps.
http://www.php.net/manual/en/function.flush.php
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Oôv as&äönsson wrote:
...
Does anyone have any suggestion what i can do?
Just a wild guess..
What happens if You use imagecreatetruecolor() instead of imagecreate()
and imagecopyresampled() instead of imagecopyresized()?
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To
Vicente Werner wrote:
El Martes, 6 de Abril de 2004 10:13, Burhan Khalid escribió:
You cannot close the window from within PHP. You have to use client side
scripting (Javascript).
I've already tried sending :
window.close()
Just after echoing the file, but with 0 success.
Try "onLoad"-event o
Labunski wrote:
...
But for example I have a link "index.php?fd=car&c=green"..
How to Request more then one variable if I want to get something like this:
if(isset($_REQUEST['fd','c'])){ // incorrect form. How to write this
correctly?
$vehicle = ($_REQUEST['fd']);
$color = ($_REQUEST['c']);
}
i
Freedomware wrote:
David Obrien wrote:
You need a \n at the end of each line inside the quote
like
echo "\n";
\n is newline
-Dave
...
Do I need to modify the new line code because my echo statements are
enclosed in single quotes (' '), rather than double quotes (" ")?
"newline"-character should
Ryan A wrote:
Hey all,
I have a rather simple need that I am sure a lot of you must have gone
through,
I need a bit of code so that the script can run only at "something.com"..I
am generating
a MD5 license "key" based on that...
Problem that I am having is.. wont I need 2 "keys" to see if the domai
Radwan Aladdin wrote:
... I think there is a wrong with ($LogoutTime - $RightLoginTime'). So please try to fix the error..
...
$query4 = "INSERT INTO accounts (Distance) ('$LogoutTime - $RightLoginTime')";
This line should be:
$query4 = "INSERT INTO accounts (Distance) VALUES ('$LogoutTime -
$R
Jack E. Wasserstein wrote:
There must be something obvious that I am missing but I cant get the php
form handler with the script below to display the vairables. The form which
sends this data has the correct field names. I am also using the get action,
so I can see the variables and values so I kno
Tristan Pretty wrote:
Ok, here's my code that I want to pick a random line from a text file, and
then mail myself 10 times with a different line each time...
But It simply won't work...
Anyone know why?
...
while (2 > $i) {
...
Seems that this "while"-loop will execute only 2 times.. not 10. Mayb
Sheawh wrote:
Can i run PHP using Apache tomcat server??
From Google:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg108708.html
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>??? wrote:
>
> ...
> How can readjust the date function to make each week start with
Sunday, instead of Monday?
>
>
> thank you
http://www.php.net/manual/en/function.strftime.php
Look at conversion specifiers like "%U" and "%W".
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.
Tommi Virtanen wrote:
Hi!
$first_date = 2003-12-01
$end_date = 2004-01-15
while ( $first_date <= $end_date) {
$sql = "INSERT INTO time_table (id, date, person_id) VALUES
(35,$first_date,0)";
$result = mysql_query($sql, $conn);
[next date] WHAT CODE TO HERE
1) Convert
Jon Bennett wrote:
Just to clarify about using move_uploaded_file()
...
function addProduct(){
// Move the uploaded file to the correct location
move_uploaded_file($$_FILES["image"]["tmp_name"],
BASE_DIR."/_img/_products/".$iProductId."_".$fileName);
}
...
function storeBigImage(
[EMAIL PROTECTED] wrote:
Tom, when I switch code to:
putenv('GDFONTPATH=/Macintosh HD/Fonts/');
$font = Macintosh HD/Fonts./'arial.ttf';
...
Parse error: parse error, unexpected T_STRING in
/Users/stephent/Sites/php_mysql_web_dev/chapter_19/make_button.php on line
16
Whattaya make of that?
Becau
[EMAIL PROTECTED] wrote:
Hello all mailing list, I am wondering if it exists a PHP built-in function
to determine the numbers of dimensions of any type of array (indexed, and
associative), thanks for any help, bye.
http://www.php.net/manual/en/function.count.php
--
Pavel a.k.a. Papi
--
PHP General
PAUL FERRIE wrote:
> ...
add new data to the DB
On the links have:
View database
U are outputting those links incorrectly, because resulting HTML
contains "$tablename". Try output those links this way...
View
database
...or this way
echo 'View
database';
?>
--
Pavel a.k.a. Papi
--
PHP Ge
Carles Xavier Munyoz Baldó wrote:
...
May I do it using PHP ?
No, PHP is "unfortunately" server-side. :)
I believe thah I can do it using javascript ... may someone give me a web
address where can I get any help about this iussue ?
Maybe here: http://javascript.internet.com/
--
Pavel a.k.a. Pap
Boyan Nedkov wrote:
Initializing data members ("var"-s) of a class with non-constant values
is completely legal operation in PHP, so I don't think this could be a
reason for the problem.
hmmm... PHP manual says something else...
http://www.php.net/manual/en/language.oop.php
"In PHP 4, only con
Ryan A wrote:
...
>
class ads_DB extends DB_Sql {
var $Host = $MR_Host;
var $Database = $MR_Database;
var $User = $MR_User;
var $Password = $MR_Password;
}
>
I think, Your problem is here. If i remember correctly, then PHP4
doesn't allow to initialize "var"-s with non-constant val
D. Jame wrote:
HI,
Is ther any way to remove HTML tags from Source File with PHP
http://www.php.net/manual/en/function.strip-tags.php
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Christian Ista wrote:
How reset a MySQL auto_incrment field ?
ALTER TABLE table_name AUTO_INCREMENT = value
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
webmaster wrote:
We have a data base in access 2000.
Could you advise which version of php will connect to the access.
Please advise also how can i open the connection .
Look into ODBC-functions:
http://www.php.net/manual/en/function.odbc-connect.php
--
Pavel a.k.a. Papi
--
PHP General Mailing
Victor Spång Arthursson wrote:
Are there any good function to replace special characters, for example
double qoutes, with something that are more html-safe?
For example:
The above is generated with PHP and fetched from a database
(postgresql). I'ld like to have the double qoutes replaced with
Markus wrote:
Hi PHP-gurus :-)
I'd like to count the lines within a file and store the result within a
variable. Every line begins with the char %. Would it be easier to count
these chars and how could I do that?
Thanks for your help. markus
Maybe this way:
$file = file( '/some/file.ext' );
$lines
Bas wrote:
> ...
>
echo ";
>
Seems that U don't have closing double-quote (") in line above.
It should be:
echo "";
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Cosmin wrote:
Is there a way to find out all the properties from an object?
...
>
Try this:
http://www.php.net/manual/en/function.get-object-vars.php
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Michael P. Carel wrote:
When I do this:
I can also see the HTML code, i need to put the output inside the table.
Is there any solution for this?
Just remove first line of Your code or replace 'text/plain' with
'text/html'.
And put inside -tags, as anwsered previously.
--
Pavel a
JJ Harrison\\ wrote:
> I just switched over to Red Hat Linux from Win2k...
>
> Only to find my fav editor only works on windows systems...
>
> could someone suggest a good replacement?
>
>
> --
> JJ Harrison
> [EMAIL PROTECTED]
> www.tececo.com
>
>
>
Try this: http://www.scintilla.org/
Sc
Christian Calloway wrote:
> hey ppl,
>
> I need to create some fairly complex graphs dynamically, and I need to be
> able to specify line, bar, or pie charts. Are there any PHP packages that
> someone could point me to that would fill my needs. Thanks
>
>
>
Maybe this helps a little:
http://f
[EMAIL PROTECTED] wrote:
> I have a form to be used for data submission and to be added to MySQL. How do I
>parse the syntax so that it automatically inserts a HTML line break whenever a
>carriage return is present??
>
> Thanks.
>
> Another PHP newbie,
> Steph
>
>
One possibility is to us
mweb wrote:
> OOPS...
> of couse the query below doesn't work, it doesn't have the table name
> (see below however)
>
>>ISQL_exec_String = "Insert Into (Artista, Opera, Label, Anno, Nazione,
>>CDNow, Autore, AutoreNome, Genere, GenereCustom, SulWeb, Autorizzato,
>>Unico, VALUES ('prova2', 'i
Chris Hemmings wrote:
> Hello!
>
> I'm sure I read this somewhere but I'm just not so sure now. Can you
> produce PHP code in a PHP page and then run it. Kind of like this:
>
> $mycode="echo'Hello';";
>
> # Something here to execute $mycode
> ?>
>
Maybe U need this function:
http://www.p
Iván Toda Caraballo wrote:
> Hello,
>
> I am using the Unix version of PHP, and i would write some information from
> the HTML in a Excel file. I was made this using COM functions in a Windows
> version of PHP and it works. But COM functions are only available on the
> Windows version of P
Oosten, Sjoerd van wrote:
> Hello
>
> I just discovered a netscape 4.7 bug when sending a string. The variable
> cannot contain a space. So a string like this does not work in netscape 4.7
>
> objectdetail.php?Bouw=variable&Object_type=normal&Street_type=normal
> street&.
>
Ray Todd Stevens wrote:
> I ahve been using go-live (4.0) to edit pages containing php scripts.
> this is not really working well. Is there a better way or a better editor
> to use for this?
Try SciTE:
http://www.scintilla.org/
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http:/
Nick Richardson wrote:
>
> ...
>
> Example: I want to pass a string using the URL (blah.php?car=civic_si) then
> search for ##civic_si in the text file, and print everything until it finds
> ##end. So the text file will look like this:
>
> ##civic_si
> This is my content, blah blah
> ##end
>
>
"PHPGalaxy.com" wrote:
>
> ...
>
> A link from one such entry looks like this:
>
>psPhoneEntry.py?firstname=Adam&lastname=Collier&street=3912+Foley+Glen+Cir&city=Fenton&state=MI&zip=48430-3435&phone=8107507456
>
> My matching pattern looks like this:
> $engreg =
>
>'/psPhoneEntry.py?firstname
Jordan Elver wrote:
>
> Hi,
> Could any one explain what this statemnt means?
>
> $i = (!$i)?"0":$i;
>
http://www.php.net/manual/en/language.operators.comparison.php
RTFM :)
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Juraj Hasko wrote:
>
> Hi,
>
> I would like to know if PHP on *nix system can use another SMTP mailer than
>sendmail. On WinNT is PHP indipendent on concrete mail-server. In our company we
> use Symantec's Mail-Gear on Linux (Slackware) and I'd like to setup PHP use it. Is
>it posible ?
http:
Wolfgang Schneider wrote:
>
> ...
>
> Anyone have an idea what may be causing these warnings? It is only
> with code such as " $variable[value]" that these messages show up ...
> and then the code is processed anyways and the page displayed.
> Thank you for any input and help to solve this probl
liufeng wrote:
>
> thanks!
> i want to learn Regular expression.
http://www.php.net/manual/en/pcre.pattern.syntax.php
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
Tom Malone wrote:
>
> I don't think PHP-GTK does that, does it?
>From http://gtk.php.net
Too often PHP is thought of as only an HTML-embedded web scripting
language. However, it is also a very full-featured
general purpose language that can be used for much more. One of the
goals behind this pr
Jack wrote:
>
> Hi people
> this may be off this list a bit, But I want to make the apache webserver believe
>that a "html" file is my server is actually a "php4" file, Is this syntax correct to
>add in the .htaccess file?
>
> AddType application/x-httpd-php4 .html
Just remove the '4' from th
Tribun wrote:
>
> ...hmmm, I would guess there is a way, but I dont know why...
>
> Can I read out the active username, which has just logged in through a
> .htaccess authentication???
>
> Like the access data..
> user: patrick
> pass: linux
>
> can PHP reads out the usersname "patrick" ??
>
Felipe Coury wrote:
>
> Hi,
>
> I am a beginner in PHP and I am trying to do the following: I have a form in
> a page that has 3 fields: email_1, email_2 and email_3. I am trying to send
> e-mail to those people, if the fields are filled. Relevant part of code:
>
> for ($i = 1; $i <= 6; $i++)
Jeremy Morano wrote:
>
> ...
>
> $data=mysql_fetch_row($result);
> $count=$data[0];
>
> echo $count;
>
> Yet the only result I get is the first value of the first
> column.
>
Of course, and $data[1] is the first value of second column, etc.
If you want to get all result, use w
Wee Chua wrote:
>
> Hi all,
> what is the best software to make banner ads? Are there any free or
> evaluation trail available? I want to make the banner ads on my PHP page.
> Thank you.
>
> Calvin Chua
Maybe this helps you a little:
http://freshmeat.net/search/?site=Freshmeat&q=php+banner§ion
> Balaji Ankem wrote:
>
> Hi! dear friends,
>how to create directory through php on linux platform??
http://www.php.net/manual/en/function.mkdir.php
>
>and how to give permissions to the directory.
>
http://www.php.net/manual/en/function.chmod.php
--
Pavel a.k.a. Papi
--
PHP Gener
elias wrote:
>
> What is the '===' ?
>
http://www.php.net/manual/en/language.operators.comparison.php
--
Pavel a.k.a. Papi
--
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 admin
Brad Wright wrote:
>
> Hi all,
> I have a situation where I am adding a new row to a (mySQL) table. One of
> the fields in table is auto-incrementing. When I add a new row, I would like
> to return the value of the auto-incrementing field (named 'Number') as
> $Number for the new row.
>
> Can a
Mesut Tunga wrote:
>
> Hi All,
>
> a for statment like below has been worked lowe php versions:
>
> for ( $idx = "01"; $idx <= 12; $idx++ )
> {
>echo " $idx\n";
> }
>
> like 01, 02, 03, 04, ... 12
>
> but same statment on 4.0.6 version, it writes
>
> 01, 2, 3, 4, ... 12
>
> what
Andreas Skarin wrote:
>
> I'm just starting to learn PHP and it's going to
> take a while before I can create a really good
> script to password protect a section of my site,
> with a good admin control center to manage my
> user's accounts. Therefore I'm asking for
> recommendations on a good re
> Jon Yaggie wrote:
>
> quickly can some one tell me if time() return server or usersystem
> time?
>
Server time.
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact th
"ryan.barnett1" wrote:
>
> Hey All,
>
> Does anyone know where I can find a nice PHP chat room script?
>
> ...
>
Have you tried this site:
http://freshmeat.net/search/?q=php+chat
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTE
aquariuz wrote:
>
> Hi,
> Is it possible to execute PHP stored in a MySQL-database?
> If so, how to do it?
>
> In the example below I store "Hello world!" in a database, and next I
> echo it. "Hello world!" is printed on the screen.
>
> But how to
> * store PHP-code in a database
> * and execut
Matthew Ralston wrote:
>
> I've got a date stored in a MySQL database in a "DATE" field, so it is
> stored as "2001-05-21". How do I convert that into a more friendly date like
> "21 May 2001" or even "21st May 2001" for display on a web page?
>
> I've tried
>
> print date("jS F Y", $dbtable[da
Chris Lee wrote:
>
> Jason,
>
> Sorry for newbie question, how I compile MySQL from SRPM?
> I know how to compile from source tar bar but not form SRPM.
>
> Simple step to show how would be nice.
>
rpm --rebuild .src.rpm
And compiled binaries will be under /usr/src/RPM/RPMS/.
(Talking about M
Andrew Kirilenko wrote:
>
> Hello!
>
> Sorry for offtopic.
>
> I'm developing PHP page for the displaying some kind of statistic.
> It displays graphics for the selected user. Pictures updates every 5 minutes
> by external program. I've form with submit button. If I press this button
> with dif
"[EMAIL PROTECTED]" wrote:
>
> I've got two functions that return data in an array. I need to compare the
> individual elements of one array against the elements of another, and do
> something within an if-else statement.
>
> ...
>
If i didn't misunderstood Your question, then this double-loop
Jamie Saunders wrote:
>
> ...
>
> Right, you still with me? What I'd like to know is how to validate a text
> field in an HTML form to make sure it only contains numbers.
>
> ...
>
Try this:
Hope this helps.
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To un
Daniel BI wrote:
>
> Did anybody have the same error?
>
> I have this simple script:
>
> ===
> session_start() ;
> ?>
>
> ENCTYPE="multipart/form-data" ACTION="another_script.php">
>
>
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
"Mark Lo (3)" wrote:
>
> Hi,
>
> I would like to know how many colors can html recongized in WORD such as
> orange.. red.. blue..
>
> eg. Blue
>
> where can I find out the sources of how many color can html recrongized in
> word. and what wording should I use..
Maybe this link helps
"Boget, Chris" wrote:
>
> Unless I'm missing something, I've looked all over the
> PHP site for a link to PEAR but have been unable to find
> one (including in the PEAR section of the manual, where
> you would think it would be...).
> Could someone please provide a link?
>
> Chris
http://www.ph
Nilesh Parmar wrote:
>
> Hi
>Does anyone know how many keywords does PHP have.And where can I find
> them ?
>
You can find them here:
http://www.php.net/manual/en/reserved.php
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTE
indrek siitan wrote:
>
> Hi,
>
>$value=0;
> if ($value=="NULL")
> echo "Value is NULL!";
> else
> echo "Value is not null.";
> ?>
>
> output: Value is NULL!
>
> is it a bug or expected behaviour? tested it on 4.0.4pl1.
> i got around it by using strcasecmp(), but just wondering
Jon A wrote:
>
> ...
>
> print "";
> break;
>
> ...
> print "";
> break;
>
> - this will let it parse, but it won't do anything with the html.
>
> can somebody help me??
>
Try this:
print '';
--
Pavel
Darren Ward wrote:
>
> ...
>
> The file looks like:
>
>
>
> Any ideas on what i should be looking at or for?
>
Try phpinfo().
:)
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Jan Grafström wrote:
>
> Hi!
> I am trying to change a filename this is my php:
> change $filename = "yourfile.php3.xml";
> to $filename = "yourfile2.php3.xml";
> ?>
> It doesn´t work do I need some more code to get it working, something
> like fopen?
>
> Thanks for any help.
>
> Regards
>
>
Brandon Orther wrote:
>
> Hello,
>
> I am trying to get .phtml to work for php files. How would I do this?
If you have Apache, then following line in httpd.conf should help:
AddType application/x-httpd-php .php .php3 .phtml
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.ph
Don wrote:
>
> Hi,
>
> I'm in a quandary here. I have a form which contains sever tables each
> containing similar fields. The number of tables are dynamic based on
> vales I retrieve from a database. Each table has the following fields:
>
> ...
>
Maybe this approach is simpler.
If you cr
[EMAIL PROTECTED] wrote:
>
> Hi,
>
> Just wondering if anyone knows of any links to information relating to PHP vs
> JSP where PHP is my language of choice and another developer is recommending
> JSP but I know nothing about JSP to help me convince the buyer that PHP is a
> better choice.
> ...
John Vanderbeck wrote:
>
> I'm having a problemin Netscape, any of my echo statements that use
> $PHPSELF, netscape isn't resolving $PHPSELF, but properly resolving all the
> other vars. There are several different types of echo statements, but here
> is a sample:
>
> echo '',
> $subcategor
Jamie wrote:
>
> ...
>
> ";
> $day = (date ("d"));
> $daysinmonth = (date("t"));
> for ($i=00;$i<$daysinmonth;$i++){
> if ($i == $day) {
>echo("$i\n");
> } else {
> echo("$i\n");
>}
> }
>
Scott Fletcher wrote:
>
> ...
>
> What are the better way to see the data in the array?
>
Maybe var_dump().
http://www.php.net/manual/en/function.var-dump.php
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
David Banning wrote:
>
> I am working with php-mysql
> and am inserting into mysql using a NULL value,
> which allows mysql to auto-insert (increment)
> a number - how could I find out what the value was
> mysql inserted, say on the next line of code after the insert?
http://www.php.net/manual/e
Nicklas af Ekenstam wrote:
>
> Hi!
>
> I have an array that looks kinda like this:
>
> NAMEADDRESS
> John DoeSome Street 1
> Jane DoeAnother Street 2
> Bill Gates Helsinki 666
>
> How do I sort this array based on NAME? ADDRESS?
http://www.php.net/manual/en/fu
David Tandberg-Johansen wrote:
>
> Hello!
>
> Could anyone give me an direction where I can find information something
> like "session for dummies"!
> It's not funny anymore. I don't have anymore hair left :-]
http://www.zend.com/zend/tut/session.php
--
Pavel a.k.a. Papi
--
PHP General
Dhaval Desai wrote:
>
> ...
>
> for($i=1; $i<=$recepients; $i++)
> {
> echo "" ."";
Maybe this line should be:
echo "";
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To c
"Leon Mergen, BlazeNetwork" wrote:
>
> ...
>
> $string = eregi_replace(">:(","width=\"15\" height=\"15\"",$string);
>
> What is wrong with this? What can I do to fix it?
>
Use this pattern: ">:\("
Point is, you must escape "(" here, 'cause it's metacharacter in regexp.
Hope this helps.
--
"Markus H. Maussner" wrote:
>
> hi..
>
> ..i am curious if theres anny linux (x, KDE, Gnome) php editor with syntax
> highliting and this things...
>
bluefish is quite nice.
http://bluefish.openoffice.nl/
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
80 matches
Mail list logo