[PHP] Re: [PHP-GTK] Cannot enable extensions. Why?

2002-07-06 Thread Steph
Having just caught up with most of the threads on this thanks to MARC, can you please now explain why on earth you are insisting on loading PHP-GTK dynamically through a web server? The results should be interesting to say the least .. - Original Message - From: George Hester [EMAIL

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

2002-07-06 Thread Patrick Teague
*ANY* time you can sort/search in SQL, or you can do it in PHP, the SQL way will be faster. and Grouping and sorting is something databases specialize in. Any suggestions on how to do this? Currently I have a table with Headers another table with Pages... Should I create yet another

[PHP] Re: Stack Overflow with: zend optimizer

2002-07-06 Thread Richard Lynch
Hi there, zend optimizer 1.3.1 / IIS 5 / PHP 4.2.1 / Windows 2000 I've been getting Stack Overflow errors frequently. Our software has hundreds of db queries and hundreds of includes per page execution. Just to give you some context, so I can't tell you exactly what I'm doing that's causing

[PHP] Re: Uninitialized string offset

2002-07-06 Thread Richard Lynch
After upgrading to Red Hat Linux 7.3 (which also includes a new PHP version), I saw this warning (Uninitialized string offset) on my apache error log files. It refers to a line which was perfectly legal before: The new settings in php.ini are error_reporting E_ALL by default. Those errors have

[PHP] Re: MySQL news database structure

2002-07-06 Thread Richard Lynch
Hi, i am writing a news management system in PHP, with comments, etc, and i am wondering if theres a better way of structuring the tables to increase speed and stability. This is how i am structuring my tables: Table 1 (news) -- ID Date Author Title News

[PHP] Re: includes question

2002-07-06 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. The

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 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 the web

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 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 can

[PHP] Re: Print Question

2002-07-06 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 script it

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

2002-07-06 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 if

[PHP] Re: include errors

2002-07-06 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-06 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 img src=temp.png to have the image

[PHP] Re: PHP Automatic Backup

2002-07-06 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 specified

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

2002-07-06 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 some reason the png

[PHP] Re: Little optimisation question

2002-07-06 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 are

[PHP] Re: $_SESSION troubles

2002-07-06 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 ?php 2 session_start(); 3

[PHP] Re: textarea new line

2002-07-06 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 brtextarea name='aria' cols='50' rows='2'$string/textarea; but i see a single line instead of: -line1 -line2 -line3 tx in advance for any help In addition to using \n

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

2002-07-06 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-06 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've been

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

2002-07-06 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 see

[PHP] Re: Session not expiring

2002-07-06 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 this the

[PHP] Re: Scheduling tasks

2002-07-06 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-06 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.

[PHP] Re: total (slightly OT)

2002-07-06 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) from

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 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 half

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

2002-07-06 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

Re: [PHP] Re: png image doesn't show

2002-07-06 Thread hugh danaher
Thanks Richard, I changed from using img src=graphit2.php to a href=graphit2.phpgraph/a and now get my graph, on a page of its own, without any error messages. Works just fine, or will, when I change how it gets its data. However, I do want to have the graph display on a page with other

Re: [PHP] help with eval problems...

2002-07-06 Thread Paul Roberts
On Fri, 5 Jul 2002, Kelly Meeks wrote: If I had this information stored in a database field, img src=? echo $content_output[site_logo]; ? how could I assign it to a variable and output it? you have to ? first to leave php mode so you can do $content_output = logo.gig; $code = img

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Miguel Cruz
On Fri, 5 Jul 2002, Richard Lynch wrote: But unless you paid the $200 to get it from a CA, surfers will see a nasty (and totally inaccurate/misleading) warning about how insecure it is. It is easy to launch a man-the-middle attack against a session being initiated between a client and a server

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

2002-07-06 Thread Miguel Cruz
On Sat, 6 Jul 2002, Patrick Teague wrote: $query = SELECT * . FROM Headers LEFT JOIN Pages ON (Headers.Header_ID=Pages.Header_ID) . ORDER BY HeaderOrder DESC, Header, PageOrder DESC, PageTitle;; Any ideas on optimizing this? DB stuff doesn't come near the top of things I'm good at :)

RE: [PHP] Re: PHP Automatic Backup

