[PHP] Re: Need direction on PHP-CLI MUD Server

2004-09-02 Thread Pavel Jartsev
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

[PHP] Re: Problem when scaling Jpeg images with libgd

2004-05-20 Thread Pavel Jartsev
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

Re: [PHP] How to...

2004-04-06 Thread Pavel Jartsev
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

[PHP] Re: How to Request?

2004-04-06 Thread Pavel Jartsev
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

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Pavel Jartsev
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

[PHP] Re: locking to domain

2004-01-30 Thread Pavel Jartsev
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

[PHP] Re: Hope any body can fix this!!!

2004-01-28 Thread Pavel Jartsev
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

[PHP] Re: pgp form handler will not display data

2003-12-23 Thread Pavel Jartsev
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

[PHP] Re: Inserting function into mail()???

2003-12-17 Thread Pavel Jartsev
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

[PHP] Re: can tomcat server run PHP??

2003-12-12 Thread Pavel Jartsev
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

[PHP] Re: question on which day is the first day of the week

2003-12-11 Thread Pavel Jartsev
>??? 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.

[PHP] Re: Generate automatic list of dates

2003-12-02 Thread Pavel Jartsev
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

Re: [PHP] file uploads

2003-12-01 Thread Pavel Jartsev
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(

Re: [PHP] Telling GD2 Where Fonts Are

2003-11-28 Thread Pavel Jartsev
[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

Re: [PHP] Is there a php built-in function to determine the number of dimensions of the array?

2003-11-26 Thread Pavel Jartsev
[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

Re: [PHP] setting a global var so that all pages can see var

2003-11-17 Thread Pavel Jartsev
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

Re: [PHP] PHP browser windows control.

2003-11-17 Thread Pavel Jartsev
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

Re: [PHP] include/require not allowed in classes?

2003-11-17 Thread Pavel Jartsev
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

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Pavel Jartsev
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

Re: [PHP] Remove HTML TAGS

2003-11-13 Thread Pavel Jartsev
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

Re: [PHP] Reset auto_increment field

2003-11-11 Thread Pavel Jartsev
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

Re: [PHP] About php

2003-11-10 Thread Pavel Jartsev
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

Re: [PHP] replace special chars

2003-11-05 Thread Pavel Jartsev
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

Re: [PHP] Count lines or chars

2003-10-17 Thread Pavel Jartsev
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

Re: [PHP] Error in creating BTML(BT Markup Language)

2003-10-13 Thread Pavel Jartsev
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

Re: [PHP] Object and properties

2003-10-13 Thread Pavel Jartsev
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

Re: [PHP] ps command in php

2003-10-06 Thread Pavel Jartsev
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

Re: [PHP] Linux PHP editor

2002-08-09 Thread Pavel Jartsev
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

Re: [PHP] graphing packages

2002-04-15 Thread Pavel Jartsev
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

Re: [PHP] Parsing syntax to add a HTML line break

2001-12-18 Thread Pavel Jartsev
[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

Re: [PHP] Partial answer to "FOLLOW UP on "column names not liked by odbc/php/access"

2001-12-05 Thread Pavel Jartsev
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

Re: [PHP] Dynamic PHP

2001-12-05 Thread Pavel Jartsev
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

Re: [PHP] Excel and PHP in Unix

2001-11-30 Thread Pavel Jartsev
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

Re: [PHP] %20

2001-11-14 Thread Pavel Jartsev
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&. >

Re: [PHP] editor for working with php

2001-10-26 Thread Pavel Jartsev
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:/

Re: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Pavel Jartsev
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 > >

Re: [PHP] preg_match_all...grrrr!!!

2001-10-22 Thread Pavel Jartsev
"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

Re: [PHP] Statement Confusion

2001-09-06 Thread Pavel Jartsev
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

Re: [PHP] PHP & sendmail

2001-08-24 Thread Pavel Jartsev
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:

Re: [PHP] problem with constants

2001-08-24 Thread Pavel Jartsev
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

Re: [PHP] who can give me a article about begining Regular expression?

2001-08-22 Thread Pavel Jartsev
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

Re: [PHP] PHP on client-side

2001-08-16 Thread Pavel Jartsev
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

Re: [PHP] Addtype command in htaccess

2001-08-16 Thread Pavel Jartsev
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

Re: [PHP] .htaccess username

2001-08-16 Thread Pavel Jartsev
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" ?? >

Re: [PHP] Eval error

2001-08-16 Thread Pavel Jartsev
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++)

Re: [PHP] Select

2001-08-14 Thread Pavel Jartsev
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

Re: [PHP] Php page

2001-08-09 Thread Pavel Jartsev
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

Re: [PHP] how to create directory through php on linux platform??

2001-08-09 Thread Pavel Jartsev
> 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

Re: [PHP] the triple equal sign?

2001-07-16 Thread Pavel Jartsev
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

Re: [PHP] getting auto-incrementing fields

2001-07-12 Thread Pavel Jartsev
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

Re: [PHP] for() problem on php-4.0.6

2001-07-09 Thread Pavel Jartsev
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

Re: [PHP] Need recommendation: good user management system (PHP/MySQL)

2001-06-20 Thread Pavel Jartsev
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

Re: [PHP] time

2001-06-20 Thread Pavel Jartsev
> 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

Re: [PHP] Building a Chat Room

2001-05-24 Thread Pavel Jartsev
"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

Re: [PHP] Executing PHP stored in MySQL-database?

2001-05-24 Thread Pavel Jartsev
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

Re: [PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Pavel Jartsev
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

Re: [PHP] Recompiling PHP with MySQL

2001-05-22 Thread Pavel Jartsev
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

Re: [PHP] Refresh problems

2001-05-17 Thread Pavel Jartsev
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

Re: [PHP] Tough comparison problem.

2001-04-26 Thread Pavel Jartsev
"[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

Re: [PHP] simple form validation

2001-04-26 Thread Pavel Jartsev
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

Re: [PHP] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?

2001-04-25 Thread Pavel Jartsev
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

Re: [PHP] How many color can html recongize in Word.

2001-04-19 Thread Pavel Jartsev
"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

Re: [PHP] PEAR

2001-04-16 Thread Pavel Jartsev
"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

Re: [PHP] How may :)

2001-03-29 Thread Pavel Jartsev
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

Re: [PHP] bug or feature?

2001-03-14 Thread Pavel Jartsev
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

Re: [PHP] xml parsing

2001-03-14 Thread Pavel Jartsev
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

Re: [PHP] Newbie: Can't find function error.

2001-03-05 Thread Pavel Jartsev
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

Re: [PHP] help change filename.

2001-02-22 Thread Pavel Jartsev
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 > >

Re: [PHP] Making .phtml an extension

2001-02-21 Thread Pavel Jartsev
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

Re: [PHP] Accessing variables from a form

2001-02-21 Thread Pavel Jartsev
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

Re: [PHP] PHP vs JSP

2001-02-13 Thread Pavel Jartsev
[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. > ...

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread Pavel Jartsev
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

Re: [PHP] Outputting a 2 digit number < 10

2001-01-25 Thread Pavel Jartsev
Jamie wrote: > > ... > > "; > $day = (date ("d")); > $daysinmonth = (date("t")); > for ($i=00;$i<$daysinmonth;$i++){ > if ($i == $day) { >echo("$i\n"); > } else { > echo("$i\n"); >} > } >

Re: [PHP] How do I see the data in list()?

2001-01-25 Thread Pavel Jartsev
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

Re: [PHP] mysql auto increment question

2001-01-24 Thread Pavel Jartsev
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

Re: [PHP] Sorting an array

2001-01-18 Thread Pavel Jartsev
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

Re: [PHP] SESSIONS

2001-01-18 Thread Pavel Jartsev
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

Re: [PHP] is 1 a Variable...Discoverd it just now...

2001-01-16 Thread Pavel Jartsev
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

Re: [PHP] strange error

2001-01-12 Thread Pavel Jartsev
"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. --

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Pavel Jartsev
"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