Re: [PHP] Query result to an array

2002-09-12 Thread Christian Ista
$result = mysql_query(...); while( $t = mysql_fetch_row($result) ){ $array[] = $t; } No. I need a 2 dimensions arrays, each line of this array, is the result of one row of the query and each cell of this row is a field from the select. Example, the query return 2 row and 3

RE: [PHP] Query result to an array

2002-09-12 Thread Martin Towell
$result = mysql_query(...); while( $t = mysql_fetch_row($result) ){ $array[] = $t; } No. I need a 2 dimensions arrays, each line of this array, is the result of one row of the query and each cell of this row is a field from the select. Example, the query return 2 row and

RE: [PHP] frame

2002-09-12 Thread Martin Towell
Sorry, can't help you there. I'm not familiar with swf_* functions Martin -Original Message- From: dinnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 4:59 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] frame anyway thanks before mr martin..^_^ i know to use it if use

[PHP] Date-format

2002-09-12 Thread Tommi Virtanen
Hi! I have web-form, which has field (10 chars), there I enter date (format dd.mm.). Then data saves to database (date-field type is date). So everything works, but not fine. When I enter date in format ex. 31.12.2002 and save form, then I'll check what are in db (there are 2031-12-20).

[PHP] what is wrong?

2002-09-12 Thread Meltem Demirkus
Hi, I want to understand what is wrong with this code?I am trying to understand when an empty inputs come from form and I will then give a warning message.. if($_POST[new_password1] ==) echo empty input; thanks.. meltem -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Query result to an array

2002-09-12 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 12, 2002 01:55, Christian Ista wrote: $result = mysql_query(...); while( $t = mysql_fetch_row($result) ){ $array[] = $t; } No. I need a 2 dimensions arrays, each line of this array, is the result of one row of the

[PHP] question about $_GET, etc

2002-09-12 Thread swade
On my laptop i still have 4.11 apache,linux on it but its just for development. I must be confused about get and post handling. I've been referrencing them in $_GET, etc but I was just working on something and linked to a script by using ?section=duh in the query string,etc Now i thought $duh

[PHP] Session Vars Problem

2002-09-12 Thread Krispi
Hi, I have a problem when registering Session variables. Let me describe. I have 2 files. In the first one initialization is done and some session registering. The second one is my main application. If I call a method from the first file in my main file , variables are not registered. I use

[PHP] Re: what is wrong?

2002-09-12 Thread lallous
try this: if (empty(trim($_POST[new_password1]))) { echo 'Empty!!!'; } Meltem Demirkus [EMAIL PROTECTED] wrote in message 001701c25a2c$4758d4a0$5583@hiborya">news:001701c25a2c$4758d4a0$5583@hiborya... Hi, I want to understand what is wrong with this code?I am trying to understand

RE: [PHP] what is wrong?

2002-09-12 Thread Rudolf Visagie
if ($_POST['new_password1'] == || !isset($_POST['new_password1'])) echo empty input; -Original Message- From: Meltem Demirkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:16 AM To: [EMAIL PROTECTED] Subject: [PHP] what is wrong? Hi, I want to understand what is

Re: [PHP] Date-format

2002-09-12 Thread Jacob Miller
It looks to me like the database is interpreting your date incorrectly. Try changing the format you use to insert, -mm-dd - jacob At 15:11 09/12/2002, Tommi Virtanen wrote: Hi! I have web-form, which has field (10 chars), there I enter date (format dd.mm.). Then data saves to

Re: [PHP] Date-format

2002-09-12 Thread Tommi Virtanen
Well, insert format in wrong, but in Finland enter format is dd.mm., so I cannot use other insert format (it have to do other way). gustavus It looks to me like the database is interpreting your date incorrectly. Try changing the format you use to insert, -mm-dd -- PHP General

[PHP] Trouble on php.net

