RE: [PHP] getting a function name of the calling function

2002-05-01 Thread Craig Vincent
> Does anybody know of any constants or predefined functions that will > retrieve the calling functions name? For example: > > function new_func($somedata) { > echo "I am function ".get_func_name(); > } > ?> I don't believe there is anything setup to pass the name of a parent function to a ch

[PHP] Re: Query > Close

2002-05-01 Thread Christian Ista
> Depends on how you opened it. Did you use mysql_pconnect or mysql_connect? mysql_connect bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting a function name of the calling function

2002-05-01 Thread Joshua E Minnie
I actually need it to print out the name of itself for error detection purposes. > > Does anybody know of any constants or predefined functions that will > > retrieve the calling functions name? For example: > > > > > function new_func($somedata) { > > echo "I am function ".get_func_name(); >

[PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
Hi. I've run into a problem with my PHP session. I'm running PHP 4.1.0 on OpenBSD v3.0 using .HTACCESS and mod_mysql. I have a PHP file that is referenced every time content is requested on the web site (this file also sets/restores the session). This PHP file includes [include()] the requ

[PHP] Re: Query > Close

2002-05-01 Thread Joshua E Minnie
"Christian Ista" <[EMAIL PROTECTED]> wrote: >>Depends on how you opened it. Did you use mysql_pconnect or mysql_connect? > > mysql_connect Here is an excerpt from the manual http://www.php.net/mysql_connect The link to the server will be closed as soon as the execution of the script ends, unles

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Jay Blanchard
Add At the top of each page, before anything else is done. Jay -Original Message- From: Adam Douglas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 3:15 PM To: PHP-General (mailing list) (E-mail) Subject: [PHP] Session Initially Does Work Hi. I've run into a problem

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Craig Vincent
> something else after the initial page everything works fine. I > require this > to work initially because if someone comes in directly using a > link certain > content will render a error message because the registered variable is not > present for some reason. Oh and yes the cookie to set the s

[PHP] Fatal error : Call to undefined function dbmopen()

2002-05-01 Thread Bernard Chamberland
Hello, I run PHP 4.0.4 on a Redhat 7.1 I receive the following message 'Fatal error : Call to undefined function dbmopen()' when trying to open a new DBM file. phpinfo() returns : - configure command : '--with-db2''--with-db3''--with-gdbm' - DBA support : enabled - Supported handlers : gdbm db

Re: [PHP] PHP and Log Analyzers

2002-05-01 Thread Fearless Froggie
The information isn't always coming from a form, sometimes just from a link the user clicks on the website. I've saved information from a form and the user clicks a link to go back to that form with their information intact. But your comment reminded me of an article I printed off from the zend

[PHP] PHP and SOAP

2002-05-01 Thread Udo Giacomozzi
Probably this question has been asked a couple of times but I could not find a complete answer to my question... I am new to PHP but have a lot of experience with Delphi and usually have no problems learning new languages (besides PHP is very similar to C). I also made already some little PHP

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
I already have this setup. The session works just not on the initial page after login. > Add > > At the top of each page, before anything else is done. > > -Original Message- > From: Adam Douglas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 3:15 PM > To: PHP-General (maili

Re: [PHP] PHP Editors

2002-05-01 Thread John Fishworld
I've used Edit Plus and Dreamweaver as a combination for a while ! And the new Dreamweaver is worth getting ! I've set it up in 10 minutes with my Linux box using there PHP and MySQL and first impressions are very good ! Much better than Ultradev was and a hell of lot quicker and more stable than

Re: [PHP] PHP Editors

2002-05-01 Thread Scott St. John
I second that! I was to the point where I bought Ultra Dev but only used it for table layout and then spent the rest of my time in Home Site. Now with the new Dreamwever MX Home Site is built in. I was able to complete a site I was working on in PHP in about an hour last night! Since Home

[PHP] Windows XP con Apache 2.0.35 y PHP 4.2

2002-05-01 Thread Julio Cesar Corbaz
Hola Ayer intente Instalar en Xp el Apache 2.0.35 Todo Anduvo perfecto. (lo bueno es que biene con un instalador y no tuve ningun problema. Muy Facil de Instalar) Luego instale la version de PHP 4.2.0 pero aqui si tuve un problema hay dos versiones una con un instalador para servidores IIS pero p

Re: [PHP] Help need (Urgent)

2002-05-01 Thread Philip Olson
Hi, In meu.php first do this: phpinfo(); And notice all the beautiful information within. Towards the botton you'll see a section called "PHP Variables" that will have something like _GET. All GET information will live in here ($_GET), So: print $_GET['des']; If you're trying $des and it

[PHP] why is better?

2002-05-01 Thread Franky
Why is better to write module than class? ok is compiled code so is supose to be faster, but that all? Frank [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
> > something else after the initial page everything works fine. I > > require this > > to work initially because if someone comes in directly using a > > link certain > > content will render a error message because the registered > variable is not > > present for some reason. Oh and yes the cook

[PHP] Credit Card Processing

2002-05-01 Thread Chris Seymour
Hi All, Look for any recommendations on a credit card payment processing library. Are there any out there? Thanks. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] recommendation on PHP bulk email class or script

2002-05-01 Thread Tom Beidler
Just wondering if anyone has a preference for an existing bulk email class or script that is out there. I'm hoping it might be basic that I could use as a start and customize for my companies specific needs. Any input appreciated. Thanks, Tom -- PHP General Mailing List (http://www.php.net/)

[PHP] New to PHP - Undefined variable: ??????

2002-05-01 Thread TGL
I'm new to PHP and can't get through my first script. I want to create a form that will allow the user to attach a file. I started with the file upload part of the form thinking that it ould give me the most problem, and it has. This is the error message that shows when I view the page in the bro

Re: [PHP] XML to HTML?!

2002-05-01 Thread Fredrik Arild Takle
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 1 May 2002, Fredrik Arild Takle wrote: > >>>Wrap into a output buffer. ob_start, ob_get_contents > > > > This was neat. > > I did: > > > > ob_start(); > > $myvar = ob_get_contents(); > > > >

Re: [PHP] New to PHP - Undefined variable: ??????

2002-05-01 Thread Philip Olson
Undefined variables errors are errors of level E_NOTICE. Instead of if ($File) use if (isset($File)) or similiar (such as empty()). Depending on your mission. A similiar example: if (empty($form_submitted)) { include 'form.html'; } else { include 'process_form.php'; } It's worth mention

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Craig Vincent
> Well the cookie is set at the start of the PHP file that gets referenced > each time. I'm not setting any manual cookies just using the > default session > cookie set by PHP. Below is all the code I use for the session. Formatting > is kind of goofed up in e-mail but it's there. So even though t

[PHP] variables over 2 pages w/ a table.

2002-05-01 Thread Jule
Hey, i've got a little problem: I have two php pages index.php and news/index.php now in index.php there is a table which shows news/index.php $left = "news"; $ltitle = "index"; $lext= "php"; include ("$left/$ltitle.$lext"); now this allows me to keep the layout the same, but change the pag

[PHP] Kinda HTML and PHP question....

2002-05-01 Thread Mantas Kriauciunas
Hey PHP General List, I have news thing in MySQL database... i made tables that is good to look under 800x600 and highet.. now i am outputing from database $full_news line like this: echo "Full Story:$myrow[3]\n"; so the problem is... like some stupid people put word...without spaces

[PHP] sessions and outside of server root

2002-05-01 Thread Jas
I have been using a script for sessions and it has worked great until i decided to move everything outside of the server root for a little added security and everything works fine except for the sessions, I am wondering if I would need to specify the tmp directory on the server for the sessions to

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
> That's correct, although the cookie will remain resident it > requires an > inital page change/refresh. However after looking at your > code I'm not > convinced that is the problem since the first page of a > session creation > should still be usable with the session as the session ID is >

Re: [PHP] Variable Help.

2002-05-01 Thread J Smith
It isn't terribly hard to fix -- just use $_SERVER["DOCUMENT_ROOT"] in the links that need them. J Miguel Cruz wrote: > On Wed, 1 May 2002, J Smith wrote: >> Even better would be to write the URL as >> >> http://www.example.com/charts.php/wk0001-etc >> >> and look in $_SERVER["PATH_INFO"].

[PHP] Re: why is better?

2002-05-01 Thread Julio Nobrega Trabalhando
Faster, and better interaction with the engine that runs php (and therefore other parts of the system). -- Julio Nobrega. "Franky" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Why is better to write module than class? > ok is compiled code so is supose to

[PHP] Re: Kinda HTML and PHP question....

2002-05-01 Thread Julio Nobrega Trabalhando
$text = substrt($text, 0, 75) . '...'; Cuts anything beyond 75 caracthers and add "..." to the end of it. Also, you could when people submit anything check for spaces if the size is greater than a number of characters: if (strlen($text) > '75' && !ereg(' ', $text)) { echo 'Please use sp

[PHP] Any ideas on content management system for Apache+PHP+MySQL

2002-05-01 Thread Apolinaras Sinkevicius
I am a webmaster for an agency. I looked at many content management pieces for Linux+Apache+PHP+MySQL like ezPublish and etc. but they look overly complex for my needs. I just need to have something that would allow me to insert picture, text, and list of links into a template. I don't want a heav

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Craig Vincent
> Alright that's good to hear. In a specific case that I'm having > this problem > the main PHP file is including file (content) that refers to > $_SESSION[nSID_PeopleID] in main. This value is vital in > rendering the page. > So it should be there right? Also about removing session_name(), how ca

RE: [PHP] Kinda HTML and PHP question....

2002-05-01 Thread Craig Vincent
> so the problem is... like some stupid people put word...without > spaces or something without them...just letters no spaces...and > it doesn't warp the text. What do you think i should do at that > point? What do you do in your sites to protect that? because my > tables get wight bigger

[PHP] Xdebug extension availability

2002-05-01 Thread Derick Rethans
Hello, I'm happy to announce the availability of the xdebug extension. This extension modifies the php error handler to show stack traces. With this you can exactly see how the current function was called, even the parameters show up (if they are constants). I'm still working on variable para

RE: [PHP] variables over 2 pages w/ a table.

2002-05-01 Thread Craig Vincent
> $left = "news"; > $ltitle = "index"; > $lext= "php"; > > include ("$left/$ltitle.$lext"); > > next > > so this should link to the index page, which calls upon > news/index.php, opens > it in the left column of the table, and gives $start the value of 8. > > but it gives me this error: > > Warni

[PHP] directory browsing

2002-05-01 Thread Uros Gruber
Hi! I wan't to make directory browsing like yahoo or google over categories. For example look on http://www.google.com/dirhp I have made myself 2 diferent ways. One is quicker but more complex and oher is slower but easy to read and understand. In my table i have this colums id_cat, name, id_

Tr: [PHP] New to PHP - Undefined variable: ??????

2002-05-01 Thread nico_free
- Original Message - From: nico_free <[EMAIL PROTECTED]> To: TGL <[EMAIL PROTECTED]> Sent: Wednesday, May 01, 2002 11:47 PM Subject: Re: [PHP] New to PHP - Undefined variable: ?? > Well, I think the first 2 lines of your script should be : > > echo "\$FILE : $FILE"; > var_dump($FILE

[PHP] Re: file() and macintosh line break

2002-05-01 Thread Yasuo Ohgaki
Rodrigo Peres wrote: > Hi list, > > I'm in a problem that is driving me crazy!!! I want open a file and puts > each line into an array, but this files was created in macintosh!! so > the file() can't recognize the end line and only outputs 1 element in > array!! How can I solve it. I tried to

Re: [PHP] Windows based Mail() problem (newbie)

2002-05-01 Thread Kim Kohen
G'day John > PHP is server side, so it's going to do the same thing each time. If > it's sending a blank message, then no data was received. Thanks for the response. I have been able to find the problem by replacing my mail() with phpinfo(). It certainly wasn't passing the variables with Wi

[PHP] Read filename and good manual

2002-05-01 Thread r
Greetings All, Special greeting to all my new pals on the list, you know who you are. First let me tell you what i have done then what i need. I have made a program to upload a picture (gif or jpeg, for clearness lets call the picture "x.jpg") and then the page will change and a new pa

[PHP] How do I retrieve (assign) oracle package variable's value into a php variable?

2002-05-01 Thread Prince
Hello, I have a package like the following one. creare or replace package my_pkg as my_pkg_var varchar(10) defalut 'myVal'; end my_pkg ; Now, I want to read this value into a php variable (say $my_php_var). How do I do this? in PL/SQL, I can easily do this as declare tmp varchar2(10);

Re: Tr: [PHP] New to PHP - Undefined variable: ??????

2002-05-01 Thread Philip Olson
Some things to consider: a) please read my first post :) (re: isset/empty/error_reporting) b) $FILE != $File != $file (case sensitive) regards, Philip Olson On Thu, 2 May 2002, nico_free wrote: > > - Original Message - > From: nico_free <[EMAIL PROTECTED]> > To: TGL <[EMAIL PROTECTE

RE: [PHP] getting a function name of the calling function

2002-05-01 Thread John Holmes
> I actually need it to print out the name of itself for error detection > purposes. > > > > Does anybody know of any constants or predefined functions that will > > > retrieve the calling functions name? For example: > > > > > > > > function new_func($somedata) { > > > echo "I am function ".

Re: [PHP] getting a function name of the calling function

2002-05-01 Thread Brian Park
I don't know of a way to print out the function name. But for error detection purposes, can you use __FILE__ and __LINE__ as alternatives? For example: echo "I am line" . __LINE__ . " at file " . __FILE__ . "\n"; Brian "Joshua E Minnie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">ne

RE: [PHP] Session Initially Does Work

2002-05-01 Thread John Holmes
There is a session problem with 4.1 If register_globals is ON, then use session_register(). If it's off, then use $_SESSION["name"] = "value"; and the value will automatically be registered. ---John Holmes... > -Original Message- > From: Adam Douglas [mailto:[EMAIL PROTECTED]] > Sent:

Re: [PHP] Read filename and good manual

2002-05-01 Thread Justin French
When the file is uploaded to the server (I assume you've got that far), typically you KNOW the name of the file, or have renamed it to a specific file name to suit your methods (otherwise people may upload different pictures called me.gif which overwrite each other). So you may have a var $upload

[PHP] bumping up hour by one

2002-05-01 Thread Tom Beidler
I'm having some problem with some code where I'm trying to round the hour up to the next hour if the minutes are between 53 and 59. Here's the important part of the code so you can see what I'm trying to do. $display_time = date("H:i"); // round time $display_timex = explode (":",$display_time)

RE: [PHP] Read filename and good manual

2002-05-01 Thread John Holmes
> My doubt is here: > In the second page I want to ask the client if "x.jpg" is the picture > he/she > uploaded. > How do read the filename? I also want his filename in a hidden text > field > on > the same page so that i may enter it into the database. The original filename on the us

RE: [PHP] bumping up hour by one

2002-05-01 Thread John Holmes
Doesn't matter, PHP will juggle the type and make it a number. What do you get for results, these look like they should work. Are you getting errors or are you getting odd results? ---John Holmes... > -Original Message- > From: Tom Beidler [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, Ma

Re: [PHP] bumping up hour by one

2002-05-01 Thread Tom Beidler
operator error. I didn't show all the code. Here it is; $display_time = date("H:i"); // round time to nearest 15 minute interval $display_timex = explode (":",$display_time) ; if (($display_timex[1] >= 00) || ($display_timex[1] <= 07)) { $insert_time = $display_timex[0] . ":00"; } elseif (($

[PHP] webhost (PearHost.com)

2002-05-01 Thread mm fernandez
hi. just wanna ask if anyone here has tried PearHost (http://www.pearhost.com/). im trying to find out if it's a reliable webhost since they seem to be really cheaper compared to other webhosts. it also supports php,mysql and a whole lot of other features. does someone have any comment about P

[PHP] Re: getting a function name of the calling function

2002-05-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joshua E Minnie) wrote: > Does anybody know of any constants or predefined functions that will > retrieve the calling functions name? For example: > > function new_func($somedata) { > echo "I am function ".get_func_name(); > } > ?> What wo

Re: [PHP] Re: file() and macintosh line break

2002-05-01 Thread eat pasta type fasta
just a thought, mac line break is "\r" you can open and save it as unix that should get rid of the weird problem, unless you need it to work for numerous uncotrolled file flow, then replacing "\r" might work with a FOR loop. You might have to fwrite to a new file there "\r" will become "\n" an

Re: [PHP] Re: getting a function name of the calling function

2002-05-01 Thread Philip Olson
> > Does anybody know of any constants or predefined functions that will > > retrieve the calling functions name? For example: > > > > > function new_func($somedata) { echo "I am function " . __FUNCTION__; > > echo "I am function ".get_func_name(); > > } > > ?> __FUNCTION__ will exis

Re: [PHP] Re: file() and macintosh line break

2002-05-01 Thread Philip Olson
Here's a bug report: file() - incorrect behavior (line endings ignored) on files with Mac EOLN (CR) http://bugs.php.net/bug.php?id=16521 Maybe some kind soul will fix this before PHP 4.3.0 :) http://cvs.php.net Regards, Philip Olson On Thu, 2 May 2002, eat pasta

[PHP] Columns not displaying as they should

2002-05-01 Thread Jennifer Downey
Hi to everyone, I am having trouble with this snip and wonder if you might help? This is suppose to display the items 5 accross the browser instead it displays them down like this: item 1 item 2 item 3 I want them displayed like this: item1 item 2 item 3 but for some odd reason it wont any i

Re: [PHP] Re: file() and macintosh line break

2002-05-01 Thread Justin French
I agree -- if this is a once-off problem, then just open the file in a Windows or Unix machine, re-save it, and the problem should be solved. If the Mac user has BBEdit or BBEdit lite, one of the options they have is to save in Unix and Windows format, which fixes the problem simply. Of course

Re: [PHP] Columns not displaying as they should

2002-05-01 Thread Richard Archer
At 10:27 PM -0700 1/5/02, Jennifer Downey wrote: >echo "width = \"100\">$display_block"; Because you're opening a new table for every element. ...R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Editors

2002-05-01 Thread José León Serna
Hello: > The big disappointment was QaDRAM Studio, which was so > buggy and unstable, it only took me until I tried to > create a project (the first thing I did upon loading > the software) before it crashed my entire system and > forced me to reboot. Trying to uninstall it is > impossible, as wel

Re: [PHP] Re: PHP Editors

2002-05-01 Thread Marius Ursache
use vim (http://www.vim.org/) highlight syntax code complition autoindent and more... :q José León Serna a écrit : > Hello: > > The big disappointment was QaDRAM Studio, which was so > > buggy and unstable, it only took me until I tried to > > create a project (the first thing I did upon loadin

[PHP] How do I Install PHP on Apache 2, on win32

2002-05-01 Thread Philip Newman
How do I Install PHP on Apache 2, on win32? I would like to install the ISAPI module? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variables over 2 pages w/ a table.

2002-05-01 Thread Marius Ursache
try to send the same url + start=8 index.php?left=news Hey, > > i've got a little problem: > > I have two php pages > > index.php and news/index.php > > now in index.php there is a table which shows news/index.php > > $left = "news"; > $ltitle = "in

<    1   2