Re: [PHP] header redirect with POST?

2004-10-08 Thread Matt M.
> Is it possible to have a form where I post variables to a processing > script which would then redirect to another form have variables posted > from the processing script? I am researching the HTTP header things as I > write this, but have not found a viable answer that is PHP only. I dont know

[PHP] Re: Recursion to sanitize user input

2004-10-08 Thread M. Sokolewicz
Very simple :) when recursion happens, you return the sanitized value, but never store it ;) [EMAIL PROTECTED] wrote: I'm trying to sanitize my user input. My sanitize function does not work if I send a variable that's an array. I'm using recursion to go through the array. The example below sh

[PHP] Re: Dose this tool exist

2004-10-09 Thread M. Sokolewicz
Dave Carrera wrote: Hi List, Is there a GUI tool that can help make relationships between MySQL tables ? I saw a tool somewhere that you dragged the relevant table into a kind of workspace and selected what rows you wanted and it made the necessary sql for select. I also saw somewhere a tool that m

Re: [PHP] help me to get out of this mass mailing

2004-10-09 Thread Matt M.
> I'm implementing mass mailing program...as there are hundred's of users that receive > mails...as a result i'm getting this error... > > Fatal error: Maximum execution time of 30 seconds exceeded in > d:\phpsites\ac\asc\acendo on line 42 take a look at http://us4.php.net/manual/en/ref.info.

[PHP] Re: extending built in classes?

2004-10-09 Thread M. Sokolewicz
Dc wrote: > Hi - > > I am trying to extend a built in class, but cannot seem to get my > subclass methods called. > > class movObj extends SWFMovie { > function init() { >echo("init"); > } > } > > $m = new movObj(); > $m->in

Re: [PHP] @session_start generates a new session_id

2004-10-19 Thread Matt M.
> @session_start(); > session_name("userauth"); > $_SESSION['SESS_CUS'] = $user_id; I am not 100% sure what the problem is, but if you are trying to change the session name to userauth, I think you need to do that before session_start http://us2.php.net/session_name -- PHP General Mailing List

Re: [PHP] Session

2004-10-19 Thread Matt M.
> I am trying to make my pages last for only 1 minute but I am not been successfull. > > I have already changed session.cache_expire = 1 in php.ini (USING RedHat) but > nothing happens. > > I would like the pages to last only for 1 minute, this means that if the user do not > use the site withi

Re: [PHP] Mixing classes

2004-10-19 Thread M. Sokolewicz
Thomas Goyne wrote: On Wed, 20 Oct 2004 08:09:53 +0300, Tomi Kaistila <[EMAIL PROTECTED]> wrote: Hi! A good idea, which I have used for some classes, like the Journal class (error handling) which fits in with the Core class. Unfortunantly I have too many classes to make them all into a chain

Re: [PHP] File Copy

2004-10-20 Thread M. Sokolewicz
how about setting the correct umask. Or else su'ing to the correct user before moving it. Aidal wrote: ftp_chmod() is part of PHP 5 and I'm working with PHP 4.3.1. I tried the ftp_raw('CHMOD 777 filename.jpg'); doesn't work either though :( "Silvio Porcellana" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] CPU usage @5% during 2 minutes SOLVED

2004-10-20 Thread Matt M.
> The thing was: > The new, 20 year old administrator guy set all clients to use the local > network via the proxy. And the proxy wasn't able to handle the approx. > 1,5MB huge web pages. good that the problem is solved. Not sure if you know or not but you could probably cut the size of the page

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> which works great except I have been getting some 403 > access denied errors for some sites, checking I see > that they are protected by a htaccess file (that > checks the referrer) so i tried putting > > header('referer: domain') > > where domain is the parse_url['host'] of $remote_file > but

[PHP] Re: parsing a string

2004-10-20 Thread M. Sokolewicz
Not sure what you want exactly, but here's a way using regexps to retrieve the strings seperatly: $string = 'CampusBob (Williams)~\toms more crap)~\blah blah blah)~\'; preg_match('#([^|]*)[|]+([^|]*)~[\]+([^\]*)~[\]+([^\]*)~[\]+#Ui', $string, $res); $campus = $re

