[PHP] ZEND_SET_SYMBOL compilation error

2003-03-12 Thread Joe Wong
Hi, I am writing a PHP extension on Win32. I put a ZEND_SET_SYMBOL in the php_init_xxx_globals() and it failed to compile under Win32 using VC++ 5.0, the error I got: Y:\php-4.3.0\ext\wmcphp\wmcphp.c(138) : error C2065: 'tsrm_ls' : undeclared identifier Which corresponds to:

[PHP] Re: ZEND_SET_SYMBOL compilation error

2003-03-12 Thread Joel Colombo
might want to post this to the developers group. php.dev Joel Joe Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am writing a PHP extension on Win32. I put a ZEND_SET_SYMBOL in the php_init_xxx_globals() and it failed to compile under Win32 using VC++ 5.0, the error I

[PHP] Making a Loop.

2003-03-12 Thread Philip J. Newman
I have this code to make this form list $x amount of times. for ($i = 1; $i = $number; $i++) { echoselect name=\$number\ size=\1\; // LIST ALL PRODUCTS IN DATABASE. $sql = SELECT * FROM products ORDER BY productCode ASC; $sql_result = mysql_query($sql,

Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Chris Hewitt
jiahuo xiao wrote: ?phpinfo();?,it show many tables,it means I config correctly.but why when I post pamameter to an action page,all the pamaeter which I get is blank that is .so the action page run incorrectly,how could I do? thank you for replying me It sounds as though you have

[PHP] Weird slowdown using complex functions in a loop

2003-03-12 Thread pgcd
Hi, I'm trying to write a script to do some basic XML validation - nothing fancy, basically I just close open tags and check the arguments. The script runs fine, except that, when I use it in a loop (I need to validate roughly 200.000 posts), it gets progressively slower - like, the first ten

RE: [PHP] Making a Loop.[Scanned]

2003-03-12 Thread Michael Egan
Philip, I might be missing something but just looking at the top few lines of your code the $number variable has no value. The loop will run on howver many times corresponds to this value - with the value being null it's not going to run. You'll need to pass in a value from elsewhere.

Re: [PHP] Making a Loop.[Scanned]

2003-03-12 Thread Philip J. Newman
assuming the value is 10, I stall can't get it to work - Original Message - From: Michael Egan [EMAIL PROTECTED] To: Philip J. Newman [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:29 PM Subject: RE: [PHP] Making a Loop.[Scanned] Philip, I might be missing

Re: [PHP] Making a Loop.

2003-03-12 Thread Larry_Li
Where is $number assignment? Because $number is ZERO, your code will not run any statements in loop statement. Larry ---

Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Chris Hayes
At 03:56 12-3-03, you wrote: web master engineer: recently I encounter a problem as follow ,I want to ask you My system is windows xp sp1, now I set up Apache server V1.3.27 as localhost server and download PHP4.3,I have configured PHP as SAPI Module.it can work correctly as common php

Re: [PHP] Making a Loop.[Scanned]

2003-03-12 Thread Hugh Danaher
echoselect name=\$number\ size=\1\; // in this statement you are asking that a number be a variable in php and that is not permitted. try: for ($i=0;$i=10;$i++) { echo select name=\var_name[$i]\ ; // this way your select name is var_name[1] and not 1 also, echo option

[PHP] what problem in this sql

2003-03-12 Thread Alawi
SELECT type_id, type_name, cont_id, type_id, cont_title, cat_id, cat_name FROM cont_data, cont_cats, cont_types WHERE contdata.cont_id = $cont_id AND cont_data.type_id = cont_types.type_id AND cont_data.cat_id = cont_cats.cat_id - Do you Yahoo!? Yahoo!

[PHP] PHP Books

2003-03-12 Thread Chris Blake
Greetings learned PHP(eople), Can anyone offer comment on the following books on PHP. I`m in the early stages of PHP and am looking for a suitable guide to begin with. = Sams Teach Yourself PHP MYSQL and Apache in 24 Hours Publisher: Sams

[PHP] Re: what problem in this sql

2003-03-12 Thread Joel Colombo
when using multiple tables u must specify where the fields u want are coming from too. also the first piece of your WHERE has contdata NOT cont_data. i just slapped the cont_data.* to all your field names u may want those fields from different tables SELECT cont_data.type_id,

Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Justin French
on 12/03/03 7:40 PM, Chris Hewitt ([EMAIL PROTECTED]) wrote: jiahuo xiao wrote: ?phpinfo();?,it show many tables,it means I config correctly.but why when I post pamameter to an action page,all the pamaeter which I get is blank that is .so the action page run incorrectly,how could I do?

[PHP] Re: what problem in this sql

2003-03-12 Thread Joel Colombo
oh and i just noticed u want to select the 'type_id' twice... i assume from each table SO u need to... SELECT table1.type_id AS t1_type_id, table2.type_id AS t2_type_id FROM t1, t2 use the 'AS' function it helps with a lot of headache later... trying to figure out y u get the wrong index ! Joel

[PHP] date check

2003-03-12 Thread Fredrik
Hi I want to check if $var 14 days or $var 14 days ($var = $date2 - $date1) $date1 = 2003-01-16; $date2 = 2003-03-16; How can i check this? Are there any functions for this or do i have to make one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Installation problem

2003-03-12 Thread Frankie Li
Hi there, I just installed latest Apache.1.3.27 and PHP.4.3.1 on my Linux box with redhat 7.0. Both installation are OK. but when I restart the httpd server again, some error exists. here is the message. Q.T.E Starting httpd: Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: API

Re: [PHP] PHP Books

2003-03-12 Thread Petre Agenbag
Hi Chris The first book, Teach Yourself PHP and MySQL in 24 Hrs: I got that one myself, but it tends to gather dust nowadays... It was very useful in the beginning with learning the basix syntax etc, but I quickly outgrew it, and rarely use it at all, not even for reference. I got the book

[PHP] storing html pages in a database

2003-03-12 Thread Wilbert Enserink
Hi all, for reasons I'm thinking of storing complete HTML pages in a database. lets' say a HTML file size is about 20kb. Are there any restrictions i doing this? Is this 20kb alot for a mysql database, does it become slow? Should I save the file as binary data rather the ASCII?? Any tips

[PHP] what the hell in this sql

2003-03-12 Thread Alawi
SELECT * FROM cont_types, cont_data, cont_cats WHERE cont_data.cont_id = $cont_id AND cont_types.type_id = cont_data.type_id AND cont_cats.cat_id = cont_data.cat_id its not work , give me 1064 - Do you Yahoo!? Yahoo! Web Hosting - establish your

RE: [PHP] what the hell in this sql

2003-03-12 Thread George Pitcher
Firstly, This isn't a php question and should be directed at a sql list or to php-db Have you lokked at erro 1064 in the manual? What does it say? There are several things that you should do before coming to the list with a problem. Without checking I suspect that you need to specify a 'JOIN'

[PHP] Threading objects

2003-03-12 Thread Kris
I want to be able to thread objects. I'm not really sure at all where to start. but I want a script where multiple objects are being processed at the same time. I have an example php script ? $a = new sleeper(); $b = new sleeper(); $c = new sleeper(); $a-sleepFor(10); $b-sleepFor(5);

[PHP] two questions about usning session.

2003-03-12 Thread Joe Wong
Hello, I have two questions about using sessions in PHP. Firstly, I use session to remeber the username and a session ID for the given user. When I hit the BACK button on the browser (IE), it always set that my page is expired and ask me to click the refresh button. How to prevent this from

Re: [PHP] Threading objects

2003-03-12 Thread W. Enserink
i'm not sure what you want. But you have created objects here in $a,$b and $c. If you want to order them in a special way you have to write the functionality of course. I think you have to do this before the object is created because you define the variables 10,5,1 before the objects are created.

RE: [PHP] date check

2003-03-12 Thread Niklas Lampén
$FourteenDays = 86400 * 14; $var = $FourteenDays - (strtotime($date2) - strtotime($date1)); Now if $var is 0, 14 days has not passed. Niklas -Original Message- From: Fredrik [mailto:[EMAIL PROTECTED] Sent: 12. maaliskuuta 2003 12:06 To: [EMAIL PROTECTED] Subject: [PHP] date check

Re: [PHP] Threading objects

2003-03-12 Thread Kris
Hi Wilbert Thanks for responding. However I am completely aware of how objects work as I come from a Java back ground. If you are familiar with Java at all I'm looking for something like the PipedOutputStream, PipedInputStream and Thread classes I want the processes objects to be threaded,

Re: [PHP] Threading objects

2003-03-12 Thread Mincu Alexandru
I think that he wants a function that acts like steTimeout(..) in JavaScript ex: code setTimeout('alert('tst2')',5000); setTimeout('alert('tst1')',4000); /code When you exec this code in js the first alert that is executed is tst1 and then tst2. I don't know if you can do this in php without using

Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Chris Hewitt
Justin French wrote: on 12/03/03 7:40 PM, Chris Hewitt ([EMAIL PROTECTED]) wrote: It sounds as though you have register_globals off in php.ini. Either turn it on, or better still, get at your variables on your action page with $GET['var'] for get method or $POST['var'] for post variables. Look

Re: [PHP] PHP Books

2003-03-12 Thread Chris Hewitt
Petre Agenbag wrote: There is also a new book by Rasmus Lerdorf and it's cheaper than the book I mention, unfortunately I don't have insight into that book, and what would the guy that wrote PHP know about it anyway heh? ;p Its Programming PHP by Rasmus Lerdorf and Kevin Tatroe, O'Reilly, March

Re: [PHP] Threading objects

2003-03-12 Thread Mirek Novak
Kris wrote: I want to be able to thread objects. I'm not really sure at all where to start. but I want a script where multiple objects are being processed at the same time. I have an example php script ? $a = new sleeper(); $b = new sleeper(); $c = new sleeper(); $a-sleepFor(10); $b-sleepFor(5);

Re: [PHP] two questions about usning session.

2003-03-12 Thread Justin French
on 07/03/03 5:45 PM, Joe Wong ([EMAIL PROTECTED]) wrote: Hello, I have two questions about using sessions in PHP. Firstly, I use session to remeber the username and a session ID for the given user. When I hit the BACK button on the browser (IE), it always set that my page is expired and

RE: [PHP] Re: [PHP-DB] How to Connect remote DB server?

2003-03-12 Thread Niklas Lampén
Possibly the db-server is accepting only localhost connections. Niklas -Original Message- From: Patrick LOK [mailto:[EMAIL PROTECTED] Sent: 12. maaliskuuta 2003 14:39 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Re: [PHP-DB] How to Connect remote DB server? There is no

[PHP] Another questions about usning session.

2003-03-12 Thread André Cupini
* People, sorry my ugly English. I´m Brazilian... I am looking for learning more about sessions... I´m test this code below don´t work with me My php version is 4.1.2. Anybody have a complete example code of how use sessions? Another doubt: Sessions use cookies? What the advantage in use

Re: [PHP] Weird slowdown using complex functions in a loop

2003-03-12 Thread Jimmy Brake
where are you storing the information that you are cleaning once it is cleaned? are you appending it to a variable in the script? On Wed, 2003-03-12 at 00:26, pgcd wrote: Hi, I'm trying to write a script to do some basic XML validation - nothing fancy, basically I just close open tags and

Re: [PHP] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Patrick LOK
Do u meant PHP can only access localhost DB? ./pl Clint Tredway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PHP can access any database that the server that PHP is running on can get to and has the correct permissions to get to the database. Clint -Original Message-

RE: [PHP] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Clint Tredway
No, PHP can access a database on another server on the same network or across the internet. The web server that PHP is running just has to be able to see the server that the database is on. Clint -Original Message- From: Patrick LOK [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12,

[PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Patrick LOK
IT IS ABOUT THE DESIGN AND DEVELOPMENT OF PHP Derick Rethans [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Stop posting user questions to the php-dev and php5-dev list, as I explained before. Derick On Wed, 12 Mar 2003, Patrick LOK wrote: Is PHP designed (have the

[PHP] Hacker problem

2003-03-12 Thread Pag
Been having some hacker problems on my site, and a simple one: I have a shoutbox, a simple form with name and text that adds lines to the database. I do checks for insults, too long words, tags, etc, but its still possible to circumvent those checks by adding the data on the url instead of

[PHP] Does comments slow down processing a lot

2003-03-12 Thread Mathieu Dumoulin
I'm programming large web solutions here and a new programmer has given me a warning about how much comments i put in my code and said that it could probably lower effiency when parsing and executing the php code in my documents. So my questions are: Does putting huge amount of comments in a

RE: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Clint Tredway
No its not. PHP does the same thing that ASP, ColdFusion, or JSP does in the way of connecting to a databse. They can all access a database that is not on the localhost. It is not about the design and development of PHP. -Original Message- From: Patrick LOK [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] Hacker problem

2003-03-12 Thread Leif K-Brooks
You're checking with javascript, correct? If so, try checking server-side too. Pag wrote: Been having some hacker problems on my site, and a simple one: I have a shoutbox, a simple form with name and text that adds lines to the database. I do checks for insults, too long words, tags,

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
Yes, theoretically...you could require it to be posted data. In order to do this you would have to make sure registered_globals is set to off in your php.ini and then for each variable posted from your form you will need to do something like this $name=$_POST[name]; This will only post

RE: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Niklas Lampén
You said before you got a odbc connection to your remote db = remote connections are possible. The problem is in: a) db configuration b) your way of trying to connect to db c) your firewall d) remote firewall e) all above Niklas -Original Message- From: Patrick LOK [mailto:[EMAIL

Re: [PHP] Hacker problem

2003-03-12 Thread Leif K-Brooks
That's can still easily be spoofed. The only safe way is to validate the form server-side. [EMAIL PROTECTED] wrote: Yes, theoretically...you could require it to be posted data. In order to do this you would have to make sure registered_globals is set to off in your php.ini and then for each

Re: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Patrick LOK
I tried mssql_connect pgsql_connect to remote db but never connected! I have searched thru. the manual and QA but can't find an answer. Any tips? ./pl Clint Tredway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] No its not. PHP does the same thing that ASP, ColdFusion, or JSP does

RE: [PHP] Hacker problem

2003-03-12 Thread Dan Hardiker
This could still be faked easily with a telnet session and some fake http headers. Your only way of making sure is to create a serverside script which filters the data. Yes, theoretically...you could require it to be posted data. In order to do this you would have to make sure

RE: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Clint Tredway
Like the previous poster said.. its in you configuration.. can your webserver actually see(connect to in another way) to the server where your database is? If not, then you will have to figure that out first. Clint -Original Message- From: Patrick LOK [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Patrick LOK
Well... just what _connect required! servername, userid, password. What else? any tips? ./pl Niklas lampén [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You said before you got a odbc connection to your remote db = remote connections are possible. The problem is in: a) db

RE: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Clint Tredway
I am willing to help you.. what kind of database are you trying to connect to? -Original Message- From: Patrick LOK [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 7:48 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access

[PHP] Re: PHP Books

2003-03-12 Thread rotsky
Don't know any of those but the books I have experience with so far (as a newbie with less than 2 weeks' PHP experience and next-to-no programming experience generally): 'Programming PHP' - Rasmus Lerdorf Kevin Tatroe (O'Reilly) - straight from the horse's mouth, as it were. Excellent book which

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
How would one go about doing this? -Original Message- From: Dan Hardiker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:44 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Hacker problem This could still be faked easily with a telnet

RE: [PHP] Hacker problem

2003-03-12 Thread Adam Voigt
Why don't you just do the swear filtering on shoutb.php, or wherever it's actually being inserted into the database? On Wed, 2003-03-12 at 08:51, [EMAIL PROTECTED] wrote: How would one go about doing this? -Original Message- From: Dan Hardiker

Re: [PHP] Hacker problem

2003-03-12 Thread Leif K-Brooks
if(stristr($text,'badword') or stristr($text,'badword2') or strlen($text) maxlength){ die('Invalid!'); } [EMAIL PROTECTED] wrote: So how could you validate it server-side? -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:41 AM To:

Re: [PHP] what the hell in this sql

2003-03-12 Thread Martin Mandl
Nevertheless the $ looks weard ... George Pitcher wrote: Firstly, This isn't a php question and should be directed at a sql list or to php-db Have you lokked at erro 1064 in the manual? What does it say? There are several things that you should do before coming to the list with a problem.

Re: [PHP] two questions about usning session.

2003-03-12 Thread Joe Wong
Hi Justin, For the first problem, I found this option in PHP.INI do the trick: ; Set to {nocache,private,public,} to determine HTTP caching aspects ; or leave this empty to avoid sending anti-caching headers. ;session.cache_limiter = nocache session.cache_limiter = The default was set to

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
Swear filtering is easy, I want to know how to make sure the data is coming from MY formI'm just picky like that. :-) -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:55 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP]

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
So we aren't actually validating where the data is coming from, we are just validating the data? -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:57 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Hacker problem

Re: [PHP] Hacker problem

2003-03-12 Thread Leif K-Brooks
That's just not possible. [EMAIL PROTECTED] wrote: Swear filtering is easy, I want to know how to make sure the data is coming from MY formI'm just picky like that. :-) -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:55 AM To: [EMAIL

RE: [PHP] Hacker problem

2003-03-12 Thread Adam Voigt
Well you can check the referer, but like someone else said, that can be faked, you can probably in Apache or somewhere disallow (if it's not by default) external post requests (ie from servers other then your own), and just make sure your using $_POST[message] instead of $message. On

Re: [PHP] Hacker problem

2003-03-12 Thread Leif K-Brooks
Correct. [EMAIL PROTECTED] wrote: So we aren't actually validating where the data is coming from, we are just validating the data? -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:57 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

[PHP] Re: Another questions about usning session.

2003-03-12 Thread rotsky
As I understand it, PHP sessions use cookies by default. If cookies are disabled, it switches to appending the session id to the URL. The advantage with using sessions is that all this is transparent to you and it therefore requires very little coding. Did you ensure the code below went into a

Re: [PHP] what the hell in this sql

2003-03-12 Thread CPT John W. Holmes
Nevertheless the $ looks weard ... Yeah, it looks weird, too. :) You're probably getting an error because $cont_id doesn't have a value. Show the SQL in context and do some debugging... ---John Holmes... This isn't a php question and should be directed at a sql list or to php-db Have

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
Thanks! That's all I needed to know. -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:04 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Hacker problem That's just not possible. [EMAIL PROTECTED] wrote: Swear

Re: [PHP] two questions about usning session.

2003-03-12 Thread Marek Kilimajer
Session ID is stored in a cookie, and cookies are shared across instances of browser: if you open another window of the same browser, the same cookies are send, so you can have only one session to the same site (and path). To prevent this, you would have to give up cookies and use SID, but I

Re: [PHP] Hacker problem

2003-03-12 Thread CPT John W. Holmes
Who cares where it comes from, just validate it. You can use POST and HTTP_REFERRER (check spelling) to stop lazy people from messing with it if that makes you feel better. ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL

Re: [PHP] Does comments slow down processing a lot

2003-03-12 Thread Marek Kilimajer
They certainly do, but not using them slows down development. But you should care about it, because I believe Zend Optimizer removes them (they are not needed) Mathieu Dumoulin wrote: I'm programming large web solutions here and a new programmer has given me a warning about how much comments i

RE: [PHP] Search for keyword in txt file

2003-03-12 Thread Chris Blake
Greetings, Sorry for the delay in responding to your posting, I have been grappling with your suggestion for a while and still things are not working out. I have included all my code below and seek your advice.. As it stands, the resultant HTML page prints out the content of each file, but

Re: [PHP] Hacker problem

2003-03-12 Thread Mirek Novak
[EMAIL PROTECTED] wrote: Swear filtering is easy, I want to know how to make sure the data is coming from MY formI'm just picky like that. :-) Hi, I've done it via a ticket system - into my form I've added field input type=hidden name=ticket_to_ride value=32-byte long generated ticket -

Re: [PHP] PHP Books

2003-03-12 Thread Chris Blake
Thanks for the reply...I`ll be getting the one by Luke Flemming PHP MySQL Late nights, here we come !! On Wed, 2003-03-12 at 14:25, Chris Hewitt wrote: Petre Agenbag wrote: There is also a new book by Rasmus Lerdorf and it's cheaper than the book I mention, unfortunately I don't

RE: [PHP] Search for keyword in txt file

2003-03-12 Thread Chris Blake
Re my earlier post... I seem to have figured it out by changing the following lines : //=== { $result= `grep -n Started logs/$file` ; echo 'trtdfont size=2a href=/logs/'.$file.'' . $file . '/td/font/a'.

[PHP] Long script execution and its implications?

2003-03-12 Thread Simon Lusted
Hello, I hope this question isn't too vague. I am opening a large csv file (up to 30,000 lines), splitting it out into its elements and then making several INSERT, SELECT queries on my DB. It's a hack and not very elegant (but as a beginner i will try to work on it in the coming weeks) This

[PHP] PDF - PHP (on the fly using templates??)

2003-03-12 Thread Bev
Hi, BACKGROUND I am looking to create a series of Certificates and Brouchures etc and then using the products Print/Acrobat Distiller option save the documents as PDF(with some pre-built in Name1, address1, address2 variables that can be automatically resolved on-the fly using a

Re: [PHP] Threading objects

2003-03-12 Thread Rasmus Lerdorf
All I'm really asking is how do you initiate threading with PHP? A small example would be nice You don't. This is a web scripting language, not Java. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDF - PHP (on the fly using templates??)

2003-03-12 Thread RIVES Sergio SOFRECOM
Hi, maybe looking at this site you could find what you are looking for : FPDF This is a site dedicated to the generation of PDF documents with PHP. HTH Sergio Bev a écrit : Hi, BACKGROUND I am looking to create a series of Certificates and Brouchures etc and then

Re: [PHP] PDF - PHP (on the fly using templates??)

2003-03-12 Thread RIVES Sergio SOFRECOM
maybe the link didn't work... www.fpdf.org sorry RIVES Sergio SOFRECOM a écrit : Hi, maybe looking at this site you could find what you are looking for : FPDF This is a site dedicated to the generation of PDF documents with PHP. HTH Sergio Bev a écrit : Hi, BACKGROUND

Re: [PHP] Encrypting/Compiling PHP Scripts

2003-03-12 Thread Christopher Ditty
There is also Source Guardian. If you need a program that will support an unencrypted configuration file, ie, user definable variables, this one will do it. Ioncube wouldn't last I looked and I can't speak for Zend. I have used this, but the end result has not been favorable. So far, I am

Re: [PHP] Weird slowdown using complex functions in a loop

2003-03-12 Thread pgcd
Actually, the concept is the following: - split the text into a number of elements (tags and text between tags) and put them into an array - fix each element (text and tags) to prevent attributes and entities from breaking the parser - check all the elements to make sure that they are either

[PHP] Query string inconsistency

2003-03-12 Thread Alley Kat Design
Hi - I have a PHP msg board on one domain, and a site on another, the idea is that the board is framed. The PHP msg board pages detect whether they're in the frameset, and if not, pass their URL query string over to the frameset. The frameset then grabs this and writes a frame src tag, thus

Re: [PHP] Help with ereg()

2003-03-12 Thread fLIPIS
No, actually i was wrong about this subject. The correct Regular Expression for this is the following: preg_match_all(/(\?.*?\?)/ims,$text,$source_code); The anterior was greedy, and so it matched the following: ? echo aaa; ?html? echo bbb; ? And now it only takes the text between ? and ?,

[PHP] foro php

2003-03-12 Thread David E.S.V.
hello folks do you know any site where I can download a free php foro to install? thanks David. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foro php

2003-03-12 Thread CPT John W. Holmes
do you know any site where I can download a free php foro to install? wtf is a foro? Ah... gotta love google. In italian it means I pierce, but in spanish it means forum, so I'll assume it's a forum you're looking for instead of some piercing PHP script. phpbb and phorum are two good ones.

[PHP] Array syntax not covered in documentation

2003-03-12 Thread adrian porter
I want to do the following: $u=preg_replace(/[^$chars]/e,'%.unpack(H2, $0)', $u); However, as you know, unpack returns an array. I tried this instead: $u=preg_replace(/[^$chars]/e,'%.(unpack(H2, $0)[])', $u); but that isn't syntactically correct. I know that this is possible to remedy using

[PHP] adodb + oracle 8i

2003-03-12 Thread Gilberto Garcia Jr.
Somebody here use adodb with oracle? I´m triyng to use that, but I´m noting realize how to estabilish a conection with oracle. I´m getting the folowing error: Fatal error: Call to undefined function: ora_plogon() in e:\inetpub\wwwroot\hosted\EnsinoNet\php\adodb\drivers\adodb-oracle.inc.php on

Re: [PHP] foro php

2003-03-12 Thread David E.S.V.
that's it... I just forgot the english word...forum... even it sounds latin origin regards David. On Wed, 12 Mar 2003, CPT John W. Holmes wrote: do you know any site where I can download a free php foro to install? wtf is a foro? Ah... gotta love google. In italian it means I pierce,

Re: [PHP] Array syntax not covered in documentation

2003-03-12 Thread CPT John W. Holmes
I want to do the following: $u=preg_replace(/[^$chars]/e,'%.unpack(H2, $0)', $u); However, as you know, unpack returns an array. I tried this instead: $u=preg_replace(/[^$chars]/e,'%.(unpack(H2, $0)[])', $u); but that isn't syntactically correct. I know that this is possible to remedy

[PHP] google, php-created pages and link farm exclusion

2003-03-12 Thread Chris Hayes (SENSE)
dear list, 1) Currently Google cannot find all pages on my site because most pages are linked through database-generated selection boxes. Most pages have URL's with different query strings after index.php. 2) I have made shortcut links possible such as mydomain.org/page/37 and

Re: [PHP] PHP Books

2003-03-12 Thread John Nichel
I wasn't too impressed with the PHP Bible. I haven't looked at the other two, but if the Sam's book is like the others I've used, I would say that it isn't worth it. I have O'Reilly's Programming PHP book (written in part by Rasmus Lerdorf), and it's pretty good, but I find that the online

Re: [PHP] Array syntax not covered in documentation

2003-03-12 Thread Marek Kilimajer
maybe implode? $u=preg_replace(/[^$chars]/e,%.implode('',unpack(H2, $0)), $u); adrian porter wrote: I want to do the following: $u=preg_replace(/[^$chars]/e,'%.unpack(H2, $0)', $u); However, as you know, unpack returns an array. I tried this instead:

RE: [PHP] foro php

2003-03-12 Thread Barajas, Arturo
Daniel, Look for phpBB, I think it's one of the best, IMHO. -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 -Original Message- From: David E.S.V. [mailto:[EMAIL PROTECTED] Sent: Miercoles, 12 de Marzo de 2003 10:11 a.m. To: fLIPIS

[PHP] how to uploads files

2003-03-12 Thread Luis A
hi every one :) how can i uploads files to my server by php script ? any hand on that i realy apreciate Thanks __ Luis Atala Profetional Web Desinger Facultad de Cultura Fisica Linux User#: 412375 ICQ#: 132736035 Current