2002-09-12 Thread Christian Ista
Hello, I use in general the chm help file in English. Today I downloaded the french version (php_manual_fr.chm) but it's not french it's a mix german/english. Downloaded from this page : http://www.php.net/download-docs.php Christian, -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] question about $_GET, etc

2002-09-12 Thread olinux
You need to turn register_globals off in your php.ini file. This is default in php 4.2+ Try this article for a great overview: http://www.webmasterbase.com/article/758/8 olinux --- swade [EMAIL PROTECTED] wrote: On my laptop i still have 4.11 apache,linux on it but its just for

Re: [PHP] Date-format

2002-09-12 Thread Jacob Miller
Why can't you just reformat it before inserting it into the db? $date = 31.12.2002; $parts = split(\., $date); echo $parts[2].-.$parts[1].-.$parts[0]; - jacob At 16:13 09/12/2002, Tommi Virtanen wrote: Well, insert format in wrong, but in Finland enter format is

[PHP] How to change charset in vb

2002-09-12 Thread Mohd_Q
Does anyone know how to add a line describing charset in vbulletin? MQ.

[PHP] Cry for help

2002-09-12 Thread Chad Winger
I need to learn PHP and databases. If I had those skills, I would be so much more succesful with my web designs. What I usually do, is make the html templates, and then hire someone, usually expensively, to do the PHP and MySQL bankend. Unfortunately, my programming skill is ZERO. Ok, maybe not

[PHP] curl_init() ??

2002-09-12 Thread Geoff Lists
Hi, I am using PHP v.4.1.2, CURL v7.7.2 with Apache server on MacOS X 10.1.5 I have a PHP script containing the following: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,http://omitted.com;); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch,

[PHP] user and password for socket connection

2002-09-12 Thread Wilbert Enserink
Hi all, I'm trying to open a socket connection on a client. The server needs a username/password combination for this connection to accept. Does anybody know how to send this with php?? In ASP I use xmlhttp.Open POST,sURL, false, sUser, sPass ,where sUser=myUsername and

Re: [PHP] Cry for help

2002-09-12 Thread Justin French
Dude, take small steps, and try to understand what you're doing rather than jumping in head-on. Do lots of reading and searching. 1. You need an Apache webserver on your local machine. There are many good tutes, pre-compiled .exe's, etc etc on apache.org, and hundreds of tutorials on it

[PHP] Re: Cry for help

2002-09-12 Thread lallous
Hello Chad, I started PHP from a book. I believe a book is a good way to start as it organized and well written to make sure you're progressing chapter by chapter. After that, I read articles and tutorials as I needed to expand my skills. just my 2cents, Elias Chad Winger [EMAIL PROTECTED]

[PHP] Re: curl_init() ??

2002-09-12 Thread lallous
Hello, 1)probably you don't have CURL extension enabled in your php.ini file? try to open php.ini and search for CURL. 2)to achieve a POST via PHP code, look at www.phpclasses.org Elias, Geoff Lists [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I am

[PHP] accessing a property the static way

2002-09-12 Thread Wolfram Kriesing
how can i access a property statically (without creating an object)? is that possible at all? i.e. class foo { var $prop = array('some','defines','are','here'); } $myVar = foo::prop; OR $myVar = foo::prop[0]; how can this be realized? can someone help? is that possible with php? --

[PHP] Re: Cry for help

2002-09-12 Thread John Wards
I started also from a book Begining PHP 4 by wrox. I had a good understanding of programming languages before I started as I had experience of Delphi and some Java. oh and BASIC which I also learned what I was about 6! on a spectrum by any chance? If you have a grasp of programming languages

[PHP] Re: Sending Attachements through php email form

2002-09-12 Thread Craig Donnelly
Edit this to what you need: http://www.evilwalrus.com/viewcode.php?codeEx=546 Regards, Heidi Belal [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I was wondering if anybody could tell me the best way and how to code sending an attachement with an email

[PHP] Re: Cry for help

