[PHP] Re: includes question

2002-07-05 Thread Richard Lynch
>what is the path of the "includes" directory >in a windows dist of PHP (current version)? > >is that where all the dlls are? No. The DLLs are in your "extensions_path" (or something like that). Your include_path is where *YOUR* PHP files can be placed so you can use them in multiple scripts.

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Richard Lynch
>On Fri, 5 Jul 2002, Jerome Houston wrote: >> if the browser is making a request, and it sees an https:// at the beginning >> of the request URL, it will : >> 1. get the domain's public key from a public key server >> 2. encrypt the whole request with the domain's public key >> 3. submit it to

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Richard Lynch
>I saw that Microsoft has a Certificate Authority server package that allows >you to create your own key. Is there a way to do this in linux? In this >particular instance, it's me accessing my own web site. I'd like to encrypt >the session and I'm don't need someone to confirm anything. You ca

[PHP] Re: Print Question

2002-07-05 Thread Richard Lynch
>Question I have is > >I want to run a print job of 200+ invoices > >I have a javascript code to open a print dialog box and >Then go to next invoice and do the loop.. > >Problem I am having is that I want it to pause if the ok button on the >dialog >Box is not pressed.. > >When I run the scr

[PHP] Re: how to resort results of a query

2002-07-05 Thread Richard Lynch
>Also, how can I make certain columns into links? I'm making a site that >will list college courses. When users decide to browse listings by >discipline, or college, I'd like the titles of the courses to be links to >fuller descriptions of those courses. But I'm >not sure how to do that.

[PHP] Re: include errors

2002-07-05 Thread Richard Lynch
>i work on Win98, apache 1.3.24/PHP4.2.1. >I include a PHP file (867 lines) witch contains functions : > >include("include/fonctions.php"); > >This previous code is inserted in the upper frame and the left frame. >But sometimes, i've got errors like : > >Parse error: parse error, unexpected '.' in

[PHP] Re: png image doesn't show

2002-07-05 Thread Richard Lynch
>Hello all, > >I have been trying to modify the working of one of my pages which prints a >png graph. What I had was an included file named "graphit.php" which >creates a png file. I used the function >imagepng($image,'temp.png') to create an image and then used src=temp.png> to have the image

[PHP] Re: PHP Automatic Backup

2002-07-05 Thread Richard Lynch
>I was reading the post by Pag called “MySQL backups” and I have the same >question, but not the shell access. It came to my mind, that if will be >very useful for me, and probably for many of us newbie’s, to be able to >build an automated PHP system that could make backups by itself at a >specifi

[PHP] Re: How to use transparent png in createfrompng?

2002-07-05 Thread Richard Lynch
>Hi! > >I'm having problems with createfrompng… > >I do the following: > >1 Creates a new image > >2 Fill it with black > >3 copy an jpg on to it > >4 write some text > >5 tries to use copyimageresized to put a transparent png over the whole >image… > >It's in point 5 it goes wrong, because of som

[PHP] Re: Little optimisation question

2002-07-05 Thread Richard Lynch
>Hello php-general, > > I've recently faced big optimization issues. Here is mine >situation: > >I make connection to NNTP server and fetch headers from the news group >lets say bla.bla.bla. Connection made ok. Next Php tryes to put >everything into the array. It's okey if number of headers a

[PHP] Re: $_SESSION troubles

2002-07-05 Thread Richard Lynch
>Hello hello, > >I have this strange thing with a sort of login procedure (still working it >out, but it will work eventually) >On the first page, you log in (username + password) >Then we come to 'login.php' where I have this header > 1 2 session_start(); > 3 $logi

[PHP] Re: textarea new line

2002-07-05 Thread Richard Lynch
>i want to add in textarea a string with new line tag in it. how to do that? > >my try: >$string="-line1n\ -line2 n\-line3"; >echo "$string"; > >but i see a single line instead of: >-line1 >-line2 >-line3 > >tx in advance for any help In addition to using \n instead of n\, you also should do: ec

[PHP] Re: Maybe not the right place, but...

2002-07-05 Thread Richard Lynch
>Does anybody know which is the lenght limit for the parameter string >when GETting an URL? If there is a limit at all, of course. Yes. :-) The limit *USED* to be 255 characters. I think it's up to 1024 now, for GET. Any server *MAY* choose to impose *ANY* limit on GET, so long as they don't

[PHP] Re: help with session_decode in PHP 4.20 (fairly urgent)

2002-07-05 Thread Richard Lynch
>My web host has just upgraded to PHP 4.20. My MySQL database is full of >session_encoded fields, but since the upgrade I can no longer session_decode >them. > >After doing phpinfo I find the following settings ... > >register_argc_argvon on >register_globals on on > > >I'

Re: [PHP] ./configure with register_globals turned on?

2002-07-05 Thread Richard Lynch
>I tried following all of your suggestion and so far, still the same. I >tried changing other feature in the php.ini and check the phpinfo and found >that they haven't changed either. So, the problem lie with the file path in Aha! Then you *missed* the one where he said: Check phpinfo() and s

[PHP] Re: Session not expiring

2002-07-05 Thread Richard Lynch
>All, > >My session is not expiring and I believe that I set this correctly. >I'm looking for a 15 minute expiration time. > >My current setting: > >session.cookie_lifetime = 900 ; lifetime in seconds of cookie >; or if 0, until browser is restarted > >Is

[PHP] Re: Scheduling tasks

2002-07-05 Thread Richard Lynch
>Are there any scheduling fuctions with PHP? What I'm looking for is >something functionally close to a crontab. Most PHP sites just use crontab when they need crontab... :-) So you not have SSH access? How busy is your site? What kind of actions do you need to have occuring? You *COULD* hack

[PHP] Re: Stored Procedures

2002-07-05 Thread Richard Lynch
> I'm using a postgres datbase for my PHP project, how do I make stored >procedures? Or if no SPs then what would be recomendation for building >simple/reuseable "Put" and "Get" procedures for my data? Well, if nothing else, PostgreSQL does support user-defined functions, going 'way back. Tec

[PHP] Re: total (slightly OT)

2002-07-05 Thread Richard Lynch
> >Hey everyone, >Am working late as usual before the weekend and so I fear i'm a bit braindead! >Anyway,heres my problem >I have fields named "total" and "avg" and no idea how many records >how do I get the total and average? >Do I use a function? select sum(foo), average(foo), count(foo) fr

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Richard Lynch
>For Miguel Cruz posting back there. If I understand correctly, the private >key are inside the public key. Is this correct? If you have an SSL (or SSH, or whatever) key thingie, it always comes as a "pair" The private half, and the public half. You never, ever, ever, ever give the private ha

Re: [PHP] Re: Sort with PHP or SQL?

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! > Any suggestions on how to do this? Yes, 1) *DO* look around and find yourself some text about normalization. I mean, paper. Something you can hold in your hands without rushing to try-and-code it. Then get yourself a sigarette (if you are a smoker) and spend two hours of your lif

<    1   2   3