2002-07-06 Thread César Aracena
Well, thanks for all the ideas. I will try to communicate with my host, but I'm sure they will go like ...is not possible unless Cobalt authorizes I also like the idea of making a hidden script that visitors will activate... C. -Original Message- From: Richard Lynch [mailto:[EMAIL

[PHP] Brand New Enviroment

2002-07-06 Thread César Aracena
Hi all. I know this is not entirely a PHP-related question, but most of you have been where I am now. I’m about to buy a used computer just for development purposes and I have a couple of questions before I close the deal. 1) It will probably be a Compaq Armada running a Celeron 600 and 256…

[PHP] Sockets 'requested address is not valid in its context'

2002-07-06 Thread Zac Hillier
Hi All, I'm opening a port on a remote machine presently I'm using fsockopen() which is fine for opening the port and sending data however I'm having trouble reading data back from the port. So I've considered using socket functions but do not appear to be able to get a connection. When I run

[PHP] How to copy a transparent png over an existing image using GD?

2002-07-06 Thread Victor Spång Arthursson
Hi! I'm trying to copy a transparent (copyright) image over an existing using GD, but can't get it to work… The copyright image is a png, and can be found here: http://adversus.no-ip.com/copyright.png. Does anyone either know how to perform this, or knows a link to some tutorial who

[PHP] Charset/language request headers

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! I am not too familiar with the way language and charset requests are coupled by browsers. After processing the headers I get this two arrays (based on my personal Mozilla settings). charset - Array ( [0] = KOI8-R [1] = utf-8 [2] = * ) language - Array ( [0] = ru [1] = en [2] = fr [3]

[PHP] session problem

2002-07-06 Thread Naintara Jain
I am storing some values in session variables. The behavior of the session is pretty unpredictable. On the first page I begin with: session_name(aname) session_start() session_register(var1,var2) In another page I check for existing value of session variable var2. In the next page I have the

[PHP] Charset/language request headers. Yes, it's true :(

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Doing multiligual sites presumes you can somehow understand what the client expects from you. Browsers all are full of language settings, but... The HTTP specification is very little language negotiation oriented in itself (this is probably a consequence of its having started out in

FW: [PHP] session problem

2002-07-06 Thread Naintara Jain
One thing I forgot to mention is that the same code works perfectly on the web server (running on Apache and a Unix flavor). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] t]On Behalf Of Naintara Jain Sent: Saturday, July 06, 2002 6:09 PM To: Php-General@Lists.

[PHP] Making sessions last longer?

2002-07-06 Thread Leif K-Brooks
Is there any way to make sessions last longer without access to php.ini? I know how to change the cookie length, but not how long the session is stored on the server. Is this possible? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: FW: [PHP] session problem

2002-07-06 Thread B.C. Lance
you might wanna check if register global is turned on or off. Naintara Jain wrote: One thing I forgot to mention is that the same code works perfectly on the web server (running on Apache and a Unix flavor). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

[PHP] mail help, and php.ini help.