2002-09-12 Thread Chad Winger
Justin, Thanks for the reply. Funny seeing the word dude again. Havent heard that in quite a while, since moving over here to Italy. :) I hope I didnt come across as thinking I can just learn this in a week or two. I'm bright, but I'm not a genius. I know, and realize that it is a long a

[PHP] Find DPI ing image?

2002-09-12 Thread Johan Holst Nielsen
Hi people... Anyone know a class or a solution so I can find the DPI (dot per inch) of an image? getImageSize do not help me? Any other solutions? Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: user and password for socket connection

2002-09-12 Thread Erwin
$hostname=https://www.url.com;; $port=443; $loginmessage=GET / HTTP/1.0\r\nHost: www.php.net\r\n\r\n; $timeout=30; $fp = fsockopen ($hostname, $port, $errno, $errstr, $timeout); if (!$fp) { echo $errstr ($errno)br\n; } else { fputs ($fp, $loginmessage); while (!feof($fp)) {

[PHP] Re: How do I upgrade my version of PHP?

2002-09-12 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Could you explain what man patch does or is? I haven't updated using a patch before. Thanks. From: [EMAIL PROTECTED] Newsgroups: php.general Date: Wed, 11 Sep 2002 23:14:55 +0200 To: [EMAIL PROTECTED] Subject: Re: How do I

[PHP] Re: what is wrong?

2002-09-12 Thread David Robley
In article 001701c25a2c$4758d4a0$5583@hiborya, mdemirkus@momentum- dmt.com says... Hi, I want to understand what is wrong with this code?I am trying to understand when an empty inputs come from form and I will then give a warning message.. if($_POST[new_password1] ==) echo empty

RE: [PHP] Cry for help

2002-09-12 Thread Scott Houseman
Hi Chad. Some really excellent places to start: http://www.onlamp.com/php/ http://www.phpbuilder.com/ http://www.devshed.com/Server_Side/PHP http://www.zend.com/zend/tut/ Good luck! Regards -|Scott -Original Message- From: Chad Winger [mailto:[EMAIL PROTECTED]] Sent: Thursday,

[PHP] Re: what is wrong?

2002-09-12 Thread Erwin
Meltem Demirkus wrote: Hi, I want to understand what is wrong with this code?I am trying to understand when an empty inputs come from form and I will then give a warning message.. if($_POST[new_password1] ==) echo empty input; And as final addition, you probably have to use

[PHP] Re: curl_init() ??

2002-09-12 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi, I am using PHP v.4.1.2, CURL v7.7.2 with Apache server on MacOS X 10.1.5 I have a PHP script containing the following: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,http://omitted.com;); curl_setopt($ch,

[PHP] Re: what is wrong?

2002-09-12 Thread lallous
I'ld also add isset() to avoid warnings too: if (isset($_POST['new_password1']) !empty(trim(isset($_POST['new_password1'] { echo i am not empty, you can do whatever; } else { echo i am empty! show error message; } Erwin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] session_register trouble ?