[PHP] Re: heredoc syntax

2004-10-20 Thread M. Sokolewicz
Adil wrote: anyone know why heredoc syntax might not work with php5/apache installed. I can't get even the simplest strings in heredoc syntax to work and I've tried just cutting and pasting other peoples stuff in that syntax as well, and still no luck thx. Adil. works fine here... using a 5.0.2-CV

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> Nope, no PEAR allowedany other options? curl, Is that available to you? http://us2.php.net/curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> > Nope, no PEAR allowedany other options? also http://us2.php.net/fsockopen check the user comments for setting referer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Matt M.
> Hi Matt, > Yep, cURL is available but I was going through the > manual for curl (and google too suggests that might be > my best option)...but it does not look very easy to > learn :-( It is not to bad. Go through the php manual and look at the examples. That should help. If you still cant fi

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Matt M.
try this function, I lifted almost all of this stuff off of the manual and the zend site function check_link($link , $referer='') { $main = array(); $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $link); curl_setopt ($ch, CURLOPT_HEADER, 1); curl_setopt ($ch, CURLOPT_NOBODY,

Re: [PHP] Thanks but problem Again! (MySQL & PHP database script PLEASE)

2004-10-22 Thread M. Sokolewicz
Ramil Sagum wrote: On Fri, 22 Oct 2004 16:13:07 +0900, Sugimoto <[EMAIL PROTECTED]> wrote: Thank you for two of you. dou itashimashite. This is your problem: Bad query: You have an error in your SQL syntax near 'and Tit like and Aut like and Auty like ' at line 4 The SQL query you formed may hav

Re: [PHP] Question: Validation on select boxes and lists.

2004-10-22 Thread M. Sokolewicz
Stuart Felenstein wrote: I just remembered something (smacks myself in the head) In both my multi select and select menus I use dynamic options (meaning the options available come from a table. So: Table for states would look like this: +--+---+ | StateID | State [Label

Re: [PHP] Serial Communication

2004-10-22 Thread M. Sokolewicz
You can also use the DIO extension (built-in as of PHP 5.0.0). using dio_open, dio_read, dio_write and dio_close you can do a lot of magical things ;) http://www.php.net/manual/en/ref.dio.php Greg Donald wrote: On Fri, 22 Oct 2004 18:11:43 +0200, Ulrik Witschass <[EMAIL PROTECTED]> wrote: Hello L

Re: [PHP] currency

2004-10-22 Thread Matt M.
> > What is the best way to output 38884 as $38,884.00? > > > > > > number_format() or http://us2.php.net/money_format -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Serial Communication

2004-10-23 Thread M. Sokolewicz
Ulrik Witschass wrote: Hello List, I have managed to communicate with the serial device with the following code: 'mode com1: BAUD=9600 PARITY=N data=8 stop=1 xon=n';//the config the device needs $fp = fopen("COM1:", "rb+");//also tried only "r+" here if(!$fp) die(); $que

[PHP] PHP Directory List Script Files over 2 GB

2007-04-10 Thread Robert M
Hello everyone My OS information is PHP Version 5.1.6 Apache/2.2.2 (Fedora) Fedora Core 5 Kernel 2.6.20-1.2307.fc5 I am having some trouble with a script that displays files within a directory. the script does not appear to be displaying large files and the date thaty is displayed on these larg

[PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Robert M
Does anyone else have any other ideas how to resolve this, I have tried multiple different methods all failed. Does the 2 GB limitation using filesize have an alternate method of producing the output. ? Thank you Logan for trying. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Robert M
Well it looks like I am forced to use a different approach do to the limitations of PHP http://bugs.php.net/bug.php?id=27792 This Bug has been around now for HOW long now. Seems to me that it would have been addressed in the past few years, Gigabyte files have been around a long time. Maybe not

Re: [PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-12 Thread Robert M
I made a few changes to the script using system calls and changed the datatype to be a string on the sprintf portion of the script I doubt it is the most intelligent method of resolving the issue, but it got the job done. I do not run this on an Internet site, just a local intranet website that I

[PHP] what is php4 popularity?

2009-10-08 Thread Paul M.
Hey guys, does anyone have a good link for an article where php4 popularity trends are examined? The best way for me to know php4 % and php5 %. I appreciate any good suggestions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: what is php4 popularity?

2009-10-08 Thread Paul M.
Eric Bauman wrote: On 8/10/2009 4:28 PM, Paul M. wrote: Hey guys, does anyone have a good link for an article where php4 popularity trends are examined? The best way for me to know php4 % and php5 %. I appreciate any good suggestions. Here's a pretty graph comparing PHP version usage and

Re: [PHP] adduser & php

2010-07-10 Thread Matt M.
The only thing is, when I execute this command from a shell, it works. Obviously I'm replacing $username and $password with something valid when doing this manually. It's like the script clears the $username variable just before it executes the command, or because the variable is inside quotes,

[PHP] zip and mac safari

2010-10-07 Thread M. Reuter
Hi, does anyone know how to use a php script to zip a folder (with a subfolder) so that safari can open it and not decompresses forever? Thanks, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

2010-10-08 Thread ELY M.
I did a search thru all places on php.net for moonrise and moonset functions or any comments about moonrise and moonset. I can not find anything about moonrise and moonset. I am not sure where to submit my ideas. I would like to suggest to php developers to add in the moonrise and moonset function

Re: [PHP] Re: zip and mac safari

2010-10-09 Thread M. Reuter
est Martin > > > > On Oct 8, 2010, at 17:18, TR Shaw wrote: > > > >> I don't have any problem in this regard. > >> > >> On Oct 8, 2010, at 11:09 AM, Nathan Rixham wrote: > >> > >>> M. Reuter wrote: > >>>> Hi,

Re: [PHP] work online

2010-10-18 Thread Matt M.
On Mon, 2010-10-18 at 13:03 -0400, Govinda wrote: > > At 4:40 PM +0200 10/18/10, Jordan Jovanov wrote: > >> Hello Everybody, > >> > >> > >> Does somebody know company for PHP programing where people can work > >> from home? Actual I only want to know does have regular or part > >> time job for

[PHP] Blocking gethostbyname and Net_DNS2 behaviour

2012-09-11 Thread a m
Hi, I was using gethostbyname up until recently but switched to Net_DNS2 due to lack of support for a timeout. Now I discovered some "worrying" behaviour and hope someone here get shed some light onto it. I am running PHP inside an Apache 2 installation as module and noticed that once I call geth

[PHP] Re: Blocking gethostbyname and Net_DNS2 behaviour

2012-09-11 Thread a m
My apologies, it looks like it was a false alarm and the blocking actually comes from PHP's session manager. Sorry, Alexander On 11 September 2012 14:22, a m wrote: > Hi, > > I was using gethostbyname up until recently but switched to Net_DNS2 > due to lack of support for

Re: [PHP] New Service - Short URL Unshortener

2011-09-26 Thread m...@smtp.fakessh.eu
Le lundi 26 septembre 2011 02:08, Mike Mackintosh a écrit : > Hey All, > > Wanted to pass a kind word of a new service we launched called Unshortenr > (www.unshortenr.com) - which was linkrater.com. > > Input a short url and you'll get the target address, the page title, and a > description of the

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread Matt M.
> $path = 'product_images'; > $handle = opendir($path); > while (false !== ($file = readdir($handle))) > { > if ($file != "." && $file != "..") > { > echo $file; > if (is_dir($file)) > { > echo ' <-- folder'; >

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread M. Sokolewicz
Matt M. wrote: $path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo $file; if (is_dir($file)) { echo

[PHP] perl's Config::Ini File Module equivalent in PHP

2005-02-09 Thread Nikhil M
Hi All, I just wanted to know if there is an equivalent of Perl's Config::Ini = Module in PHP Thanks, Nikhil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Primer for working with arrays

2005-02-09 Thread Matt M.
> I need a really good primer for working with arrays in PHP and with MySQL. I > can do what I need to do without them right now, but I would really like to > get > arrays figured out. > > Any have some good ones? http://www.php.net/array http://us4.php.net/mysql -- PHP General Mailing List (

Re: [PHP] Parsing pdf file

2005-02-09 Thread Matt M.
> For a project of a customer i need to know if a pdf file contains special > functions and buttons. > > Is there a way to parse a PDF file in php? you might be able to find something at http://us3.php.net/pdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Parsing pdf file

2005-02-09 Thread Matt M.
did you try this? "); echo "$test"; # Returns a -1 if uncompression failed function pdf2string($sourcefile) { $fp = fopen($sourcefile, 'rb'); $content = fread($fp, filesize($sourcefile)); fclose($fp); # Locate all text hidden within the stream and endstream tags $searchstart = 's

Re: [PHP] How do you read one of these parameters?

2005-02-11 Thread M. Sokolewicz
or, you could use a 404-errorHandler, and have it parse the URL that caused it couldn't find ;) (that's what I use occasionally) Richard Lynch wrote: Brian Dunning wrote: I see URLs formatted like this: http://tinyurl.com/xyz How do you read that "xyz," since there's no "/?x=" preceding it? Is

Re: [PHP] Ensure a number is three digits long

2005-02-13 Thread M. Sokolewicz
to do this quite well with the str_pad() function. http://us3.php.net/manual/en/function.str-pad.php -M -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Sunday, February 13, 2005 12:09 PM To: php-general@lists.php.net Subject: [PHP] Ensure a number is three digits long H

[PHP] Re: need help parsing named.conf file

2005-02-13 Thread M. Sokolewicz
Torsten Rosenberger wrote: Hello is there a way to parse the named.conf file with preg_match_all to get back an array which looks like [options][directory] = '/var/lib/named' [options][forwoarder] = '192.168.0.2' [zone][mydomain.com][type] = 'master' [zone][mydomain.com][notify] = 'yes' [zone][doma

Re: [PHP] Fancy Form processing Ideas

2005-02-14 Thread Matt M.
> I am looking for interesting approaches to form submissions and error > checking in the forms. http://pear.php.net/package/HTML_QuickForm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mediator between PHP and Perl (with sessions)

2005-02-15 Thread Matt M.
> Is there a way to use sessions variables in PHP shell script (without > reading the session file and parse it in the script)? Do you have a database available? You could put the session info in a database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Matt M.
> I have a database that contains encrypted data using Mysql function > ENCODE(). Certain users will be allowed to view this data and I will allow > them to download a CSV file contain the decrypted data using the Mysql > DECODE() function. However I don't want this file to be left on the server, >

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Matt M.
> The Problem: > I can't quite figure out how to take the results of the > mysql_query() and assemble them into a string. In my experiments so far, > I either get a "mysql_data_seek(): Offset 0 is invalid for MySQL result > index" error, or my mail function sends to a blank address. no gua

[PHP] Re: isset

2005-02-15 Thread M. Sokolewicz
D_c wrote: I often use this type of construct $cmd = $_POST['cmd']; if ($cmd == null) { // do default but this throws a notice if the ['cmd'] index is not defined. ugly. using if (isset($_POST['cmd'] ) { $cmd = $_POST['cmd']; } seems lengthy. is there a way around this? i tried using $cmd

Re: [PHP] Re: Image Creation

2005-02-15 Thread Matt M.
get rid of : echo " This is a test".makepie(20,200)." "; and only have this : makepie(20,200); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Array question

2005-02-15 Thread Matt M.
> What I want to do is to only show 20 pictures at a time with a "Next" link > and a "Previous" link. For the first 20 only the "Next" link would show and > whenever the last set would show only the "Previous" link would. Every other > time both would show. > > Can someone point me in the right di

Re: [PHP] Re: isset

2005-02-15 Thread M. Sokolewicz
Chris W. Parker wrote: M. Sokolewicz <mailto:[EMAIL PROTECTED]> on Tuesday, February 15, 2005 8:25 AM said: seems lengthy. is there a way around this? i tried using $cmd = @ $_POST['cmd']; to suppress errors but didnt seem to have ay effect. still if(isset($_POST['cmd&#

Re: [PHP] Intelligent Forms and Form Processing

2005-02-15 Thread Matt M.
> Any feedback will be appreciated. why reinvent the wheel? take a look at: http://pear.php.net/package/Html_quickform -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: isset

2005-02-16 Thread M. Sokolewicz
Marek Kilimajer wrote: M. Sokolewicz wrote: Also note that empty($non_existent_var) will always throw an E_NOTICE error when the variable in question is not set. No, it does not. hmm... seems to have changed since I last checked (PHP5 change?) I appoligize :) -- PHP General Mailing List (http

[PHP] Re: retrieve single field from database without while loop

2005-02-16 Thread pete M
Check out abstraction layers I use adodb http://adodb.sourceforge.net/ makes coding much much easier ;-)) eg - mysql example $sql = "insert into table (col, col2)values('$this','$that')"; $db->execute $sql; // get last id $new_id = $db->getOne('select last_insert_id()'); have fun Pete [EMAIL PROTE

[PHP] Re: Hashing strings

2005-02-17 Thread M. Sokolewicz
Gerard Samuel wrote: Im currently using md5() to hash strings to be used, as an id for a cache system. Im trying to determine if md5() would be the fastest, *cheapest* solution. The only native php functions that I know of are md5() and sha1(). Are there any other native php functions that hash str

Re: [PHP] My FIRST php atempt

2005-02-18 Thread M. Sokolewicz
Bret Hughes wrote: On Fri, 2005-02-18 at 01:47, David Freedman wrote: I am trying my FIRST php file with an attempt to connect to my mySql server. // Performing SQL query $query = 'SELECT * FROM my_table'; $result = mysql_query($query) or die('Query failed: ' . mysql_error());

Re: [PHP] My FIRST php atempt

2005-02-18 Thread M. Sokolewicz
M. Sokolewicz wrote: Bret Hughes wrote: On Fri, 2005-02-18 at 01:47, David Freedman wrote: I am trying my FIRST php file with an attempt to connect to my mySql server. // Performing SQL query $query = 'SELECT * FROM my_table'; $result = mysql_query($query) or die('Query failed:

Re: [PHP] [php] -help me

2005-02-18 Thread M. Sokolewicz
Tyler Replogle wrote: $str_array = explode("/", ""/home/karthik/welcome.php/view.php"); // $str_array[4] shoud be view.php From: K Karthik <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] [php] -help me Date: Fri, 18 Feb 2005 11:20:29 +0530 MIME-Version: 1.0 Received: from lists.php

[PHP] Re: How to open a URL directly ?

2005-02-18 Thread M. Sokolewicz
Vaibhav Sibal wrote: Hey ppl, I have a scenario wherein the people logging into the system have different kinds of status as in a person can either be a admin, a user, or a supervisor etc. Now I have different web interfaces for all these kind of people. What I want to know is what function do i us

Re: [PHP] fgetcsv() excel data missing

2005-02-18 Thread M. Sokolewicz
Binoy AV wrote: Thanks Jay. Could anybody please tell me how to read the data from an excel file ? It should work independent of the operating system. I don't want the csv format. excel files aren't independent of the OS, csv files are. Excel files need to be parsed, because they contain he

Re: [PHP] FATAL: emalloc()

2005-02-18 Thread Matt M.
> FATAL: emalloc() : Unable to allocate 1073741824 bytes I found this at http://us4.php.net/odbc_exec I kept getting FATAL: emalloc() errors when using select statements via odbc for MS SQL. I had no control over the DB as it is a commercial CRM system. I found that by 1st issuing an SQL query

Re: [PHP] FATAL: emalloc()

2005-02-18 Thread Matt M.
On Fri, 18 Feb 2005 12:10:32 -0500 (GMT-05:00), George A. Balanos <[EMAIL PROTECTED]> wrote: > Thank you Matt, I found that also but to be honest the person who built this > server recently passed away. He was our php specialist and to be honest I > have no clue on how to activate this change.

Re: [PHP] Destroying the Session Object

2005-02-18 Thread Matt M.
> I am developing an application. When the user signs in a Session ID is > created (for argument sake: 123). I have a sign out page that has the script > session_destroy() on it. This page directs me to the sign in page. When I > sign the same or any other user in again I get the same session id (1

[PHP] Re: Destroying the Session Object

2005-02-19 Thread pete M
here's the way I do it logout.php Jacques wrote: I am developing an application. When the user signs in a Session ID is created (for argument sake: 123). I have a sign out page that has the script session_destroy() on it. This page directs me to the sign in page. When I sign the same or any oth

[PHP] Re: Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread pete M
try $_SERVER['SCRIPT_URI']; Gary C. New wrote: I am writing some php code that requires the $GLOBALS['SCRIPT_URI'] variable. When I access the code under its encrypted (https) location it is available without issue. However, when I try to access the code under its unencrypted (http) location it i

[PHP] problems compiling mysqli (on win32)

2005-02-19 Thread M. Sokolewicz
27; ext\mysqli\php_mysqli.h(127) : error C2059: syntax error : ')' Since I'm no good at C, I really have no idea what the problem here is... So, is this a problem with my compiler being stupid? or is this a real live problem in HEAD? hope somebody can help me with this, - M. Sokolewicz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php5 and globals?

2005-02-20 Thread M. Sokolewicz
Mike wrote: I have read that php5 does something different with global_vars. I know that many of my clients rely on them working. Will thinks start breaking after I upgrade from 4.3.10 to 5.3? TIA "something different" being...? maybe you mean register_globals? that change goes back to php 4.2.0,

Re: [PHP] PHP book recommendations>

2005-02-21 Thread M. Sokolewicz
O`Reilly's programming PHP is quite good too :) Judson Vaughn wrote: I second O'Reilly's PHP Cookbook. Another recommendation is Larry Ullman's books, especially HP Advanced for the World Wide Web. I try to triangulate, using several books that come at the code differently. Jud. Judson Vaughn [

[PHP] Re: hiding password in form

2005-02-23 Thread M. Sokolewicz
William Stokes wrote: Hello, How can hide the typed password in web form with *** (asterix)? I dont wan't everyone to seen evereone passwords in plain text. Thanks -Will and it's an asterisk, not asterix (the comic) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] Re: password case sensitive

2005-02-23 Thread M. Sokolewicz
William Stokes wrote: Hello, I got my little user authentication to work but now I would like to know how to make and check the (upper/lower) case in password. To put it simple. I want users password to be case sensitive. The authentication checks for returned number of rows from DB. If there is

Re: [PHP] PHP and Access

2005-02-25 Thread Matt M.
> I need to to an application in PHP with graphics creation. > The database where i need to go and fetch the values is access. > is possible for PHP to fecth values from an access database ?? http://us4.php.net/odbc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Re: Not able to add data to a MySQL database

2005-02-25 Thread M. Sokolewicz
You've got errors in your SQL. For once, table-names should not be quoted (with single or double quotes), same goes for column names ('uname' and 'access' in your example). Easiest way to find out without asking is to add a call to mysql_error(), so called "error handling"...! That would've told

[PHP] Re: PHP and Access

2005-02-26 Thread pete M
Check this out http://adodb.sourceforge.net/ http://phplens.com/adodb/code.initialization.html#init have fun Pete Bruno Santos wrote: Hello. I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP to fecth values

[PHP] Re: help with adding

2005-02-26 Thread pete M
Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correctly (10, 5, 25) $total = 0; for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; echo $qty . ''; $total += $

Re: [PHP] getting mac id

2005-02-26 Thread M. Sokolewicz
you can't get the mac-address from a remote (client) computer via PHP because PHP is server-sided (server). The mac-address isn't part of any sort of standard header the browser sends, thus the server will never see it. And if the server can't see it, then PHP can't see it either. The only way

Re: [PHP] getting mac id

2005-02-27 Thread M. Sokolewicz
run some new JavaScript code specific to that site, with a click of a button in most modern browsers, and giving the user the ability to completely spoof a part of your control system is never a good idea ;) - tul Tyler Replogle wrote: do you think i could get it with javascript? From: "M.

[PHP] Re: how to move files from one place to another ?

2005-02-27 Thread M. Sokolewicz
Vaibhav Sibal wrote: Hello, Can some please guide me as to how should I move files from one directory to another on the server itself using PHP ? I use PHP 5.0.3 and Apache2 and Mysql. Thanks Vaibhav http://www.php.net/copy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora Core 3

2005-02-27 Thread M. Sokolewicz
well, for some reason it didn't compile in the mysql extension at all... even though it was configured to. That's strange, and I have no idea why it would do that. However, since you're using mysql 4.1.x, you should be using the mysqli interface anyway. Even phpmyadmin has the option to use mys

[PHP] Re: sql query

2005-03-02 Thread M. Sokolewicz
! is a logical NOT operator. It simply turns true => false, and false => true. So, what you have is: $a = true; if($a) { echo 'true'; } else { echo 'false'; } if(!$a) { echo 'false!'; } else { echo 'true!'; } In these 2 cases, it will echo true and true! More info

[PHP] Re: Delete last 15 chars from a file

2005-03-02 Thread M. Sokolewicz
Shaun wrote: Hi, I am trying to create an XML file, it will be done in stages so if the file isn't present I will add the line: Then for each line I add I add the following data But for various reasons the application won't know when the file is complete so it won't have the final:

Re: [PHP] combining values

2005-03-02 Thread M. Sokolewicz
Mike Ford wrote: -Original Message- From: Bret Hughes Sent: 01/03/05 18:43 On Tue, 2005-03-01 at 11:44, Sascha Kaufmann wrote: $birthday = $day.'.'.$month.'.'.$year; why wouldn't $birthday = "$day.$month.$year"; because it does work aswell work as well. --- It wou

Re: [PHP] php DBMS

2005-03-03 Thread M. Sokolewicz
Jochem Maas wrote: Chris W. Parker wrote: Chris W. Parker <> on Wednesday, March 02, 2005 10:38 AM said: Gerben on Wednesday, March 02, 2005 10:22 AM said: Thanks for all your responses, but I think I wasn't clear enough of my intentions. Actually, that what I'm

Re: [PHP] How to handle a 64bit FILETIME?

2005-03-03 Thread M. Sokolewicz
Richard Lynch wrote: Tom Cannaerts wrote: I'm processing a binary file, and in that file there is a 64bit FILETIME value. This value represents the number of 100-nanoseconds since 1/1/1601. I would like to convert it to a somewhat more usable value, since I eventually will need to display that valu

[PHP] Re: How can i calculate total process time?

2005-03-05 Thread M. Sokolewicz
JoShQuNe wrote: Hi, i wanna ask if anybody knows how to calculate the total process time. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont believe

[PHP] Re: check to see if a string contains sudden elements

2005-03-06 Thread M. Sokolewicz
Reinhart Viane wrote: I have a page which gets the id of a user from the url. $_GET[id] Now this id can have two forms: Normal: page.php?id=1 Not so normal: page.php?id=whatever|1 I can explode the second string so I only have the number (1). Explode ("|", $_GET(id)) But this command fails my

[PHP] Re: Help with dates

2005-03-06 Thread M. Sokolewicz
well, you can simply use the unix timestamp, since the amount of days / seconds since 0 AD/BC will be a constant (it won't change, trust me), you can simply add it to that, and add a wrapper function to php's time(). You'll be working with VERY big numbers in that case, so you can also do it th

[PHP] Re: Pear DB class not PHP5 strict compatible?

2005-03-07 Thread M. Sokolewicz
Richard Davey wrote: Hi, Having heard good things about the PEAR DB package I wanted to try it out on a new project. I'm using PHP 5.0.3, ran the go-pear and installed the latest version but upon including it in my script it brings up rafts of errors such as: Strict Standards: Assigning

[PHP] Re: Randomize an array?

2005-03-07 Thread M. Sokolewicz
Brian Dunning wrote: I have a Magpie RSS feed in an array, and I want to output it in random order. What's the best (fastest) way to do this? - Brian easiest: array_rand() http://www.php.net/array_rand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] usage of php &

2005-03-08 Thread M. Sokolewicz
Robert Cummings wrote: On Tue, 2005-03-08 at 10:55, Jochem Maas wrote: I sure I'm not the only one on this list that reads php-internals after reading the thread entitled: "" I'm wondering if anyone here has _ever_ used the tags to enclose php code? e.g.:


Re: [PHP] Re: How can i calculate total process time?

2005-03-08 Thread M. Sokolewicz
Richard Lynch wrote: M. Sokolewicz wrote: JoShQuNe wrote: Hi, i wanna ask if anybody knows how to calculate the total process time. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made

[PHP] Re: sorting arrays

2005-03-08 Thread M. Sokolewicz
Brian A. Anderson wrote: Say I create a "matches" array from a set of SQL queries With each query, an entry is added to my matches array. If the name already exists, its value gets incremented. How can I sort the array based on the highest number of hits? What is the sort method? Say this is the ar

[PHP] Re: Question re empty query

2005-03-09 Thread M. Sokolewicz
Jackson Linux wrote: Hi, This: if (isset($_GET['r']) && !empty($_GET['r']) && ($r = intval($_GET['r'])) ){ $r = "{$_GET['r']}"; //Set the variable $r to mean the category number gods, that's an ugly statement... why don't you simply use $r = $_GET['r']; $fields = '*'; $sort = "ORDE

Re: [PHP] destructor not called for static members?

2005-03-10 Thread M. Sokolewicz
Jochem Maas wrote: Robert Janeczek wrote: [EMAIL PROTECTED] wrote: Hi It is an expected behavior because when you define a static variableit is shared by all objects of the same class. If When you unset one object and the destruct of the static object will be called, all the other objects will l

[PHP] Re: Working with 3 arrays

2005-03-10 Thread M. Sokolewicz
Robert Sossomon wrote: I need to work with 3 different arrays where I get the value of the same key for all 3 (probably a term for this one). The three arrays are: field[] type[] char[] and each will be assigned via another form. What will happen is at the end of the form I want to be able to pul

[PHP] Re: Question about "shortening" a string

2005-03-11 Thread M. Sokolewicz
Mário Gamito wrote: Hi, In Portgal we have big names. My complete name, for instance, is "Mário Augusto Machado dos Reis Gamito". "Mário" is the Christian name and "Gamito" - the last one - is always the last name of the father. I have a form where i want to let my users insert their full big nam

[PHP] Re: Building PHP5 on Windows - VS.net?

2005-03-14 Thread M. Sokolewicz
you'll get various problems on the way. Building php without any extensions is fairly easy, and doesn't pose any problems. However once you start compiling in extensions, you'll need to fiddle a bit with some (eg. pdo_mysql requires a couple of changes in the include paths in the c-files, icov

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread M. Sokolewicz
Chris W. Parker wrote: Chris W. Parker <> on Monday, March 14, 2005 3:15 PM said: Line 82 is: print '\n"; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser finally gets screwed up. Ohh .. and if i read it more fully the first time I would ha

[PHP] Re: Log out button

2005-03-16 Thread M. Sokolewicz
William Stokes wrote: Hello, Again this might be more of a HTML quetion. If so sorry about that. Anyway I was just trying to make a log out button to a page. It should end a session or/and close browser window. (Closing browser ends the session as well I think? no ) All variable values are delete

<    1   2   3   4   5   6   7   8   9   10   >