2002-07-06 Thread Greg Scotts
i`ve coded a mass-mailer for my site but the $from header doesn't work. when i get a test message back from it it says from Unprivileged user = not what i set it to. How would i set it out using the syntax: $to # $from # $subject # $message # mail($to, $from, $subject, $message)

[PHP] help help help!!!!!!pls........

2002-07-06 Thread Balaji Ankem
Hi dear friend, I have multiple check boxes ...and I gave the single name to all check boxes. If I post to my php script I am not getting all the values as an array.I am getting only one value(last value). = html head script

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

2002-07-06 Thread Pekka Saarinen
At 7/5/2002, you wrote: I'm working on a way to pull menus/pages from a database. Currently I have this working on 2 levels - Topic headers actual page titles - it prints it out fairly nice doesn't take long to load. What I need to do is add a level between the 2, a sub-header. I'm

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

2002-07-06 Thread Pekka Saarinen
At 7/6/2002, you wrote: SORT BY and ORDER by I mean LIMIT and ORDER BY of course Time for some more coffee. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-06 Thread Ilia A.
On July 5, 2002 07:54 pm, Pete James wrote: Ilia A. wrote: The biggest annoyance I've come across is the fact that while using PostgreSQL with PHP is that when you fetch a row you must specify the number of the result, while in MySQL, that is handled internally by PHP for you. This

Re: [PHP] mail help, and php.ini help.

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Greg Scotts wrote: $to # $from # $subject # $message # mail($to, $from, $subject, $message) It always worked for me... you obviously checked variable content, did you? And I am not sure I got you right. Mail gets sent, it's just the sender address being wrong? Also, i was

Re: [PHP] help help help!!!!!!pls........

2002-07-06 Thread Alberto Serra
Balaji Ankem wrote: I have multiple check boxes ...and I gave the single name to all check boxes. If I post to my php script I am not getting all the values as an array.I am getting only one value(last value). Correct. Since they are all named in the same way, the last one

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

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Pekka Saarinen wrote: Also, many virtual hosts share MySQL server(s), so offering a choice to use PHP for pagination and sorting on own server RAM/CPU may by beneficial. I also believe that anything that produces less load to MySQL is good. Absolutely true. First time a customer

Re: [PHP] How to copy a transparent png over an existing image usingGD?

2002-07-06 Thread Rasmus Lerdorf
You need to use ImageCopyResampled() instead. And don't forget to turn on alpha blending beforehand using ImageAlphaBlending($im,true); -Rasmus On Sat, 6 Jul 2002, [ISO-8859-1] Victor Spång Arthursson wrote: Hi! I'm trying to copy a transparent (copyright) image over an existing using GD,

[PHP] Thanks

2002-07-06 Thread Skyhawk
Thanks Val Petruchek [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... FROM THE MANUAL: header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the past header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT);

[PHP] Figuring Out the Best Day in stats program

2002-07-06 Thread JJ Harrison
I have been going fine in a Web Stats program until now. How can I figure out which day has had the most records(ie visitors) inserted? There is a time column which has unix timestamp of when the record was inserted. The best I can think of currently is: To use a while loop to repeatedly query

[PHP] Compiling PHP

2002-07-06 Thread Leon Mergen
Hello, I'm currently camping with a problem... I have written a PHP application for a client of mine, however, I do not want have him seeing the source code. I know Zend has the Zend Encoder, however, this piece of software costs $2400 and since this is a one-time encoding request, I think this

Re: [PHP] Re: Stored Procedures

2002-07-06 Thread James Drabb
On Sat, 06 Jul 2002 01:16:28 -0500 Richard Lynch [EMAIL PROTECTED] wrote: 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

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Chris Shiflett
Richard Lynch wrote: You can create your own SSL key pair very, very, very easily... But unless you paid the $200 to get it from a CA, surfers will see a nasty (and totally inaccurate/misleading) warning about how insecure it is. They should. To do otherwise would be inaccurate and

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-06 Thread Devrim GUNDUZ
Hi, On Fri, 5 Jul 2002, Lazor, Ed wrote: How many here feel PostgreSQL has surpassed MySQL as the better backend for PHP? This would be based on performance (speed, scalability, etc.) and features. Surely PostgreSQL!!! If you aim is creating a database, then use PostgreSQL. if you want

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Chris Shiflett
Richard Lynch wrote: In the HTTPS exchange, however, extra key-pairs are generated on the fly, and the private half of the new pair are exchanged, encrypted with the public halfs of the old pairs, so that the server and the browser are using a UNIQUE public/private pair so that nobody can snoop

[PHP] phpBB Info

2002-07-06 Thread BrettM
I wanna be able to do some stuff, which involves getting data from my phpBB board. Member Count: (this section should autoupdate) Number Of Forums: (this section should autoupdate) Highest Post Count: (this section shouldauto update((member) with (post count) posts)) Most Replied to topic:

[PHP] PHP 4 broken after Apache upgrade

2002-07-06 Thread Chris Garaffa
OK, so I upgraded to Apache 1.3.26 on my RedHat machine after the security stuff last week. Saved my old httpd.conf file, just in case, and I did need it. Unfortunately, neither the old file, nor the new file, nor the new file modified to include PHP support, work. I added: LoadModule php4_module

Re: [PHP] PHP 4 broken after Apache upgrade

2002-07-06 Thread Devrim GUNDUZ
Hi, On Sat, 6 Jul 2002, Chris Garaffa wrote: OK, so I upgraded to Apache 1.3.26 on my RedHat machine after the security stuff last week. Saved my old httpd.conf file, just in case, and I did need it. Unfortunately, neither the old file, nor the new file, nor the new file modified to

Re: [PHP] PHP 4 broken after Apache upgrade

2002-07-06 Thread Chris Allen
Reinstall php. Did you do that when you upgraded Apache? For static link you need to re-install. For DSO not sure I do not run my systems that way. I havent heard of anyone else having problems. I will be updating myself this weekend so... Also you need to have the apache server handle the php

Re: [PHP] phpBB Info

2002-07-06 Thread Stuart Dallas
On Saturday, July 6, 2002 at 5:35:26 PM, BrettM wrote: I wanna be able to do some stuff, which involves getting data from my phpBB board. Member Count: (this section should autoupdate) Number Of Forums: (this section should autoupdate) Highest Post Count: (this section shouldauto

Re: [PHP] PHP 4 broken after Apache upgrade

2002-07-06 Thread Chris Garaffa
That's exactly what I needed to do... Thanks Devrim and Chris for your quick help. AhhhŠ back to coding! -- Chris Garaffa #!/usr/local/lib/php $contact_info[Name] = Chris Garaffa; $contact_info[Email] = [EMAIL PROTECTED]; $contact_info[Work] = [EMAIL PROTECTED]; $contact_info[cell] =

[PHP] Re: [PHP-GTK] Cannot enable extensions. Why?

2002-07-06 Thread George Hester
All fixed. Install the new PHP using the installer to get mappings set (almost) correctly in IIS 5. Make sure PHP works now. Then rename C:\php to C:\php01. Download the 5MB package with the components. Then rename the directory that conatins the files to php and put in C drive. Leave the ini

[PHP] FTP commands

2002-07-06 Thread Jose Arce
Hi, i'm making a script, that logs some ftp characteristics, like resume support and stuff...i try using ftp_site(), but it's not working I want to send a command like REST, but ftp_site() send the command like this: SITE REST, with the SITE before the command...any way to do it? Thx :D

Re: [PHP] Compiling PHP

2002-07-06 Thread Chris Hewitt
Leon, This was discussed on this list at length, ending about a week or so ago. Please look in the archives for it. There was a lot of detail which may be useful to you. Basically the consenus answer was no. Regards Chris Leon Mergen wrote: Hello, I'm currently camping with a problem... I

[PHP] Re: How to cast objects in arrays.

2002-07-06 Thread Anas Mughal
Thanks to everyone!!! I have figured it out... Anas Mughal [EMAIL PROTECTED] wrote: I have a function getRow() that returns a new instance of an object called IvActivity. I insert this new instance into $list. I need to call getTitle method on each of the inserted objects. However, I keep

[PHP] Help w/ sessionl variables plz!

2002-07-06 Thread Anthony Rodriguez
The following PHP script doesn't pass $course (statistics) to the next script. Why? ?php // file: root/reg_users_2.php, updated: 07/06/02 set_time_limit(300); session_start(); session_register(course); $course=statistics; header (location:estadisticas/contents.php); flush(); exit; ? Thanks!

[PHP] Re: Uninitialized string offset

2002-07-06 Thread Uri Even-Chen
Thanks for the advice! I understand the problem now. I think they added the Uninitialized string offset in Version 4.1.0 (see http://www.php.net/ChangeLog-4.php). That's why I didn't get this warning before. Anyway, I think I'll just add a sign to suppress warnings. I tried it last nights and it

Re: [PHP] suppressing errors with @

2002-07-06 Thread Uri Even-Chen
Thanks! I also think it might be a bug. I reported it as a bug report. Uri. Miguel Cruz wrote: On Sat, 6 Jul 2002, Uri Even-Chen wrote: I tried to suppress warnings in isset expressions (Uninitialized string offset warnings). The

[PHP] Help needed with hexdec();

2002-07-06 Thread frank
Hi Guys, I have a problem wich I hope has been solved by someone :-) Here's the deal, I have to convert a perl script to PHP trying to do so I get negative values from hexdec(), If I use (int)hexdec() the numbers aren't negative anymore, but they do not add up to what they should. Here's

FW: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Richard Lynch
:-) Don't tell me if you're gonna use it for production!!! Depends on your user-base. If all of them know that the only difference is $119, and all of them inherently trust your web-server and domain name to be correct, there is no more risk with the free one. It's a true shame that the

[PHP] FW: upload file size

2002-07-06 Thread Richard Lynch
I can't seem to upload file bigger than 5M even if I set the upload_max_filesize to 20M in php.ini and MAX_FILE_SIZE to 20M in the script. What's am I missing here? Is the temporary upload directory won't handle file this size? Please give me some pointers here. TIA. Does ?php phpinfo();? show a

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Richard Lynch
On Fri, 5 Jul 2002, Richard Lynch wrote: But unless you paid the $200 to get it from a CA, surfers will see a nasty (and totally inaccurate/misleading) warning about how insecure it is. It is easy to launch a man-the-middle attack against a session being initiated between a client and a server

Re: [PHP] Re: Stored Procedures

2002-07-06 Thread Richard Lynch
Stored procedures are like any other type of programming construct. You can do them right or you can do them wrong. Yeah, and GOTO is perfectly fine... In the right place. When making a stored procedure you should stick to ansi SQL as much as possible. All my SQL was so dirt-simple, it

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Richard Lynch
But unless you paid the $200 to get it from a CA, surfers will see a nasty (and totally inaccurate/misleading) warning about how insecure it is. They should. To do otherwise would be inaccurate and misleading. The transmission is no less secure -- It's that the web-server on the other end was

[PHP] Re: mail help, and php.ini help.

2002-07-06 Thread Richard Lynch
i`ve coded a mass-mailer for my site but the $from header doesn't work. It works for about a million others. Show us source code. when i get a test message back from it it says from Unprivileged user = not what i set it to. That sounds more like email bouncing... But it could be your

