Sorry to bother you.
That actually was my mistake. I was looking too hard elsewhere; it happens.
Thank you Joseph.
alex
Jason Wong wrote:
> On Tuesday 30 July 2002 04:47, Joseph Rosenblum wrote:
> > Do you know you have a typo in that conditional there? Was that your
> > real code? You missp
[snip]
My question is:
How does one print out the "Array"?
[/snip]
Try print_r
http://www.php.net/manual/en/function.print-r.php
HTH!
Jay
I took a pain pill, why are you still here?
***
* *
* Texas PHP Developers
I got it fixed, thanks again. Just in case anyone else needs help with this
type of item look at readdir() at http://www.php.net
Jas
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Thursday 01 August 2002 03:00, Jas wrote:
> > Not sure why this
Ok, I admit, I am relatively new to PHP.
But I have some good ideas of what I want to do, and I
have a client who wants to have a portal for his
LANParty Site, and I am working on that, somewhat
successfully. I am trying to use PHP-Nuke, but it
won't load on his FreeBSD server. Any ideas?
I also
Use is_array() to see if it's an array. If it is, then loop through it and
display the contents...
---John Holmes...
- Original Message -
From: "Marty McGowan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 4:15 PM
Subject: [PHP] Printing a PHP Class
> PHPer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi everyone,
I break out in a cold sweat just thinking about regex, so I thought I'd
ask you if there was an easier way to do this:
I want to look through all of the files in a directory and extract a
certain variable from each.
This i
Maybe code will help...
> My problem is:
> when printing the Class Variables using the "standard" approach:
> =
> function print_vars($obj) {
> $arr = get_object_vars($obj);
> while (list($prop, $val) = each($arr))
> {
>echo "$prop\t$val\n";
> }
> }
> =
Try this:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Kevin Myrick declared
> I also want to do a signup form for his site so when
> people join the "community" forum, they will
> automatically be given an email username and password
> for his site.
>
> Any help would be very greatful.
Also, you could use print_r($obj);
to look at everything in the class, with arrays already expanded for you.
http://www.php.net/manual/en/function.print-r.php
jerome
>From: Marty McGowan <[EMAIL PROTECTED]>
>
>PHPers,
> In a genaology application, where I add individuals to
>an array:
>
Specific problems? Ok, I think I can do something
about that...
I am not sure how many emails he can handle, but I am
pretty sure he can create as many as he wants.
Basically unlimited accounts. I am pretty sure that
the permissions would be aimacable to do that, as in
755 permissions on his serv
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <'[EMAIL PROTECTED]'>
Sent: Wednesday, July 31, 2002 3:03 PM
Subject: Fw: [PHP] dir to array? - SOLVED
> *LOL* I was just about to post an answer for you but it looks like you
got
> it figured out. Si
> So my specific problem is this: How do I create a new
> user account on a *NIX system to have permissions to
> send and receive email, for a web based email system.
In theory, and in my case, I couldn't have PHP do this because PHP is
running on apache with the user status of nobody. So here i
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Kevin Myrick declared
> So my specific problem is this: How do I create a new
> user account on a *NIX system to have permissions to
> send and receive email, for a web based email system.
I think you'd need to take a look at the exec
That is what I had orginally thought. However, in an article I found about
mail(), he said it will also work on a linux box that does not have sendmail
configured.
If that's the case, how do I get sendmail to work with Exchange??
Aaron
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAI
Thanks man
Kevin Myrick
www.ultimatealchemy.com
--- Nick Wilson <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> * and then Kevin Myrick declared
> > So my specific problem is this: How do I create a
> new
> > user account on a *NIX system to have permissio
Could somebody help me with this?.I posted yesterday with only one
reply...please read the following and let me know where I'm going wrong.
THANKS!!!
-Kirk
BEGIN MESSAGE
>
> Yes, I configured apache with mod_so enabled and the
> module is there. Still crashes on make.
>
>-Kirk
You chose t
Use apache 1.3.26 and it'll work. Just change the configure line:
./configure --with-mysql --with-apxs=/path/to/apxs
Apache 2 is troublesome.
tyler
On Wed, 31 Jul 2002 17:27:30 -0500
"Kirk Babb" <[EMAIL PROTECTED]> wrote:
> Could somebody help me with this?.I posted yesterday with only on
I deal with student machines that I do not own. I have to work with
what's in front of me. Unfortunately. The activation script for 10.2 on
entropy.ch did the trick by the way.
I also need to change register_globals from off to on in version 4.2.2.
Any help on how to do that with the PHP modul
Hello.
Say me pls, are there method to enable DBM support in loaded Windows binaries of PHP
4.2.1?
I have "Fatal error: Call to undefined function: dbmopen() in ..." my .php file... :((
Nashev ([EMAIL PROTECTED])
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
Thanks, Tyler, I will if I have to, but is there someone out there who has
done this on Linux?
cheers
Kirk
"Tyler Longren" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Use apache 1.3.26 and it'll work. Just change the configure line:
> ./configure --with-
Looked in the archive and manual and came up with no luck, so here it goes.
My end result is to save the output of a PHP script as an HTML file in a specified
directory on a WIN2K server.
my script is such...
http://myserver.net/extranet/archive.php?jobid=1";;
$fd = fopen( $filename, "r" );
Question.
I have a problem with forms not been cached when they click submit... And then the
back button,
I know of some fields that can not be cached (password),
I am thinking I am not doing something that asks it to cache..
Anyone have any tips or a place to start looking.
Thanks
Hello,
On 07/31/2002 04:17 PM, Aaron Paxson wrote:
> I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2. My email
> server is Exchange 5.5sp3
>
> SMTP is set correctly in my php.ini file, and have restarted Apache.
> However, I still cannot send out a simple text email:
>
>
>
> The
i sorter need a preg example i'm not very good at it , and its for a wysiwyg
dhtml editor , it reformats those tags if the quotes are there when i load
the content and stuffs the code
-Original Message-
From: Joel Boonstra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 6:18 AM
Tomasz Zolnierczyk wrote:
>
> subscribe [EMAIL PROTECTED]
>
> =
> Tomasz Zolnierczyk
>
> "The Path Of Excess Leads To The Tower Of Wisdom"
> - W. Blake
>
> __
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
on 01/08/02 3:42 AM, Petre ([EMAIL PROTECTED]) wrote:
> Well, OK, then, How do you design the app NOT to allow the form to POST
> again when the user hits "BACK"
The PHP script that process' the form submission shouldn't be an actual page
that sends stuff to the browser.
1. form.php POSTs to p
I'm having provblems with the following script...
mail("[EMAIL PROTECTED]", "www form submission", $message, "From: $email");
...the variables are being POSTed from a form, which does make it to sendmail.
sendmail logs the following...
Jul 31 19:32:47 mars sendmail[20605]: g711Wlu20605: from=
check out strip_slashes() or stripslashes() [can never remember which one!!]
in the manual.
Justin French
on 01/08/02 5:50 AM, Nathan Kline ([EMAIL PROTECTED]) wrote:
> this seems so obvious yet it is giving me problems.
>
> I have a text area in a form that is passed to a php page to be
> w
--- Begin Message ---
Hello,
I have just recompile and reinstall these sources code package...
But I found I need to add these line into httpd.conf :
AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps
Must I add these line into httpd.conf under apache 1.3
I'm reminded of a reasonable quote:
"It's easy to write HTML, and impossible to parse it" Because HTML is *SO*
easy to write, and has so many options, and is easy to screw up AND have
browsers still work, it's totally evil to parse.
You end up with massive regular expressions, or a state engine
hi mate , i sorter just need a regular expression only when loading it , i
use tidy to reformat it back to go into the database its how it handles
tags, can anyone help ?
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 11:59 AM
To: electr
As I assume most of you know, mod_speling (sic) is a feature of the
Apache httpd that will suggest possible corrections to URLs.
i.e. if you look for /sidebar/ on my site you'll get a 404 because the
actual URL is /sidebars/
The problem is that some sites don't enable mod_speling and some don
Hi all!
I know this is not the first (and will definitely not be the last) time
this question is asked here, but since I was unable to Google anything
out on the topic, does anyone know of any kind of iCalendar support for
PHP? I'd much prefer a class to a module because I'm working on a
proj
Hello,
On 07/31/2002 10:47 PM, Dan Radom wrote:
> I'm having provblems with the following script...
>
> mail("[EMAIL PROTECTED]", "www form submission", $message, "From: $email");
>
> ...the variables are being POSTed from a form, which does make it to sendmail.
>sendmail logs the following..
How about a file wilh all the directories and you compare its contents
using similar_text() or soundex/metaphone() with the url/directory that
failed?
Shouldn't be too hard to implement.
--
Julio Nobrega
Pode acessar:
http://www.inerciasensorial.com.br
"Tim Luoma" <[EMAIL PROTECTED]> escre
nope. all that did was prodice the following warning... Jul 31 20:53:47 mars
sendmail[20790]: g712rkA20790: Authentication-Warning: mars.radom.org: nobody set
sender to [EMAIL PROTECTED] using -f
dan
* Manuel Lemos ([EMAIL PROTECTED]) wrote:
> Hello,
>
> On 07/31/2002 10:47 PM, Dan Radom wro
On Thursday 01 August 2002 05:50, Aaron Paxson wrote:
> That is what I had orginally thought. However, in an article I found about
> mail(), he said it will also work on a linux box that does not have
> sendmail configured.
In my experience, if php does not find sendmail when it is configured an
[snip]
First of all, sorry for the additional cross post. MeetUp.com lacks the
ability to let you contact other folks who have signed up. In my general
area, Massachusetts, there are a bunch of tiny groups scattered about,
and I'd like a chance to get all of them to converge in one place to make
t
x86-3 being added to access control list
I've recently updgrade my Apache Webserver to
1.3.26 and opted to upgrade php form 3.x.x to 4.2.2.
I have succesfully built it all and things are stable.
I have been running the "album" picture database which
is included as an example with the php3 distro.
Hey php-general,
maybe somebody can explain me what happens in this line? because how
mutch i read it..thought i don't get it :)
list ($date, $laik) = split (' ', $row['time'], 2);
--
Best regards,
Mantas
Contacts:
[EMAIL PROTECTED]
--
PHP General Mailing L
tony,
regarding problem one, it looks like there is a problem in the code near:
for ($g = 0; $g < $num_lyrics; $g ++) {
try doing:
for ($g = 0; $g <= $num_lyrics; $g ++) {
As for problem two, it looks like you have your color variable set in the
for loop thereby resetting the color variable to
Since 4.1.? the way things worked changed... Instead of using $album you
need to use $_GET['album']
you can default back the old behaviour with a php.ini change, but the new
way is prefered
andrew
- Original Message -
From: "Bruce Riddle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
Split() chops up the string (param #2) according to param #1 (in this case,
space is the delimiter). Param #3 says, don't chop more than two bits. It
then returns an array
list() assigns $arr[0] to the first variable, $arr[1] to the second, etc.
HTH
Martin
-Original Message-
From: Manta
Petre,
why not use javascripts window.open something like this link to open your
app
http://yourapp.com','yourappname','toolbar=no');
return false;">link to your app.
this would open a new window without the back and forward buttons.
"Petre" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECT
Hello,
On 07/31/2002 11:55 PM, Dan Radom wrote:
> nope. all that did was prodice the following warning... Jul 31 20:53:47 mars
>sendmail[20790]: g712rkA20790: Authentication-Warning: mars.radom.org: nobody set
>sender to [EMAIL PROTECTED] using -f
Are you sure the message is not stuck in the
> Hey php-general,
>
> maybe somebody can explain me what happens in this line? because how
> mutch i read it..thought i don't get it :)
>
> list ($date, $laik) = split (' ', $row['time'], 2);
Well, it is rather inefficient code. Applying a regex just to break a
string up on a single chara
mailq's empty. i'll try a real address and see if i get a bounce notice.
* Manuel Lemos ([EMAIL PROTECTED]) wrote:
> Hello,
>
> On 07/31/2002 11:55 PM, Dan Radom wrote:
> >nope. all that did was prodice the following warning... Jul 31 20:53:47
> >mars sendmail[20790]: g712rkA20790: Authentica
I am a newbie in this area so please be patient for my silly question :)
I have a bad experience coding in PHP. I create a home page in PHP,
index.php. Within this PHP code, it calls functions which are placed in
other file. I notice that the page title changes to something that I don't
want i
You'd need to show us some code, preferably not 100's of lines perhaps
put it up on the web somewhere so we can see the source code or something.
Justin French
on 01/08/02 2:16 PM, Sailom ([EMAIL PROTECTED]) wrote:
> I am a newbie in this area so please be patient for my silly question :)
Google uses php to make a software download and installs it through the
browser!
How does this work ?
Lord Loh.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It's called Google Magic.
I don't really know the answer to your question. Google does a lot of
really neat things (like converting pdf to html).
tyler
On Thu, 1 Aug 2002 08:17:35 +0100
"Lord Loh." <[EMAIL PROTECTED]> wrote:
> Google uses php to make a software download and installs it throug
I suppose include() can be used to include files from remote systems(not on
WINDOWS).
So, How can I protect my script from unauthorised inclusions ?
A webmaster on the same server can always use a path like
"/home/htdocs/.../config.php" and include my config .php which contains my
database passw
On Thursday 01 August 2002 15:28, Lord Loh. wrote:
> I suppose include() can be used to include files from remote systems(not on
> WINDOWS).
>
> So, How can I protect my script from unauthorised inclusions ?
>
> A webmaster on the same server can always use a path like
> "/home/htdocs/.../config.p
To add to this - you should place critical information (like passwords, etc)
outside the document root. That way, even if the server is mis-configured,
others wont be able to easily gain access to those files
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, A
All included scripts inherit the variables of the parent script, so you
could test for numerous server variables like the name of the parent script
(PHP_SELF), or the domain name being used, etc etc. If it's not what you
expected, spit out an error.
something like
$_SERVER['HTTP_HOST'] might
Hi Randy,
Just copy the following code and execute it, it works as you
require, tested works fine.
string$i : $strDiv[$i]";
}
?>
- JFK
kishor
Nilgiri Networks
On Wed, 31 Jul 2002, Randy Johnson wrote:
> Hello,
>
> I would lik
http://myadress/php/mypage.php?modo=123&color=red&size=3
and to get
echo $_GET['modo']."";
echo $saci_color."";
echo $saci_size."";
===
Tested it! It worked!
G stands for GET
You can use P or C for POST or COOKIE
The order of gpc is important the later overwites the former
Thanks to those who helped me last time about creating image, but now there
is another problem...
I'm making a thumblain like this:
$base_size = 300;
$size = GetImageSize($image1);
$kof = ($size[0] > $size[1]) ? $size[0] : $size[1];
$koef = ($base_size / $kof);
"Other users on the same server *shouldn't* be able to include() in this
way"
How?
Would their $_SERVER['HTTP_HOST'] not be the same?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
101 - 159 of 159 matches
Mail list logo