2002-09-12 Thread Christian Ista
Hello, I use this code : $myarray= array(); session_register (myarray); $i=0; while ($row = mysql_fetch_object($result)) { $myarray[$i][0] = $row-ID; $myarray[$i][1] = $row-NOM; $myarray[$i][2] = $row-PRENOM; $i = $i + 1; } for($i=0; $isizeof($myarray);$i++){ ? a

[PHP] pdf in php

2002-09-12 Thread sonjaya
i create some pdf in php like this : ?php $p=PDF_new(); PDF_open_file($p,); PDF_begin_page($p,595,842); $font=PDF_findfont($p,Helvetica-Bold,host,0); PDF_setfont($p,$font,18.0); PDF_set_text_pos($p,50,700); PDF_show=($p,Tess pdf!); PDF_continue_text($p,Line 2 nih); PDF_end_page($p);

[PHP] headers already sent

2002-09-12 Thread Gian Michele
I'm doing a little form: In the first page i have the form to insert datas,then redirect the control to a script that check if the filds are correct.If they are correct redirect the output to a prospect else to the first page.The problem is that it gives an error like this Warning: Cannot send

[PHP] Need some help with array sorting

2002-09-12 Thread Will Steffen
Ahem *tap* *tap* is this thing on? Hi everyone, my name is Will and I've been addicted to php for 3 months and 21 days... *grin* I'm hitting a bit of a brick wall in a current project - the answer is probably quite simple, but I'm still newish to php and coding in general so bear with me: I

[PHP] Re: headers already sent

2002-09-12 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I'm doing a little form: In the first page i have the form to insert datas,then redirect the control to a script that check if the filds are correct.If they are correct redirect the output to a prospect else to the first page.The

[PHP] cookie problem...

2002-09-12 Thread info
we are using apache 1.3.12 server, php 4.2.3 on linux. Before, we didn't write cookies.txt on harddisk. We changed some configuration in httpd.conf like. We disabled mod_proxy module and then cookie had been wrote. But now, we are not reading cookie variables from cookies.txt (Netscape). I konw

[PHP] Cookie doen't get in variable!

2002-09-12 Thread info
we are using apache 1.3.12 server, php 4.2.3 on linux. Before, we didn't write cookies.txt on harddisk. We changed some configuration in httpd.conf like. We disabled mod_proxy module and then cookie had been wrote. But now, we are not reading cookie variables from cookies.txt (Netscape). I konw

[PHP] whois query

2002-09-12 Thread yasin inat
please anyone can help me about querying a domain like whois queries ? if someone has got a script , it's acceptable -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] dll file for postgres-php connection

2002-09-12 Thread YC Nyon
Looking for this file, php_pgsql.dll running php 4.1.2 on w2k. anyone where i can find it. Regards Nyon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Cry for help

2002-09-12 Thread Jay Blanchard
[snip] As far as Apache is concerned, I looked at the website, yet couldnt find the exact server software, so if you could provide me with a direct link I'd appreciate it. It would be to my benefit however, if I could not only serve myself html pages as http:// but also as file:// as internet

[PHP] PHP mem leaks

2002-09-12 Thread John Wards
After being told off on the dev list I have posted this on this list (I thought it was techie enough to go on that list but I was wrong) I am running a large PHP/MySQL/Apache driven website and I am finding that the apache Processes get larger and larger as the days go on. When I stop/start

Re: [PHP] whois query

2002-09-12 Thread Adam Williams
Have a php page that runs exec() or system() and does a whois query on the domain you want and then have it output the text to a page. Very simple to do, less then 2 minutes of coding. Adam On Thu, 12 Sep 2002, yasin inat wrote: please anyone can help me about

Re: [PHP] Re: Cry for help

2002-09-12 Thread Chad Winger
Thanks for the reply :P I found it actually. Now I have the apache and php running, and am able to run my aforementioned test script locally. I am still looking through the manual now for the syntaxes and such. I am also looking on the web for some simple prewritten scripts to run and then try

Re: [PHP] Re: Cry for help

2002-09-12 Thread Adam Williams
You can use PHP and file() to do with, along with the str functions, but if I were you and you already know what the filename of the file is you are working on (or can submit it via a form) I would use the unix command cut to do the operations on the file. Use another exec() or system() and have

[PHP] PHP or Apache problem?

2002-09-12 Thread Aaron Gould
I have recently installed Apache 2.0.40 with PHP 4.2.3 on a development server... When I type the IP address of the server into my browser, all I see is PHP code. However, when I type the IP address, with the index.php, it works perfectly! Why would one work and not the other? 192.168.1.1

Re: [PHP] Re: Cry for help

2002-09-12 Thread Chad Winger
I have no idea what that means, sorry :) My point for wanting to do this isnt because I really want to make a list of the home teams or whatnot. But obviously, at some point, I am going to have to learn how to split different bits of information, how organize them in certain ways, in certain

RE: [PHP] PHP or Apache problem?