[PHP] Re: help help help!!!!!!pls........

2002-07-06 Thread Richard Lynch
Re: help help help!!pls First, use a valid subject. Experts will simply hit Delete for such vague subjects as Help I have multiple check boxes ...and I gave the single name to all check boxes. If I post to my php script I am not getting all the values as an array.I am

[PHP] Re: Figuring Out the Best Day in stats program

2002-07-06 Thread Richard Lynch
I have been going fine in a Web Stats program until now. How can I figure out which day has had the most records(ie visitors) inserted? There is a time column which has unix timestamp of when the record was inserted. The best I can think of currently is: To use a while loop to repeatedly query

[PHP] Re: phpBB Info

2002-07-06 Thread Richard Lynch
I wanna be able to do some stuff, which involves getting data from my phpBB board. Member Count: (this section should autoupdate) select count(*) from some_table_whose_name_I_do_not_know_but_you_can_look_up_in_phpMyAdmin Number Of Forums: (this section should autoupdate) select count(*) from

[PHP] Re: FTP commands

2002-07-06 Thread Richard Lynch
Hi, i'm making a script, that logs some ftp characteristics, like resume support and stuff...i try using ftp_site(), but it's not working I want to send a command like REST, but ftp_site() send the command like this: SITE REST, with the SITE before the command...any way to do it? Thx :D This

