[PHP] Re: skipping a WHILE loop in mysql_fetch_*()

2002-04-09 Thread Julio Nobrega Trabalhando
For example: $sql = "SELECT id FROM table WHERE name = '$name'"; $res = mysql_query($sql) or exit (mysql_error()); list ($id) = mysql_fetch_array($res); That's it, use list() to make a variable, from mysql_fetch_array(). Very useful indeed for one line returns :-) More than one column: $sq

Re: [PHP] skipping a WHILE loop in mysql_fetch_*()

2002-04-09 Thread Robert Cummings
Erik Price wrote: > > I have always retrieved database information using the following general > format: > > mysql_connect($host, $user, $password); > mysql_select_db($database); > $query = "select * from table"; > $result = mysql_query($query); > while ($row = mysql_fe

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
Hmmm I'm no expert on web IO between Apache and PHP, but my guess is that Apache is holding the data and waiting for more. To verify this I recommend that you try running from a shell cgi and see if your string is flushed to stdio as it should. I remember running into a similar problem one time wh

[PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread M
Hello, you know all GD functions work via image pointer , which appoints to some file, or else empty image $img_pointer = imagecreatefromjpeg("$image_file_name"); or $img_pointer = imagecreate($width,$height); I have stored lot of images into BLOB Mysql fields, and need recover it to resize. H

[PHP] php and wml

2002-04-09 Thread Starman
Can anyone tell me if it is possible to write php scripts withing wml pages? I need to design a wireless site (wap) and the form will be writing to a mysql db using php. Is there any difference in doing this than with html? TIA Milt Rodriguez Stellar Design http://stellardesign.com -- PHP

RE: [PHP] php and wml

2002-04-09 Thread Hunter, Ray
You can you just need to have php handle the wml pages and supply the correct headers... RAY HUNTER Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Starman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 2:00 PM To: [EMAIL PROTECTED] Subject: [PHP] php and wml

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread Robert Cummings
M wrote: > > Hello, you know all GD functions work via image pointer , which appoints > to some file, or else empty image > > $img_pointer = imagecreatefromjpeg("$image_file_name"); > > or > > $img_pointer = imagecreate($width,$height); > > I have stored lot of images into BLOB Mysql fields,

[PHP] popen(); problem, the function don`t finds the command...

2002-04-09 Thread Hermann
Hi!! i`ve wrote a little script to run under shell, so this script: #!/usr/bin/php $saslpasswd = "/usr/sbin/saslpasswd -p $username"; $saslproc = popen($saslpasswd,"w"); fputs($saslproc, $passwd); pclose($saslproc); php-parser gives me the following as output: # sh: /saslpasswd: No such file or

[PHP] includes

2002-04-09 Thread Robert Abbate
I have a directory with php files that I incorporate into my website as libraries via a php_include() call, I would like the path to include my library directory so I can include the library files from any directory. There is no way to overload php's include path on a user by user basis? Thanks

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread M
Robert Cummings wrote: > M wrote: > > > > I have stored lot of images into BLOB Mysql fields, and need recover it > > to resize. How can I create some image pointer from string stored into > > BLOB field? > > > > Thanks > > > > Miguel > > imagecreatefromstring() seems to be the candidate... howev

RE: [PHP] php and wml

2002-04-09 Thread Nathan Cassano
Introduction to WML, Apache, and PHP http://www.phpbuilder.com/columns/mike20010118.php3 Building dynamic WML sites http://www.phpbuilder.com/columns/baravalle20010221.php3 -Original Message- From: Starman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 1:00 PM To: [EMAIL PROT

RE: [PHP] AS/400 data access

2002-04-09 Thread Collins, Robert
Thanks. Unfortunately this project is on a windows based platform, but this may head me in the right direction. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Matt Schroebel [mailto:[

[PHP] Manipulate the address field in the browser?

2002-04-09 Thread Kevin Stone
Here's a crazy question. Say I have a script (such as a bulliten board script) that is run by many clients (other websites) off of one location on my web account. Think of it as a service of some kind. Is there anyway to trick the browser into displaying the client's domain rather than my ow

RE: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Maxim Maletsky
Use include(). Except, for the fact that, this will be: include("http://www.yourBB.com/bb.php?this=that&that=is-not-this";); I don't know how are you going to manage the links though. You might want to write a client-server app to do that. Alternatively, you could simply put it in the frames.

Re: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Kevin Stone
The client's website is not guarenteed to have PHP available so I can't use include(). Frames is a possibility though. I can see how that would work nicely. Dang why didn't I think of that before? *LOL* Well let me know if you have any more ideas. :) -Kevin - Original Message - From:

Re: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 05:44 PM, Kevin Stone wrote: > Here's a crazy question. Say I have a script (such as a bulliten board > script) that is run by many clients (other websites) off of one location > on my web account. Think of it as a service of some kind. Is there > anyway to tric

RE: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Dan Harrington
Sounds to me like an Apache Alias Directive is what you need. can you get at your apache configuration? :-) http://httpd.apache.org/docs/mod/mod_alias.html > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 09, 2002 4:22 PM > To: Kevin Stone > Cc

RE: [PHP] AS/400 data access

2002-04-09 Thread Dan Vande More
Thanks Mr. Collins, I wish that would have been about 7 months ago when I did everything:) I used those three articles and a couple more to get it done, but the directions look great. -Original Message- From: Collins, Robert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 3:24

RE: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Maxim Maletsky
I don't think this is his case. Say, some site on geocities wants to get on and manipulate his BB while showing it's own Geocities URL. What would it have to do with apache? It is rather like using frames. (or JavaScript of some kind) Maxim Maletsky > -Original Message- > Fro

[PHP] auth,perm,content management

2002-04-09 Thread Dennis Gearon
So where is the PHP world headed right now regarding: Database abstraction Authorization Permissions Content Management How is PHPLib doing versus PEAR? Are the database abstractions schemes, (metabase), etc, still duking it out? I'm about to start a site that nee

[PHP] splitting array values into usable chunks..

2002-04-09 Thread phplists
I have got this almost all the way where I need it.. Partly from the php.net function list and partly from searching the archives here.. Now I'm at a point where I don't quite know how to finish it.. Any help would be greatly appreciated. I use functions to gather the subdirectory names in the cw

Re: [PHP] AS/400 data access

2002-04-09 Thread Matt
Then, why not install the IBM odbc driver that comes with Client Access for Windows and use it? - Original Message - From: "Collins, Robert" <[EMAIL PROTECTED]> To: "'Matt Schroebel'" <[EMAIL PROTECTED]>; "Collins, Robert" <[EMAIL PROTECTED]>; "'Rance Hall'" <[EMAIL PROTECTED]>; <[EMAIL P

[PHP] Re: splitting array values into usable chunks..

2002-04-09 Thread phplists
Nevermind.. I wasn't being very smart.. I got it.. Thanks, Bob <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have got this almost all the way where I need it.. Partly from the php.net > function list and partly from searching the archives here.. Now I'm at

[PHP] shopping cart suggestions

2002-04-09 Thread Eugene Lee
Apologies if this is an oft-repeated question, but could anyone recommend a PHP/MySQL shopping cart (free or commercial) that works pretty well, decently customizable, and doesn't depend on additions beyond the standard PHP distribution (e.g. PHPlib). The PHP Knowledge Base

[PHP] Re: shopping cart suggestions

2002-04-09 Thread phplists
Check out the cart at survivalherbs.com.. It's all just php... It uses a template for the page look (which hasn't been edited on that site yet). "Eugene Lee" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Apologies if this is an oft-repeated question, but coul

Re: [PHP] includes

2002-04-09 Thread Tom Rogers
Hi You can do something like this: ini_set ("include_path",ini_get("include_path").":second_include_path"); Tom At 07:05 AM 10/04/2002, Robert Abbate wrote: >I have a directory with php files that I incorporate into my website as >libraries via a php_include() call, I would like the path to inc

Re: [PHP] Downloading files

2002-04-09 Thread Jim Koutoumis
Using this method,.. works OK if you choose to save the file, however if you choose to open the file you get a weird behaviour where IE says it can't find the file and a subsequent prompt to create a new one. Does anyone know why it does this and how to overcome it ? At this stage I've resorted t

Re: [PHP] Php/Pdf application

2002-04-09 Thread Justin French
I don't believe you can do "1", and i'm not clear on what you're asking in "2". I've found Adobe's security stuff to be perfectly adequate. It gives you the options on what to allow them to do -- separate passwords can be assigned for viewing and modifying the file, and you can prevent any/all o

[PHP] PHP 4.2.0 RC2 + Apache 2.0.35 .. DirectoryIndex problem

2002-04-09 Thread Adam Plocher
So I just got PHP 4.2.0 RC2 and Apache 2.0.35 almost completely working. The only problem I am having now, is Apache's DirectoryIndex option. Whenever I add index.php to that (like I would do in Apache 1.3), I get a 403 error every time I visit my site. When I look in my errorlog I see this: [S

Re: [PHP] PHP 4.2.0 RC2 + Apache 2.0.35 .. DirectoryIndex problem

2002-04-09 Thread Rasmus Lerdorf
Sounds like an Apache bug to me. On Tue, 9 Apr 2002, Adam Plocher wrote: > So I just got PHP 4.2.0 RC2 and Apache 2.0.35 almost completely working. > The only problem I am having now, is Apache's DirectoryIndex option. > Whenever I add index.php to that (like I would do in Apache 1.3), I get a >

[PHP] PCRE - catching a caracter set in a negative class

2002-04-09 Thread Maxim Maletsky
Hi all, I was scratching my head to accomplish the following perl regular expression. It doesn't want to catch me [^\{php}]. From what I understood reading the docs this is because in a negative class the caracters are being taken litteraly one by one and not as a set. I tied to enclose them

[PHP] Dealing with Query String

2002-04-09 Thread Vladislav Kulchitski
Hi, I need some help with query string. Basically what I am doing is I am sorting my table, much like you sort columns in OUTLOOK EXPRESS for instance with a little arrow... http://www.kulchitski.com/btl/btl.php?lang=eng&page=talkroom_show&sort=s ex So all I need a function that will grab this

[PHP] LOBS with CURSOR_SHARING=FORCE gives core dump on Oracle 8.1.7.2

2002-04-09 Thread Prince
I have the following php code. If I add the parameter CURSOR_SHARING=FORCE in my init.ora and while executing the program I get the "Segmentation fault". $ /usr/local/php4/bin/php -q curshare.php Segmentation fault (core dumped) Is there any work-around for this? Is this a bug? This seems to b

Re: [PHP] PHP 4.2.0 RC2 + Apache 2.0.35 .. DirectoryIndex problem

2002-04-09 Thread Austin Gonyou
do you have the SetInputFilter and SetOutputFilter lines set? On Tue, 2002-04-09 at 15:56, Adam Plocher wrote: > So I just got PHP 4.2.0 RC2 and Apache 2.0.35 almost completely working. > The only problem I am having now, is Apache's DirectoryIndex option. > Whenever I add index.php to that (like

[PHP] Help, anyone else using GD2 & php 4.1.2 ?

2002-04-09 Thread Mark W. Humphries
Any help with this problem would be greatly appreciated. I'm running PHP 4.1.2 on Win 2000 and Apache. The following snippet runs perfectly when I use php_gd.dll but generates a garbled warning message when I switch the extension to php_gd2.dll. The only change I make to my setup is the correspo

RE: [PHP] Dealing with Query String

2002-04-09 Thread Maxim Maletsky
In your PHP: On every click collect two variables: $by and $order then, call for this query: Select field from table where this=that order by $by $order; Make sure both variables have their default values in case there was nothing selected. You don't really need a function for this, just

[PHP] LOBS with CURSOR_SHARING=FORCE gives core dumpf

2002-04-09 Thread Prince Kumar
I have the following php code. If I add the parameter CURSOR_SHARING=FORCE in my init.ora and while executing the program I get the "Segmentation fault". /usr/local/php4/bin/php -q curshare.php Segmentation fault (core dumped) Is there any work-around for this? Is this a bug? This seems to be h

[PHP] Re: PCRE - catching a caracter set in a negative class

2002-04-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Maxim Maletsky) wrote: > I was scratching my head to accomplish the following perl regular > expression. It doesn't want to catch me [^\{php}]. From what I understood > reading the docs this is because in a negative class the caracters are bei

RE: [PHP] Dealing with Query String

2002-04-09 Thread Vladislav Kulchitski
Privit Maxim, I understand your approach... i.e. I can hardcode it in the links, but what if I will add more variables in a query string... note in the query string there are variables that are not really related to the operation with the table, rather language ($lang=), page ($page=)... for now

[PHP] php 4.0.6 file upload security fix

2002-04-09 Thread peter
I have been running a php script via a web interface that included mkdir() with a chmod to 775 and a subsequent file upload via a form to the newly created directory. It had been running fine without problems for over a year. Now, although I can mkdir(), the chmod defaults to 755 and the I receiv

RE: [PHP] Dealing with Query String

2002-04-09 Thread Maxim Maletsky
Once your query (whatever it is) was composed, append this: " order by $by $order"; so, in this example it could be looking to you something like this: $query = 'bla bla language and page'; if(!$by) { $by = 'name_field'; if(!$order) $order = 'desc'; } $qu

[PHP] Re: Help, anyone else using GD2 & php 4.1.2 ?

2002-04-09 Thread Matt Parlane
http://bugs.php.net/bug.php?id=15568 This bug has been fixed in the latest RC - if you really need this functionality, you could use RC2 available at www.php.net/~derick or wait until 4.2.0 is realeased which is due to be on the 22nd of this month. Matt "Mark W. Humphries" <[EMAIL PROTECTED]> w

[PHP] Empty HTML problem

2002-04-09 Thread ayukawa
Hello, I have a big problem around login script. I made an authentication site with PHP using PHP session. I use my own session handler that store session data into MySQL DB. It worked well on Win2000+Apache. But the problem occured when I put the scripts on TurboLinuxServer7+ Apache. login aut

[PHP] Scoping functions in PHP

2002-04-09 Thread Eric Starr
I am a Java programmer learning PHP. In Java you can have a class that contains public and private functions. Only the public functions are accessible outside of the class. Does PHP have a way to hide functions within a class (i.e. make the private)? My concern is that there are some functio

[PHP] how to send an email to everone listed in a file

2002-04-09 Thread Police Trainee
Hi all. I really wish I could contribute here and help people out too but i don't know a fraction of the stuff that you gurus do. I try not to bug you all with too many questions and try to figure it out/learn on my own as much as possible. I am trying to figure out how i could send an email to

Re: [PHP] Downloading files

2002-04-09 Thread Jason Wong
On Wednesday 10 April 2002 08:54, Jim Koutoumis wrote: > Using this method,.. works OK if you choose to save the file, however if > you choose to open the file you get a weird behaviour where IE says it > can't find the file and a subsequent prompt to create a new one. Does > anyone know why it do

[PHP] no mod_dbase on FreeBSD?

2002-04-09 Thread Jeff D. Hamann
PHP Group: I'm having a devil of a time adding additional modules to php using the ports method. Since I'm a little new to FreeBSD, I thought thew ports method would be the easiest. I attempt to do a Make install (cleanly) and get the box that comes up asking which modules to install, I select th

[PHP] Weird Session headers

2002-04-09 Thread S.Murali Krishna
Hi! In short the problem Iam facing is this. When I send a excel file to IE browser using php, Iam using the following header info. header ( "Content-Type: application/x-msexcel" ); Its all ok. but when I send this header along with SESSION HANDLING HEADERS, IE was unable download the

Re: [PHP] includes

2002-04-09 Thread Tom Rogers
Hi That goes into each php page. It gets the standard phpinclude directory then appends your local one using ":" as the seperator. It does not affect any other php pages only the one it is used in. Tom Where do you place that function call? In the script you're running, or in the php.ini file? Th

Re: [PHP] sablotron XMl XSLT

2002-04-09 Thread Yasuo Ohgaki
Matthew Luchak wrote: > Thanks Ray but what I need to know is if there is indeed a better way than what >I've tried to test if sablotron has been complied or not. http://www.php.net/manual/en/function.get-loaded-extensions.php http://www.php.net/manual/en/function.get-extension-funcs.php Y

[PHP] unserialize_callback_func

2002-04-09 Thread Ian
i am using the following to try to pull in php classes from separate files based on their names using unserialize_callback_func. I cant seem to get it to work with 4.1.6 on redhat (should work). I notice that it isnt shown under variables available for unset() but it is shown for unserialize()

[PHP] allowed tags reg exp

2002-04-09 Thread Justin French
Hi all, Further to a discussion we had yesterday about the danger of onLoad, onMouseOver, etc etc of allowed tags when using strip_tags(), I've decided to look at the issue from another angle. For the limited set of tags I usually allow on user input, , I'm going take the approach of deleting an

[PHP] chmod error?

2002-04-09 Thread John Weez
Hi all...I want to change the ownership of a file that is created via php..so i uses chmod command in my php script.. Upon execution of the script i get an error saying command not permitted with a line number pointing to my chmod command. I'm running apache as user nobody for security reaso

Re: [PHP] chmod error?

2002-04-09 Thread Henrik Hudson
Hello. First off, to change ownership you want "chown", not "chmod". Also, chown isn't always permitted depending on the cicrumstances of who owns the directory or the specific file to begin with. If you're web server is running as nobody it will only be able to create files in a directory

<    1   2