[PHP] RE: Calculates time elapsed between two date

2003-03-12 Thread YC Nyon
Hi, I need to get the time/date (ie. 1 day 12 hours 11 min 4sec) between 2 time dates. Can't seem to find any of these functions in the PHP manual. Thanks Nyon --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus

[PHP] Force refresh of graphic - how?

2003-03-12 Thread Mark Wilson
I have a PHP page which in turn calls an image-creating PHP program, like so: ...(calling page: mypage.php).. body IMG SRC=makepic.php?opt1=abcopt2=def /body /html makepic.php does database lookups using the values of opt1 and opt2, then creates a graphic (PNG) using that data and returns

Re: [PHP] Another questions about usning session.

2003-03-12 Thread Marek Kilimajer
Advantage of session is that you can trust the variables you keep in your session. cookies can be spoofed André Cupini wrote: * People, sorry my ugly English. I´m Brazilian... I am looking for learning more about sessions... I´m test this code below don´t work with me My php version is

Re: [PHP] Force refresh of graphic - how?

2003-03-12 Thread Ray Hunter
You can use the meta tags to do a refresh of the browser page... example: meta http-equiv=Refresh content=10; url=New-page.html after content you add the seconds of delay before refresh... More info on the meta tag: http://www.xs4all.nl/~dimaroan/htl/index.html -- Ray On Wed, 2003-03-12 at