2002-09-12 Thread MET
The detailed answer, I have no idea. The simple answer, currently there compatibility is NOT stable, but will be soon ~ Matthew -Original Message- From: Aaron Gould [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:35 AM To: PHP-GENERAL Subject: [PHP] PHP or Apache

Re: [PHP] whois query

2002-09-12 Thread Andrew Brampton
If you can't do a exec or system call on your server, then look at the many examples of whois scripts here: http://www.hotscripts.com/PHP/Scripts_and_Programs/Networking_Tools/Whois/ some of which use sockets or other methods which might be allowed on your server Also for reference,

Re: [PHP] Text from web form

2002-09-12 Thread Cory Hicks
Rick, Someone had mentioned doing the following: $name = $_POST['name']; $message = $_POST['message']; at the top of your script to enable the variables. Or, you could try this at the top of every page: global $HTTP_POST_VARS; global $HTTP_GET_VARS; and then use: $_POST[field_name]

RE: [PHP] Re: Cry for help

2002-09-12 Thread Will Steffen
Heh - I know how you feel. I'm an ex network tecchie fighting my way through a career change to web developer - spent some time messing with various scripting tools and so forth, but never really had any formal coding experience until I hit php - if you want some advice on learning php mine is

[PHP] Better Images

2002-09-12 Thread [EMAIL PROTECTED]
Hi all, One of my customers needs to show magazine newspapers reviews of his work, which are scanned in such a low res due to a file size matter, that the images are not quite readable. Can I convert large size images to pdf with PHP in order to show them faster on-the-fly? Will this be better?

Re: [PHP] PreCaching Db into Variables Slows it down?!??

2002-09-12 Thread M1tch
That's an expansive reply! Cheers Peter Since I had to alter the db (quite simply) to include this tweak, I thought best to do it now in dev phase (and keep it as an option), that mess around with it later when lots of data exists. It's my own code, and benchmarks show it to perform fast.

Re: [PHP] Re: Cry for help

2002-09-12 Thread Chad Winger
Html is something i do in my sleep :P thankfully I've been good enough with it to make a decent living with it. What you mention is quite logical, as i would find myself correcting the ppl coding the databases and/or scripts by saying, stuff like you realize that when the info is returned like

[PHP] A question about .php file extension

2002-09-12 Thread LI DONG
Hello everyone, It is a question about .php file extension. Is there any way to access PHP4 script in Apache 1.3.x without .php extension? For example, how to use http://localhost/phptest?id=22 instead of http://localhost/phptest.php?id=22 Thanks a lot! ld.

Re: [PHP] A question about .php file extension

2002-09-12 Thread John Wards
make a .htaccess file like this Files main ForceType application/x-httpd-php /Files Files boards ForceType application/x-httpd-php /Files Files read ForceType application/x-httpd-php /Files This makes the file main boards read php files What we do with it is make dynamic pages look like dirs

Re: [PHP] A question about .php file extension

2002-09-12 Thread Adam Williams
make a directory called phptest and put a file, index.php in it...never tried it tho. On Thu, 12 Sep 2002, LI DONG wrote: Hello everyone, It is a question about .php file extension. Is there any way to access PHP4 script in Apache 1.3.x without .php extension? For example, how to use

RE: [PHP] Re: Cry for help

2002-09-12 Thread Will Steffen
Heh good so you're not a complete n00b then :P Luckily I had a fairly decent grounding in html and css as well when I got going - I'm just putting the finishing touches on my first serious project atm using OO style php which made the learning curve about 10 times steeper as I had no previous

[PHP] Displaying PDF file

2002-09-12 Thread Joseph Szobody
I've made a website for a real estate appraiser, who wants to put all his appraisals for his clients online. I have stored these PDF documents in a folder outside of the webserver folder, for security. When a client successfully logs in and clicks the link to biew the PDF, I have a PHP script

[PHP] numeric to word function

2002-09-12 Thread rainydays_sunshine
Hi.. anyone know any function to convert numeric values to word.. something like this: 1252 -- one thousand two hundred and fifty two Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A question about .php file extension

2002-09-12 Thread Erwin
Adam Williams wrote: make a directory called phptest and put a file, index.php in it...never tried it tho. In that case you will have to call http://localhost/phptest/?id=22 Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Displaying PDF file

2002-09-12 Thread Erwin
Joseph Szobody wrote: I've made a website for a real estate appraiser, who wants to put all his appraisals for his clients online. I have stored these PDF documents in a folder outside of the webserver folder, for security. When a client successfully logs in and clicks the link to biew the

[PHP] Re: Displaying PDF file

2002-09-12 Thread Joseph Szobody
Thanks Erwin, that helps but I'm still not getting it to work. Should I still use the Header(Content-type: application/pdf); line? I tried using readfile() keeping the header. When I click the link to the PHP script that should show me the PDF, the IE status bar says something like

RE: [PHP] Re: Cry for help

2002-09-12 Thread joakim . andersson
|Serie C2 Round 2|09.09.02|20.45|Sangiovannese|Florentia Viola |Serie C2 Round 2|09.09.02|20.45|Gualdo|Florentia Viola So for example, lets say I wanted to make another html form that has a form field for List team by: and and select either home or away ... by selecting home, the browser

[PHP] Re: Displaying PDF file

2002-09-12 Thread Erwin
Joseph Szobody wrote: Thanks Erwin, that helps but I'm still not getting it to work. Should I still use the Header(Content-type: application/pdf); line? I tried using readfile() keeping the header. When I click the link to the PHP script that should show me the PDF, the IE

[PHP] php nuke problem

2002-09-12 Thread Ryan A
Hey guys, I just setup php nuke (damn,thats a big package) but the problem is that i cannot create a super user ,go the admin, or do anything when i go to index.php it tells me to create a super user by clicking the link,after i click that link i go to admin.php and when i fill that form,it

[PHP] Re: php nuke problem

2002-09-12 Thread Erwin
Ryan A wrote: Hey guys, I just setup php nuke (damn,thats a big package) but the problem is that i cannot create a super user ,go the admin, or do anything when i go to index.php it tells me to create a super user by clicking the link,after i click that link i go to admin.php and when i

Re: [PHP] php nuke problem

2002-09-12 Thread Geoff Hankerson
I think you need change permissions the file that holds configurations settings for php-nuke. Read the install instructions it's in there chmod 665 config.ini or whatever the name of the file is Ryan A wrote: Hey guys, I just setup php nuke (damn,thats a big package) but the problem is that i

RE: [PHP] Extracting Numbers from a string.

2002-09-12 Thread David Buerer
OK y'all, go ahead and shoot me, but this is what I'd do: $mystring=enters $56.55 for example; $mynumber=$mystring+1-1; $mynumber now equals 56.55 If you want the . to go to, use the other methods. -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

[PHP] Windows Authoring Tools

2002-09-12 Thread Seán Dillon
As an fan of Homesite for many years I'm a little annoyed I can no-longer purchase the product seperately, so am going to be stuck with v5.0 as I don't fancy the idea of forking out for Dreamweaver MX. I'm looking for (hopefully) a GNU/GPL Open source product that supports PHP syntax (and

[PHP] local and global variables

2002-09-12 Thread skitum
Hi all, Maybe a stupid question, but i have to make it: How can a local variable pass its value to a global one? Is it possible? Thanks in advance. Peace Love skitum

[PHP] error handling

2002-09-12 Thread Mattia
I'm writing a web app with php, and would like to do the following: when an error occures (a php/apache error or an application error) the error is logged to a log file. The user is displayed a page that says 500 internal server error, and nothig more. I have access to .htacces and no access to

[PHP] Re: Displaying PDF file

2002-09-12 Thread Joseph Szobody
Ok I think it's working now. When I click the link going directly to the PHP script, it's displaying the PDF file in the browser appropriately. Exactly what I want. Now some of these PDF docs are so big, they could take a while to show up if a client is on a slow connection. So now I

[PHP] unless something...

2002-09-12 Thread Magnus Solvang
I'm used to the unless-statement in perl... How do I do this: if string A or B are NOT in string C, then do something and quit. In perl, I would do this: unless ($c =~ /$a|$b/) { blabla exit 0 } - M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Read/Write Pieces of a Binary File

2002-09-12 Thread Bob Bowker
I have a large binary file (50+ megs) ... I want to read the first 1k bytes, make changes, and write a new file with the new 1k bytes plus the balance of the original file unchanged. I've tried several different ways of doing this, but nothing works, and I'm out of ideas - any suggestions as

[PHP] Re: local and global variables

2002-09-12 Thread Neophyte
eg ... $var = 'value'; function myFunction($var2) { GLOBAL $var; $var = $var2; } Skitum [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, Maybe a stupid question, but i have to make it: How can a local variable pass its value to a global one? Is

[PHP] Re: whois query

2002-09-12 Thread yasin inat
Thanx friends -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: unless something...

2002-09-12 Thread Neophyte
if ($A != $C || $B != $C) { I think, but im fairly new Magnus Solvang [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm used to the unless-statement in perl... How do I do this: if string A or B are NOT in string C, then do something and quit. In perl,

[PHP] Building PHP for windows

2002-09-12 Thread Richard Black
Sorry if this question has been asked before... Is it possible to build PHP on Windows using Borland's C++ Builder? All the docs I've seen talk about MS Visual C++, so I wondered if that's the only compiler that will build it. I've not seen any mention of other compilers. Cheers, Richy

[PHP] OT - SQL string to get value by latest date only in a join

2002-09-12 Thread Merritt, Dave
All, I apologize up front for being off topic, but I don't want to have to subscribe to other lists unless necessary. I know that someone on this list should be able to help me out. I have the SQL string below that I am running. The problem I'm having is that the history table being called in

RE: [PHP] OT - SQL string to get value by latest date only in a join

2002-09-12 Thread Jay Blanchard
[snip] SELECT customer.customer_id, customer.customer_name, business_unit.business_unit, customer.created_date, CONCAT_WS(, , username.last_name, username.first_name), history.modify_date, CONCAT_WS(, , modified.last_name, modified.first_name), history.description FROM `customer` LEFT OUTER JOIN

[PHP] Help with pattern matching.

2002-09-12 Thread Will
Hi, I'm looking for somebody to give me a hand to create some expressions to extract my information out of an ebay auction page. So that I can manage them more effectively. I've try lost of patterns but can't seem to get the hang of it. Is there anybody willing to lone their brain to a php

RE: [PHP] Windows Authoring Tools

2002-09-12 Thread Dave at Sinewaves.net
snip In the past I've been using TextPad and UltraEdit but really want something that picks up on PHP syntax and function spelling (eg Homesite would 'bold' a function word if it was splt correctly). /snip Just download the PHP syntax file for TextPad. Dave -- PHP General Mailing List

[PHP] Need help with PDFlib under Linux

2002-09-12 Thread Cameron Thorne
First some background. I have two servers: 1) Windows XP with Apache 1.3.26 and PHP 4.2.2 2) GNU/Linux with Apache 1.3.26 and PHP 4.2.3 compiled in statically Both are working well, but I now want to add PDFlib support to both servers. On the win32 machine it was as easy as uncommenting

Re: [PHP] Windows Authoring Tools

2002-09-12 Thread Geoff Hankerson
jEdit is nice www.jedit.org Seán Dillon wrote: As an fan of Homesite for many years I'm a little annoyed I can no-longer purchase the product seperately, so am going to be stuck with v5.0 as I don't fancy the idea of forking out for Dreamweaver MX. I'm looking for (hopefully) a GNU/GPL Open

[PHP] can you recommned a simple banner rotator in PHP

2002-09-12 Thread Peter J. Schoenster
Hi, I've got a customer who needs a banner rotation system. I don't want to recreate any wheels and I'm tryin to avoid a lot of research. I'd like one that doesn't use globals, it uses PEAR classes and preferably uses the Smarty template system or another template system, or you've used it

RE: [PHP] Re: unless something...

2002-09-12 Thread Johnson, Kirk
There is no 'unless' in PHP, so you just have to grind it out. If you are searching for known strings, rather than string *patterns*, use the strstr() function here: http://www.php.net/manual/en/function.strstr.php. So, something like: if(!strstr($c,$a) !strstr($c,$b)) { bla; exit; }

RE: [PHP] Re: unless something...

2002-09-12 Thread David Buerer
True, but isn't unless just a negated while? q.e.d. while ($c==$a OR $c==$b) { blabla exit 0 } -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:28 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: unless something... There

RE: [PHP] Re: unless something...

2002-09-12 Thread Johnson, Kirk
Indeed, it is a negated something or other. -Original Message- From: David Buerer [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:23 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] Re: unless something... True, but isn't unless just a negated while? -- PHP

RE: [PHP] can you recommned a simple banner rotator in PHP

2002-09-12 Thread Seán Dillon
-Original Message- From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]] Hi, I've got a customer who needs a banner rotation system. I don't want to recreate any wheels and I'm tryin to avoid a lot of research. Have a look at phpAdsNew http://sourceforge.net/projects/phpadsnew/