[PHP] Re: Help w/ sessionl variables plz!

2002-07-06 Thread Richard Lynch
The following PHP script doesn't pass $course (statistics) to the next script. Why? ?php // file: root/reg_users_2.php, updated: 07/06/02 set_time_limit(300); session_start(); session_register(course); $course=statistics; header (location:estadisticas/contents.php); flush(); exit; ? Three

[PHP] Re: Help needed with hexdec();

2002-07-06 Thread Richard Lynch
I have to convert a perl script to PHP trying to do so I get negative values from hexdec(), If I use (int)hexdec() the numbers aren't negative anymore, but they do not add up to what they should. From the manual: http://php.net/hexdec The largest number that can be converted is 7fff or

[PHP] iptables logging

2002-07-06 Thread James Drabb
Hey group, I have set up iptables based on the BLFS book. I have a rule like: # Log everything else: What's Windows' latest exploitable # vulnerability? $IPTABLES -A INPUT -j LOG --log-prefix FIREWALL:INPUT The output is going into /var/log/kern.log is there anyway I

[PHP] PHP/MySQL and parameterized queries

2002-07-06 Thread Henry
Does MySQL support parameterized queries (e.g., INSERT INTO table (Col1,Col2) VALUES (?,?)), and if so, is there a PHP function that allows you to create and attach parameters to MySQL queries? Thanks, Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] iptables logging

