> 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
> 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
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();
>
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
"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
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
> 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
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
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
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
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
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
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
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
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
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
> > 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
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
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/)
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
"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();
> >
> >
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
> 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
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
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
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
> 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
>
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"].
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
$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
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
> 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
> 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
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
> $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
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_
- 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
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
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
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
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);
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
> 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 ".
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
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:
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
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)
> 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
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
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 (($
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
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
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
> > 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
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
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
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
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
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
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
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
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
101 - 162 of 162 matches
Mail list logo