Re: [PHP] Another questions about usning session.

2003-03-12 Thread Ray Hunter
But also note that session data can be stolen by other users too... -- Ray On Wed, 2003-03-12 at 10:10, Marek Kilimajer wrote: Advantage of session is that you can trust the variables you keep in your session. cookies can be spoofed André Cupini wrote: * People, sorry my ugly English.

Re: [PHP] RE: Calculates time elapsed between two date

2003-03-12 Thread Leif K-Brooks
strtotime() them, then subtract. YC Nyon wrote: Hi, I need to get the time/date (ie. 1 day 12 hours 11 min 4sec) between 2 time dates. Can't seem to find any of these functions in the PHP manual. Thanks Nyon --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

[PHP] Parsing help needed, regular expression perhaps?

2003-03-12 Thread Jeff Lewis
I am grabbing this page and trying to grab the stats on the page: http://slam.canoe.ca/StatsHKN/BC-HKN-STAT-TORONTOSTAX-R.html The code I had worked just fine before but now that there are players that have multiple lines, it's not working as I'd like it to. Below is the code that worked and I

Re: [PHP] RE: Calculates time elapsed between two date

2003-03-12 Thread Marek Kilimajer
Get timestamp of these dates, subtract them and use math to find out days, hours etc from the difference YC Nyon wrote: Hi, I need to get the time/date (ie. 1 day 12 hours 11 min 4sec) between 2 time dates. Can't seem to find any of these functions in the PHP manual. Thanks Nyon --- Outgoing

RE: [PHP] how to uploads files

2003-03-12 Thread Jon Haworth
Hi Luis, how can i uploads files to my server by php script ? The manual explains this (read the user notes as well, though): http://www.php.net/manual/en/features.file-upload.php Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replace question

2003-03-12 Thread WebDev
- Original Message - From: WebDev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 1:24 AM Subject: Re: [PHP] replace question Hello How could I know recognize a URL in $a $a contains often a URL htp://www.mysite.com but as well more text how is it possible

  1   2   3   >