[PHP] Problem updating post on a basic weblog system

2002-09-12 Thread Jesse Lawrence
Hello all, I've got a bit of a code problem that's been baffling me for a while now. I'm working on a basic weblog system for personal use, using MySQL. I've got the new post and delete a post aspects working fine, but for some reason, I can't get the update a post part happening. What

[PHP] mysql_query() mail() - something weird is going on !

2002-09-12 Thread Chris Knipe
Lo all, I get a timeout on line 523 of my code (posted and marked below). However, I fail to see where the timeout is occurring, and even debugging (mysql_error()) doesn't report anything wrong! I'm baffled as to what exactly is causing this timeout The code is currently on Apache (Win32)

[PHP] Processing PHP in Template File

2002-09-12 Thread [-^-!-%-
Hello everyone. I want to implement templates in a site, but am having trouble processing php within the template file. The application flow is as follow: -open the template file (which has some place holders) with $fileHandler = file($file_name) -Replace placeholders (within the template

Re: [PHP] Processing PHP in Template File

2002-09-12 Thread Chris Boget
The above process works, as far as replace the place holders, and printing the new content (which is an HTML file). However, it will not process PHP scripts, within the template. If it's really a template, why does it have PHP scripts within? Why not just replace those scripts with place

[PHP] HELP - fwrite(...PHP code...)

2002-09-12 Thread Hankley, Chip
I have an application where I need to write PHP code to a file that will be used later...but it's not working the way I'd expect. When I issue the following: fwrite($fp, ? echo $LayerScale); If $LayerScale is defined, then fwrite outputs the value of $LayerScale to the target, NOT the string

Re: [PHP] Processing PHP in Template File

2002-09-12 Thread Support @ Fourthrealm.com
John Include your template this way: $file_name=templates/somefile.php $New_Content1 = 'This is the new text'; $New_Content2 = 'This is the other text'; include $file_name; In the template file, have ?php echo $New_Content; ? etc wherever the content should appear. Then you can put other

Re: [PHP] HELP - fwrite(...PHP code...)

2002-09-12 Thread Chris Wesley
On Thu, 12 Sep 2002, Hankley, Chip wrote: fwrite($fp, ? echo $LayerScale); If $LayerScale is defined, then fwrite outputs the value of $LayerScale to the target, NOT the string $LayerScale. How can I overcome this? fwrite($fp, ? echo \$LayerScale); g.luck, ~Chris -- PHP

  1   2   >