2002-07-06 Thread James Drabb
Opps, I sent to the wrong list : ) Sorry, Jim Drabb -- James Drabb JR - Programmer Analyst - Orlando, FL - [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Error: Parse error: parse error, unexpected $ in...

2002-07-06 Thread Shiloh Madsen
Hi all. Im getting the above mentioned error: *Parse error*: parse error, unexpected $ in *c:\program files\apache group\apache\htdocs\login.php* on line *38* when I try to view the page I just created. As a forewarning, I am very new to PHP, so I may have done something stupid, and if it

Re: [PHP] Re: Stored Procedures

2002-07-06 Thread James Drabb
On Sat, 06 Jul 2002 15:27:47 -0500 Richard Lynch [EMAIL PROTECTED] wrote: Do you have *ANY* idea how quickly: select * from MyTable can be parsed and an execution plan selected?! It's CHUMP CHANGE in time. *ONLY* if your SQL is so incredibly complicated that you can't even understand

Re: [PHP] Error: Parse error: parse error, unexpected $ in...

2002-07-06 Thread Jose Arce
that error appears many times to me...you can show some code so we all can see what's wrong, but i've solved it adding a }, as i told you, manny times it has appear to me, and that's the way i've solved it :D From: Shiloh Madsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Error:

[PHP] issue with script after php upgrade

2002-07-06 Thread Jamie Novak
Firstly, I apologize if this has already been asked in the past; I've not been a regular reader of this list and I couldn't find mention of my problem after a cursory search of the archives (which are a bit overwhelming to search exhaustively)... On one of my machines, I'm running PHP 4.1.2. On

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Chris Shiflett
Richard, Honestly, I think you need to just buy on book on this. I think I explained things pretty clearly, and your confusion now seems to be based more on a lack of trusting my explanation more than anything. I can't imagine how you could still be this confused. I will try to explain once

Re: [PHP] issue with script after php upgrade

2002-07-06 Thread Jason Wong
Jamie Novak said: On one of my machines, I'm running PHP 4.1.2. On another machine, I'm running 4.2.1. The script I'm having problems with runs fine under 4.1.2, but fails to work under 4.2.1. http://myserver/index.php?dir2=somedirectory In 4.1.2, if I echo $dir2 at the beginning of the

Re: [PHP] I would like to ask about Photo Upload in mysql and reteive problem .

2002-07-06 Thread Jason Wong
Jimmy Lam said: I am a new bie here and I would like to know more about coding in upload photo file by client side and store in mysql database. also , how can I show the photo in the HTML CODING embeded and get the image directly from the database ? thanks . could you mind provide some

Re: [PHP] issue with script after php upgrade

2002-07-06 Thread Jamie Novak
On 07/06, Jason Wong rearranged the electrons to read: php.ini register_globals Well, that was simple and stupid. :/ Thank you for the prompt reply. Obviously, that did the trick. - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Figuring Out the Best Day in stats program

2002-07-06 Thread JJ Harrison
Here is my code: ? $query = select count(*) as monthly_views from visitors group by extract('year', time), extract('month', time) order by monthly_view desc limit 1; $result = mysql_query($query); $num_results = mysql_num_rows($result); echo $num_results; echo mysql_error(); ? When I execute it

Re: [PHP] issue with script after php upgrade

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Jamie Novak wrote: http://myserver/index.php?dir2=somedirectory In 4.1.2, if I echo $dir2 at the beginning of the script just for testing, it will echo the value of the variable without issue. In 4.2.1, the variable never appears to get set at all, although it does show up just

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Chris Shiflett wrote: Richard, Do you really believe that for $200 (or $119, or $500) that they proven themselves trustworthy? LOL no, I don't. As a matter of fact crooks usually have more money in their pockets than honest people do, so it's highly possible that a crook will pay

[PHP] Retrieving/Displaying hyperlinked images with PHP

2002-07-06 Thread markbm
I am trying to build a product detail page that pulls data from a MYSQL database using PHP. The data for the page includes product images, which I am trying to link to (i.e. from their location on the web server) instead of loading the images into the database. However, I cannot find any sample

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Richard Lynch
Honestly, I think you need to just buy on book on this. I think I explained things pretty clearly, and your confusion now seems to be based more on a lack of trusting my explanation more than anything. I can't imagine how you could still be this confused. What I can't imagine is how confused

Re: [PHP] Re: FTP commands

2002-07-06 Thread Jose Arce
From: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: FTP commands Date: Sat, 06 Jul 2002 17:02:20 -0500 Hi, i'm making a script, that logs some ftp characteristics, like resume support and stuff...i try using ftp_site(), but it's not working I want to send a

Re: [PHP] Thanks

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Probably a stupid question. Is there anyway to force POSTing a form from the refresh META? META HTTP-EQUIV=Refresh CONTENT=2;URL=someURL/somescript.php IMHO that is NOT possible, but maybe I am wrong. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× --

  1   2   >