Re: [PHP] md5 question

2002-12-05 Thread Chris Wesley
On Fri, 6 Dec 2002, conbud wrote: > Hey. Is there a way to get the actual word/phrase from the long string that > the md5 hash creates. Lets say, is there a way find out what > b9f6f788d4a1f33a53b2de5d20c338ac > stands for in actuall words ? In all cases, an md5sum string means, "You've got bette

[PHP] md5 question

2002-12-05 Thread conbud
Hey. Is there a way to get the actual word/phrase from the long string that the md5 hash creates. Lets say, is there a way find out what b9f6f788d4a1f33a53b2de5d20c338ac stands for in actuall words ? Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] MySQL ?

2002-12-05 Thread Tom Rogers
Hi, Friday, December 6, 2002, 2:08:42 AM, you wrote: h> I am really sorry but i can't find any good mySQL good mailing list... h> How can i make a little php function to check if a table exists ? h> Thanks a lot, h> Hacook function table_exists($table){ return (@mysql_query('SELEC

RE: [PHP] Need Redirection Trick...

2002-12-05 Thread @ Nilaab
Great Jason, thanks a lot. I was just looking for some direction and I think you just helped me find it. Thanks for taking the time to look at my problem.:) - Nilaab > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 11:46 PM > To: [

RE: [PHP] Need Redirection Trick...

2002-12-05 Thread Roger Lewis
Nilaab, This sounds similar to what I was trying to do recently, i.e creating dependent dropdown boxes. Here's a link to a demo of the code that might be of interest to you. http://www.onlinetools.org/tools/easyselectdata/index.html Cheers. Roger -Original Message- From: @ Nilaab [mail

Re: [PHP] Need Redirection Trick...

2002-12-05 Thread Jason Wong
On Friday 06 December 2002 11:35, [EMAIL PROTECTED] wrote: > Hello Everyone, [lots of irrelevant stuff snipped] > The second thing that should happen is that if there are actually no > subcategories for the selected category then subcat_id should equal 0 and > the script should redirect back to t

Re: [PHP] MySQL ?

2002-12-05 Thread Justin French
1. there is a MySQL mailing list, details can be found on mysql.com 2. i just did a really simple search on php net for "mysql table", and got the following amongst a few results: mysql_field_table() mysql_list_tables() mysql_tablename() it would be good if you could search the php (and mysql) s

[PHP] empty string parameters to backslashes?

2002-12-05 Thread andyw
Hey all - I'm trying to track down a problem with someone else's code. Our hosting service changed PHP versions on us (up to 4.0.6), and everything broke. I think I have tracked down at least part of the problem. We have a function: funA($args) { $file = substr($args[0],0, -1); //file t

[PHP] Re:

2002-12-05 Thread Karl James
Help need one on one I was wondering if anyone would be willing to be a mentor While im doing this project. Im using mysql and php To do a login script with username and passwords. And also to do insert to database from a register form. Then I want to do a online fantasy football league whe

Re: [PHP] PHP includes without access to the default directory

2002-12-05 Thread Morgan Hughes
On Thu, 5 Dec 2002, Gundamn wrote: > I have a hosted account. As such, I am unable to use the default location > for files when used with the include command. So could somebody tell me how > I can either make it go to a different directory, or to link to something > (and how to add the variable as

[PHP] Need Redirection Trick...

2002-12-05 Thread @ Nilaab
Hello Everyone, I have a simple problem that, I think, might require a little trick to be used. I have a list of products in a database that is organized by categories and subcategories. Categories can have as many subcategories as it wants, but some categories don't need to have a subcategory at

Re: [PHP] Sending no content-type header?

2002-12-05 Thread Leif K-Brooks
Ok, thanks a lot. For what it's worth, here's my simple .bat file for executing php files: @ECHO OFF IF NOT EXIST %1.php goto usage php.exe -q %1.php goto end :usage echo ÚÄÄÄ¿ echo ³ USAGE ³ echo ³Type "php.bat" (without quotes)³ echo ³ follow

Re: [PHP] Sending no content-type header?

2002-12-05 Thread Chris Wesley
On Thu, 5 Dec 2002, Leif K-Brooks wrote: > I'm running a few simple php scripts from the (windows) command line. > Since I'm not using a web browser to view it, the HTTP headers are > annoying and pointless. I've turned expose_php off in php.ini, but > commenting out default_mimetype changes noth

[PHP] Sending no content-type header?

2002-12-05 Thread Leif K-Brooks
I'm running a few simple php scripts from the (windows) command line. Since I'm not using a web browser to view it, the HTTP headers are annoying and pointless. I've turned expose_php off in php.ini, but commenting out default_mimetype changes nothing, and setting it to an empty string sends a

RE: [PHP] Easy array stuff I think for those who can I guess.

2002-12-05 Thread John W. Holmes
If this is mysql, you can use SELECT * FROM konkuranse ORDER BY RAND() LIMIT 1 To get a random row and skip all that stuff you have... ---John Holmes... > -Original Message- > From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 5:36 PM > To: [EMAIL

RE: [PHP] Hiding Errors

2002-12-05 Thread John W. Holmes
> Is there a way to have errors in script not output to the screen? I have a > page that creates an error which really isn't a problem and I don't want > users to see the error message. If this is a production machine, you should have display.errors OFF in php.ini ---John Holmes... -- PHP Gen

[PHP] PHP includes without access to the default directory

2002-12-05 Thread Gundamn
I have a hosted account. As such, I am unable to use the default location for files when used with the include command. So could somebody tell me how I can either make it go to a different directory, or to link to something (and how to add the variable as the filename)? Thank you in advance. --

[PHP] Re: PHP and Ensim Question

2002-12-05 Thread UberGoober
For those that don't know what ensim is, its a virtual hosting software (www.ensim.com), Mike - There is another setting in /etc/httpd/conf/httpd.conf to set safe mode off. I don't suggest you do this though. I would suggest you use the ensim bulliten board for these questions IMOHO. -- "Mike B

[PHP] phpOpenTracker.

2002-12-05 Thread Dave Mc
Hi, Is anyone on the list using this package? I've searched and can find no examples of its use, outside those provided on the OpenTracker Website. Is it possible to use the package on multiple hosted sites? All my virtuals show up as one site and the referers include my site. Confu

Re: [PHP] Advice with encrypting+storing sensitive data

2002-12-05 Thread bahwi
Sorry, it was late at night. I'm glad you have the SSL and everything else already taken care of. What I meant was for you to build your own session system, so that it is secure, instead of using PHP's built in session system. Someone once said that it has a 1% chance of cleaning up the session

Re: [PHP] Advice with encrypting+storing sensitive data

2002-12-05 Thread Robert Mena
Thanks Bahwi, I agree with you regarding the client-side aspect. But since we are talking about a regular web-based application in php I think I will have to deal with that. The other security concerns are already addressed, such as the use of SLL to encrypt the traffic and possibly the use of a

[PHP] SuSE 8.0 php 4.1.2 .spec file

2002-12-05 Thread Razvan Cosma
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Maybe I should post this to the -install mlist, but it is not the installation (./configure, make...) that causes problems, but the fact that I want to keep dependencies. So - does anyone have a working $subj? Thank you very much for any hi

[PHP] PHP and Ensim Question

2002-12-05 Thread Mike Bowers
I have a question regarding PHP Safe-Mode and Ensim. On my master confing (/etc/php.ini) safe mode is off. But on each domain and site I installed on the server the local config file for that site turns safemode on. Doesn anyone know where Ensim puts the config files? I've tried to find them

[PHP] Easy array stuff I think for those who can I guess.

2002-12-05 Thread Raymond Lilleodegard
Hi! I am trying to get out a value of an array that I have made from a query and deliver the value into a variable. I have made this code. Am I totally lost? while ($myrow = mysql_fetch_array($result)); { $id = $myrow['id']; $deltaker[] = array ($id); } $limit = count($deltaker); $finn_v

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
No, I wasn't going to ask that. But thanks for the info. :P - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]>; "Kevin Stone" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 3:14 PM Subject: Re: [P

Re: [PHP] Hiding Errors

2002-12-05 Thread Brad Pauly
On Thu, 2002-12-05 at 14:32, vernon wrote: > Is there a way to have errors in script not output to the screen? I have a > page that creates an error which really isn't a problem and I don't want > users to see the error message. You can also use set_error_handler to deal with errors however you li

[PHP] Re: Passthru / exec question - '127' returned

2002-12-05 Thread Lee P. Reilly
Ahhh... no reply necessary. safe_mode :-o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passthru / exec question - '127' returned

2002-12-05 Thread Lee P. Reilly
Hi, I've ran into a problem using the passthru/exec commands with RH8. When I try and run my program (or even "pwd", "ls", etc) the number '127' is returned every_time. With passthru, the size of the optional return array is 0. Can anyone fathom a guess at the problem? Is the 127 value signifcant?

Re: [PHP] Hiding Errors

2002-12-05 Thread bahwi
I'm not too familiar with this method, but trying putting the @ symbol in front of the statement. ex: $file = @fopen(.); Hope this helps. --Joseph Guhlin http://www.josephguhlin.com/ Web Programmer / Unix Consultant / PHP Programmer -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Hiding Errors

2002-12-05 Thread Richard Baskett
If it is a function that you are getting an error on, just go ahead and put a '@' sign before the function so for example @fopen(); or you can change the error reporting in the php.ini file. I do believe there is an error reporting function also, but off the top of my head I cant remember what it

[PHP] Hiding Errors

2002-12-05 Thread vernon
Is there a way to have errors in script not output to the screen? I have a page that creates an error which really isn't a problem and I don't want users to see the error message. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PEAR-DEV] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Arnaud Limbourg
> Where's the PEAR context within the marketing text? Please, don't start any troll/flame war. Arnaud. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Q: Use getImageSize() on image data from email?

2002-12-05 Thread Morgan Hughes
On Thu, 5 Dec 2002, Mans Jonasson wrote: > Hi all, > I am trying to use getImageSize() on imagedata I am receiving in an > e-mail and collecting with imap_fetchstructure() et al. What I have in > my $image variable is just the actual image data - no headers or > anything, and of course getImageSiz

Re: [PHP] Looping Addition

2002-12-05 Thread 1LT John W. Holmes
> But then, if the user entered 5 - 6, it should be -1 but it'd return > positive one... Is there another way? Come on, man... this is addition and subtraction. You can't figure it out? > > You simply need the absolute value of the difference. So taking Stephen's > > example below.. > > > > $tot

Re: [PHP] socket timeout

2002-12-05 Thread Chris Shiflett
--- Gareth Thomas <[EMAIL PROTECTED]> wrote: > I am attempting to timeout a socket_read() that is part > of a handshaking process using socket_set_timeout(). > Problem is it doesn't seem to work at all. If I switch of > the handshaking write on the server side the read just > sits there and doesn't

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
But then, if the user entered 5 - 6, it should be -1 but it'd return positive one... Is there another way? - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]>; "Chris Wesley" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday,

Re: [PHP] Looping Addition

2002-12-05 Thread Kevin Stone
You simply need the absolute value of the difference. So taking Stephen's example below.. $total = 0; foreach( $_POST['nums'] as $number ) { $total -= $number;// if users inputs 5 as first value result equals -5 $total = abs($total); // result now equals 5 } - Original Message -

[PHP] Re: Safe mode and safe_mode_exec_dir

2002-12-05 Thread James Hatridge
Hi Rodrigo et al... On Thursday 05 December 2002 16:09, Rodrigo Borges Pereira wrote: > Hello all, > > directly in /etc/php.ini doesn't work either. I noticed PHP was compiled > with --with-exec-dir=/usr/bin, but i suppose that what we define in > php.ini (at least) overrides that. I had hell wit

RE: [PHP] paging through results of mysql query

2002-12-05 Thread Larry Brown
Much Gratefulness on my part! Finally, my server and I can catch our breath. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:47 PM To: 'Larry Brown'; 'PHP List' Subject: RE: [PH

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
Continuing this even more...how would I use this same method only to subtract? What I'm doing right now would result in the following sitution. The user types in 5 as their first number. The second number is 4. Instead of returnin 1, it returns -9. It's subtracting the first number from 0, then t

Re: [PHP] Repeating Decimals

2002-12-05 Thread 1LT John W. Holmes
> This is another PHP mathematical question. How can I display a bar over a > number (overline) if it's a repeating decimal? When the user types in 1 by > 3, they get 0.. I want it to display as 0.3 with the 3 > overlined. How can I do this keeping in mind that not all numbers will be >

Re: [PHP] fopen over a network

2002-12-05 Thread Joakim Andersson
Dara Dowd wrote: Thanks for the advice lads but I realise I should have been clearer. I know about header(etc..) so displaying the download dialog isn't the problem, it's how to get to the file on the file server and then open it. The file server isn't a web server. This is probably ridiculously

Re: [PHP] Session and redirecting

2002-12-05 Thread 1LT John W. Holmes
> I'm having some problems with sessions on this project I am doing for this > one class. I know what I am doing with sessions on a certain level, as I > use them with ASP and JSP apps. I notice that when I do session_start() the > session SID or PHPSESSID doesnt appear until you refresh that pag

[PHP] Repeating Decimals

2002-12-05 Thread Stephen
Hello again, This is another PHP mathematical question. How can I display a bar over a number (overline) if it's a repeating decimal? When the user types in 1 by 3, they get 0.. I want it to display as 0.3 with the 3 overlined. How can I do this keeping in mind that not all numbers wil

[PHP] Session and redirecting

2002-12-05 Thread Didier McGillis
I'm having some problems with sessions on this project I am doing for this one class. I know what I am doing with sessions on a certain level, as I use them with ASP and JSP apps. I notice that when I do session_start() the session SID or PHPSESSID doesnt appear until you refresh that page or

[PHP] PHP Configuration - Can't Change Post_Max_Size

2002-12-05 Thread Roger Lewis
This is further to my post yesterday on Max File Size. I was able to set upload_max_filesize to 790 and I can therefore upload files up to that size. I would now like to increase that limit, but I am limited by post_max_size which defaults to 8M. I can't seem to change the value of post_max_

[PHP] Error in host server data stream

2002-12-05 Thread Daniel
my php code is working on one machine and not on another. I am now getting the error Warning: SQL error: [unixODBC][IBM][iSeries Access ODBC Driver]Error in host server data stream., SQL state S1000 in SQLExecDirect working machine: unixodbc 2.2.2-2 php-odbc4.1.2-7.2.4 non working:unixodbc

Re: [PHP] A small problem with input feilds.

2002-12-05 Thread Tim Ward
only checked checkboxes are submitted therefore you have to number the form fields if you want to keep the relationship between the arrays - this should be easy enough if the form is generated by your code. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From

[PHP] A small problem with input feilds.

2002-12-05 Thread Mike
Hello everyone, I have the following html code that is generated via a script: ArtistTitleFile SizeCheck Dj Ummet Pump This Party (extended Mix) About 4.5 megabytes Metalica Enter Sandman About 4.43 megabytes

[PHP] RE: [PEAR-DEV] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Lukas Smith
> -Original Message- > From: Björn Schotte [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 6:42 PM > To: Manuel Lemos > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; pear- > [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject:

RE: [PHP] paging through results of mysql query

2002-12-05 Thread John W. Holmes
> I know I'm trying to re-invent the wheel, but it is because I don't know > how > they do it. I set up a script to pull a ruleset from mysql and then loop > through each row in the set. I then check each row as it loops until I > get > to the row number I want and start echoing rows. I create t

[PHP] paging through results of mysql query

2002-12-05 Thread Larry Brown
I know I'm trying to re-invent the wheel, but it is because I don't know how they do it. I set up a script to pull a ruleset from mysql and then loop through each row in the set. I then check each row as it loops until I get to the row number I want and start echoing rows. I create the row numbe

[PHP] Re: [PEAR-DEV] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Björn Schotte
* Manuel Lemos wrote: > Here is the release announcement that may also be found on the site: Where's the PEAR context within the marketing text? -- 35 Kundenportale mit 24.000 Nutzern erstellen. Bei geringen Kosten und einer großen Anzahl an Modulen (DMS, CMS, CRM, Community-Funktionen). Wie d

[PHP] Re: socket timeout

2002-12-05 Thread Gareth Thomas
Hi, apparently this does not work with socket_read() but only with higher level socket functions (fread etc). However I have found a function called socket_set_nonblock(socketname) which apparently does something very similar, it prevents the socket_read from waiting to receive data. I simply buil

[PHP] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Manuel Lemos
Hello, Finally I made time to release a full blown application based on MetaL compiler persistence module. Here is the release announcement that may also be found on the site: http://www.meta-language.net/news-2002-12-05-metastorage.html __

[PHP] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Manuel Lemos
Hello, Finally I made time to release a full blown application based on MetaL compiler persistence module. Here is the release announcement that may also be found on the site: http://www.meta-language.net/news-2002-12-05-metastorage.html __

[PHP] IMG SRC .ico (icons)

2002-12-05 Thread Benja
Hi everybody, The icons (.ico) are not displayed correctly by all the browsers (I.E. 5, etc...). After some research, it appears the only solution is to convert the .ico in GIF or JPEG... Do you know if a PHP script could do that conversion ? Take a icon and create a GIF or JPEG file... Thanks f

Re: [PHP] Sesion Vars get reseted

2002-12-05 Thread 1LT John W. Holmes
What OS are you on? ---Quote--- Note: If you are using the default file-based session handler, your filesystem must keep track of access times (atime). Windows FAT does not so you will have to come up with another way to handle garbage collecting your session if you are stuck with a FAT filesystem

RE: [PHP] Sesion Vars get reseted

2002-12-05 Thread Miguel López Dinaweb Dpto. Programación
I'm using php's built in functions, and i've made a very basic script thats keeps reloading minute by minute and wen it was more than 24 minutes (1440 seconds) reloading in any moment the variables gets reseted. Also the last acced time from the file were the session data is stored is updated every

[PHP] socket timeout

2002-12-05 Thread Gareth Thomas
Hi, I am attempting to timeout a socket_read() that is part of a handshaking process using socket_set_timeout(). Problem is it doesn't seem to work at all. If I switch of the handshaking write on the server side the read just sits there and doesn't time out at all. I have tried socket_set_timeout(

Re: [PHP] Advice with encrypting+storing sensitive data

2002-12-05 Thread bahwi
Sorry, OpenSSL is base in FreeBSD, so I didn't have to set it up myself. You can check www.openssl.org and www.apache.org. You still have to buy a cert though. For that, try: www.verisign.com and www.instantssl.com --- seems alot cheaper, no experience with them however But chances are your be

[PHP] Re: MySQL ?

2002-12-05 Thread Bastian Vogt
Hi, use mysql_list_tables(); HTH, Bastian Hacook schrieb: > I am really sorry but i can't find any good mySQL good mailing list... > > How can i make a little php function to check if a table exists ? > > Thanks a lot, > Hacook -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] MySQL ?

2002-12-05 Thread hacook
I am really sorry but i can't find any good mySQL good mailing list... How can i make a little php function to check if a table exists ? Thanks a lot, Hacook -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: code for my question about sessions ;) sorry

2002-12-05 Thread 1LT John W. Holmes
[snip] > function login($username) > { > global $valid_user; > $valid_user = $username; > session_register("valid_user"); > } It _should_ work. My only guess is that maybe because you're registering something inside of a function, it's messing up, even though the variable is global. I don'

Re: [PHP] Sesion Vars get reseted

2002-12-05 Thread 1LT John W. Holmes
- Original Message - I'm having a trouble with session vars, that i suspect that is related to garbage collection system. I start a session and make and continuos use of it, but sudently the session vars are reseted, the time when this ocurs is variable, always after passing the time of gar

RE: [PHP] Problem with functions

2002-12-05 Thread Carlos Alberto Pinto Hurtado
Carlos Alberto Pinto Hurtado IT ICA (57 1) 2322181 (57 1) 2324698 Movil.(57 3) 310 6184251 -Mensaje original- De: Victor Halla [mailto:[EMAIL PROTECTED]] Enviado el: Wednesday, December 04, 2002 6:16 PM Para: [EMAIL PROTECTED] Asunto: [PHP] Problem with functions Hi, I have de foll

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread Joshua E Minnie
I am wondering if it has something to do with the way that MySQL is storing the data. But I can't seem to find anything that is helping me when I search on MySQL related strings. +-+-+ | Joshua Minnie |Tel: 269.276.9690 | | [EMAIL PROTECTED

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread John Wards
On Thursday 05 Dec 2002 3:54 pm, Joshua E Minnie wrote: > Already tried that. Doesn't seem to change anything. > how about \r John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread 1LT John W. Holmes
Or $notes = preg_replace("/(\r)?\n/"," ",$_POST['notes']); in case it's the \r that's actually messing you up and not the \n? ---John Holmes... - Original Message - From: "John Wards" <[EMAIL PROTECTED]> To: "Joshua E Minnie" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, Dece

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread Joshua E Minnie
Already tried that. Doesn't seem to change anything. - Original Message - From: "John Wards" <[EMAIL PROTECTED]> To: "Joshua E Minnie" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 10:48 AM Subject: Re: [PHP] Newline charactes causing problems On Thursday 05

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread John Wards
On Thursday 05 Dec 2002 3:48 pm, Joshua E Minnie wrote: > A load of stuff.. I just read the fist few paragraphs and got bored;-) but Have you tried doing a str_replace for \n which is new line? just replate it with a blank string John -- PHP General Mailing List (http://www.ph

Re: [PHP] Browser going to page twice?

2002-12-05 Thread Step Schwarz
on 12/2/02 6:12 PM, Leif K-Brooks at [EMAIL PROTECTED] wrote: > I'm having a weird problem. When I go to a page on my site, it often > goes twice. I'm not sure if this is a client-side or server-side > problem, but it doesn't happen on other sites. Is this a common > problem, or am I making som

[PHP] Newline charactes causing problems

2002-12-05 Thread Joshua E Minnie
Hey all, I know this has been asked before, and I have tried many of the solutions that were posted in the mailing archives, and also did some googling. But I can't seem to eliminate some new line characters from a string. Here is the scenario: 1. A user inputs some text into an form and sub

Re: [PHP] Looping Addition

2002-12-05 Thread Jason Wong
On Thursday 05 December 2002 23:05, Stephen wrote: > So would I just put this? > > foreach(%_POST['number'] as $num) > { > $output *= $num; > } > echo $output; > > That's for multiplication. Yes. Wouldn't it have been quicker for you to try it than to ask? BTW make sure that none of $num is z

[PHP] Q: Use getImageSize() on image data from email?

2002-12-05 Thread Mans Jonasson
Hi all, I am trying to use getImageSize() on imagedata I am receiving in an e-mail and collecting with imap_fetchstructure() et al. What I have in my $image variable is just the actual image data - no headers or anything, and of course getImageSize() doesn't work that way. Now, the question is

[PHP] Safe mode and safe_mode_exec_dir

2002-12-05 Thread Rodrigo Borges Pereira
Hello all, I'm having a bit of a problem making a particular configuration with PHP and Apache. Here's the deal: I want to have php running with safe mode, so i define safe mode = On on /etc/php.ini. I have this script that i need to execute two programas, with exec(). So, in apache, i define a

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
So would I just put this? foreach(%_POST['number'] as $num) { $output *= $num; } echo $output; That's for multiplication. - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, December

[PHP] C#

2002-12-05 Thread Wilmar Perez
Hello guys I'm sorry if this message disturbs anyone, I know it is completely off topic. I've been thinking about open a C# mailing list for I hadn't been able to find a good one so far. All I want to know is if there is enough people out there interested in joining such list. I posted this

[PHP] Shopping Cart Rewrite

2002-12-05 Thread beno
Hi; PHP isn't my strong language so I need your help. I'm writing a patch to a shopping cart called fishcart < http://fishcart.org > The following code works well in another page. I pass the variable $related to the page that I'm patching: $fcrp=new FC_SQL; $fcrp->query("select relprod from

[PHP] Sesion Vars get reseted

2002-12-05 Thread Miguel López Dinaweb Dpto. Programación
Hi, I'm having a trouble with session vars, that i suspect that is related to garbage collection system. I start a session and make and continuos use of it, but sudently the session vars are reseted, the time when this ocurs is variable, always after passing the time of garbage recollection since t

RE: [PHP] Script not working from one computer

2002-12-05 Thread M.A.Bond
Have you checked: Browser versions? (is the browser the same type/version as on the other machines) Is it a laptop? If so, are you using the internal keyboard with Numlock on? Is the machine in question set-up on the network correctly, i.e. has it got domain, gateway addresses etc setup - this wou

Re: [PHP] mysql, php, checkbox

2002-12-05 Thread Adrian Partenie
Indeed, now it works, I put the form tag by mistake... Thanks, Adrian - Original Message - From: "rija" <[EMAIL PROTECTED]> To: "Adrian Partenie" <[EMAIL PROTECTED]> Sent: Tuesday, December 03, 2002 11:30 PM Subject: Re: [PHP] mysql, php, checkbox > There are tags around What are they

Re: [PHP] Script not working from one computer

2002-12-05 Thread @ Edwin
Hello, "1LT John W. Holmes" <[EMAIL PROTECTED]> wrote: [snip] > So, I'm sure it's not the PHP script, so I'm looking for ideas of what I > should check, settings wise, on the client computer? Any help is greatly > appreciated. [/snip] Well, "my magic PHP 8-ball says..." Just kidding :) Anyway, h

[PHP] Script not working from one computer

2002-12-05 Thread 1LT John W. Holmes
I know, PHP is executed server side, so it shouldn't matter about the computer, but... I've got a basic log in script that takes username and password and does the typical SELECT to find a match. If it's good, it sets some session variables and redirects to a main page, otherwise redirects back

Re: [PHP] Advice with encrypting+storing sensitive data

2002-12-05 Thread ªüYam
Would u teach me how to setup the OpenSSL and the engine for the apache web server in order to achieve the 128 bits SSL protection? Actually, I have tried so many times but still failed to do so... First of all, there were errors occurred when I compiled the Openssl engine, It seemed looking for a

Re: [PHP] Looping Addition

2002-12-05 Thread 1LT John W. Holmes
> One more question... If I then wanted to do this for the other operations > (such as multiplication, division, etc), how would I do that? Assuming you've figured out how to do an array... You'll have to loop through the values like in the code that others posted. foreach($_POST['number'] as $n

Re: [PHP] Howto: run local script to update remote script

2002-12-05 Thread David T-G
eriol -- Yes, a cron job would do the trick for a process that must run at fixed and frequest intervals. The Windows scheduler might accomplish the same thing. Since we've already veered sharply off-topic, I'll go ahead and recommend that you check out dyndns.org or the like; set up your address

[PHP] Re: Variables and http

2002-12-05 Thread Tristan Carron
thanks, works perfectly - Original Message - From: "Mattia" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 12:41 PM Subject: Re: Variables and http > > "Hacook" <[EMAIL PROTECTED]> ha scritto nel messaggio > [EMAIL PROTECTED]">news:[

Re: [PHP] code for my question about sessions ;) sorry

2002-12-05 Thread Stephen
I don't know if this will fix anything or not but instead of using check_valid_user(), try making the if statement say this: is(!isset($_SESSION['valid_user)) { echo "NOT LOGGED IN"; } else { echo "LOGGED IN"; } - Original Message - From: "Martin Hudec" <[EMAIL PROTECTED]> To: "1

[PHP] code for my question about sessions ;) sorry

2002-12-05 Thread Martin Hudec
Hello , okay here's the code...sorry forgot to post it everything works in login.phpsession is registered...but in index, it seems that session is empty... login.php: "; //reloads index.php (login.php is popup from index.php echo "window.opener.location.reload();"; echo "setTimeout('windo

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
One more question... If I then wanted to do this for the other operations (such as multiplication, division, etc), how would I do that? - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Stephen'" <[EMAIL PROTECTED]>; "'Chris Wesley'" <[EMAIL PROTECTED]> Cc: "'PHP List'

Re: [PHP] sessions

2002-12-05 Thread Stephen
Show us your code and don't copy straight from books. ;-) - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Martin Hudec" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 7:57 AM Subject: Re: [PHP] sessions > > i have one script (index.p

Re: [PHP] ini function like ini_set and ini_alter

2002-12-05 Thread Franco Pozzer
Thanks Jason. I use PHP as CGI in Win32 system because It is most stable like Apache module. I have make a same code PHP like this follow that I try ini_set and ini_aletr function instead of the -htaccess solution. The code that try it is this: $path"; echo ini_get("include_path"); echo""; e

Re: [PHP] sessions

2002-12-05 Thread 1LT John W. Holmes
> i have one script (index.php) which displays information (menu items) > based on result from function check_valid_user(). This function checks > if there is session_is_registered("valid_user"). > > second script is for login.it saves into session > session_register("valid_user").then it r

Re: [PHP] passing form variables with the same name

2002-12-05 Thread 1LT John W. Holmes
> I'd love to use an array, but I don't think you can pass an array value from > a form and have it work on the update script - e.g. input > name="Resource[0]"... Ah, but you can... You can use exactly what you just wrote and have $_POST['Resource'][0] in your processing script. Loop through that

Re: [PHP] Copy question

2002-12-05 Thread Marek Kilimajer
No, you can use ftp functions. Evandro Sestrem wrote: Hi, Can I use the copy function to copy a file to a remote computer? Ex: // copy a file from my computer to a remote computer copy('c:\teste.txt', '200.xxx.xx.xx/temp/teste.txt') How can I do it? Thanks in advance, Evandro Sestrem

[PHP] passing form variables with the same name

2002-12-05 Thread Doug Parker
I'm passing form variables from a script that is meant to display information to be updated in a mysql database, and it sends these to a script that updates the changed values. The problem is, I have a number of the same field being passed. For example, I have two fields in an html form - Res

[PHP] Copy question

2002-12-05 Thread Evandro Sestrem
Hi, Can I use the copy function to copy a file to a remote computer? Ex: // copy a file from my computer to a remote computer copy('c:\teste.txt', '200.xxx.xx.xx/temp/teste.txt') How can I do it? Thanks in advance, Evandro Sestrem -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] sessions

2002-12-05 Thread Martin Hudec
Hello, I have following problem: i have one script (index.php) which displays information (menu items) based on result from function check_valid_user(). This function checks if there is session_is_registered("valid_user"). second script is for login.it saves into session session_register("va

[PHP] Re: Post Variables

2002-12-05 Thread Mattia
> for ($i=0; $i<=12; $i++) > { > echo ""; > echo ""; > } the tag must stay out of the for loop. the syntax for is bye Mattia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >