[PHP] Calling Web Service in PHP

2004-01-28 Thread Binay
Hi all I need to call a web service from some other server to my php script. How can i do it ? please help me out. Thanks in advance Binay

[PHP] The final script! but still some problems..

2004-01-28 Thread Radwan Aladdin
Hi all.. This is the final PHP code that I written.. but there i some problems.. not errors.. I said problems.. For example the Distance value is not updated correctly.. and the LessonNumber field also.. please help me fixing these problems : I'm sure it is very easy for you.. I hope

Re: [PHP] Re: Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-28 Thread Terence
Why not use the AES_ENCRYPT and AES_DECRYPT functions? from the MySQL manual: AES_ENCRYPT() and AES_DECRYPT() were added in version 4.0.2, and can be considered the most cryptographically secure encryption functions currently available in MySQL. SELECT AES_ENCRTPY('my_password_is_easy', 'secretw

RE: [PHP] Re: Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-28 Thread Murray @ PlanetThoughtful.org
Hi Jas, Not really -- I can't help thinking there's something about retrieving the encrypted value from the MySQL text field that makes the end result un-decryptable... I was hoping that someone could provide me with a working example that encrypts a value, stores in a MySQL table, then retrieves

[PHP] Re: PHP EDITORS

2004-01-28 Thread Eric Bolikowski
The best editor is of course Zend Studio at www.zend.com, which I use. The only bad thing is that it costs, but hovewer, you can download a free trial to try it out. But if you're able to spend some money, I would strongly recommend Zend Studio. Feature List at http://www.zend.com/store/products/

Re: [PHP] OT, Maybe: Question Re: Apache/Macintosh Platform

2004-01-28 Thread Freedomware
I'm not sure if we're on the same wavelength, but this might help you. I recently installed Apache, PHP and MySQL as part of a preconfigured package from "Apache Friends" (XAMPP). The entire suite was installed at C:/xampp, and the Apache folder is at C:/xampp/apache/ At first, I couldn't find

Re: [PHP] OT, Maybe: Question Re: Apache/Macintosh Platform

2004-01-28 Thread - Edwin -
On Wed, 28 Jan 2004 22:18:16 -0500 "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > PHP/MySQL textbook I'm using says to copy its sample apps to > the root directory. What it says is: "[o]n Apache this folder > is usually named htdocs by default." Not only can't I find a > folder named "htdocs", b

RE: [PHP] Ideas Kindly

2004-01-28 Thread Stephen Craton
Ah, yes, I was looking at something like this earlier but more or less on the lines of strictly match making which I have no experience in. But yeah, a social network script would be a good idea. Thanks for the suggestion, I will continue research in other fields as well. :-) Thanks, Stephen Crato

RE: [PHP] Class performance was Cacheing data form PHP script

2004-01-28 Thread daniel
Here is parts to the date class function month_selection($selected_month,$submit = null,$month_as_num = null, $auto_complete = null,$tab_index = null, $disabled = null) { if ($submit) $submit = "onChange=\"this.form.submit ();return false;\""; if ($auto_complete) $a

RE: [PHP] Cacheing data form PHP script - Test results

2004-01-28 Thread daniel
Here are some test results using a microtime function i setup Using database 0.77256107330322 seconds Using cache 0.23316502571106 seconds My next problemo is, i have built a Date and Calender class to build the date and time pulldown's. Although it seems really slow, i have to tweak it someho

[PHP] OT, Maybe: Question Re: Apache/Macintosh Platform

2004-01-28 Thread [EMAIL PROTECTED]
PHP/MySQL textbook I'm using says to copy its sample apps to the root directory. What it says is: "[o]n Apache this folder is usually named htdocs by default." Not only can't I find a folder named "htdocs", but I've been using--and I'm certain I remember reading in another book to use this--the Sit

RE: [PHP] How to prevent duplicated values?

2004-01-28 Thread SLanger
Hello I think using UNIQUE is the way to go simply because of data integrety (<= how do you spell this??? ; ) ) If you don't use UNIQUE and you are not write locking your table you might accidently get duplicate Values. UNIQUE is the only way to prevent duplicate data without a lot of hassle. T

[PHP] PCRE vs. POSIX-extended for regular expressions

2004-01-28 Thread SLanger
Hello The reaseon why PCRE is faster is because the POSIX standard demands to return the longest matching string which means POSIX checks all possible matches while PCRE simply returns the first valid match. In cases where there is no match both have to check all matches. The other thing is, a

RE: [PHP] PHP EDITORS

2004-01-28 Thread Ralph
I agree that Zend Studio is phenomenal. Another editor that I like is NuSphere's PhpEd. You might want to look at this one too: http://www.nusphere.com/ -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 2:04 PM To: [EMAIL PROTECTED] Sub

[PHP] custom session problem with 4.1.2

2004-01-28 Thread cyril
Hi I have recently had to move some of my php software over to run on a Debian (stable) box with php 4.1.2 and am having some problems getting custom sessions (mysql) to work properly when register globals is set to off. The session will not get written if reg globals is off and the session id

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
Here is my final layout, i still yet to test it on the production machine being a dual 2G xeon, has had major performance issues generated list menus onto the screen and load time. function asset_type_list2($tID=null,$tab_index = null,$cache_data = null,$disabled = null) { global $

[PHP] Sessions not working.

2004-01-28 Thread Jeff McKeon
Pulling my hair out here. I've got an IIS5 webserver running a php website just fine. I created another web for a dev version of the first website. Installed PHP ect... When I load up the old websites files on the new site sessions won't work on the new site. For some reason on the new site's p

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
The code works, and seems to run pretty fast, another question would storing in xml be a better option ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
I havent tested this yet, it seems it may be more harmful than good ? if ($cache_data) { $query = $db->query("SELECT cache_data FROM cache_menu_table WHERE table='foo'"); if ($db->results()) { $query = "SELECT cache_

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
> It's not really that bad, maybe I just made it sound complicated and > annoying. > > (pseudo-php) > > If (dataexistsindb) { >$cachedata = SELECT cachedata from DB >$dataarr = unserialize(cachedata) > } else { >$dataarr = SELECT freshdata >$cachedata = serialize($dataarr) >INSE

[PHP] Aproach to based PHP authentication

2004-01-28 Thread Fernando M. Maresca
Hello everybody. I think this problem there was thousands of times in this forum, as the archives shows, so you can freely ignore me if I bother you. I have little auth php base that looks like: if(cookie) authcookie(); else if($_POST[uname] && $POST[pass]) authuser(); // and sets a co

RE: [PHP] Ideas Kindly

2004-01-28 Thread Stephen Craton
Hah, no, actually I'm going to distribute it for free so I probably will make little to nothing. Thanks, Stephen Craton http://www.melchior.us - -Original Message- - From: Stuart [mailto:[EMAIL PROTECTED] - Sent: Wednesday, January 28, 2004 5:47 PM - To: Stephen Craton - Cc: 'PHP List' -

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread Gryffyn, Trevor
It's not really that bad, maybe I just made it sound complicated and annoying. (pseudo-php) If (dataexistsindb) { $cachedata = SELECT cachedata from DB $dataarr = unserialize(cachedata) } else { $dataarr = SELECT freshdata $cachedata = serialize($dataarr) INSERT or UPDATE $cac

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
Unfortunately not even SQL_CACHE works in this scenario, with 5 or more generated menus, its a noticable difference in load time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
> $_SESSION sounds like a good way to go.. It just means that each user > will pull the data for the menu at least once. > > I've done something similar except it was a rather slow database query, > followed by a bunch of conditional data parsing. The end result wasn't > very much data (maybe a p

Re: [PHP] path problems

2004-01-28 Thread Scott Taylor
Stuart wrote: Scott Taylor wrote: $file_two = 'archive/newsletters/Dec03PostPress.pdf'; Try replacing this line with... $file_two = $_SERVER['DOCUMENT_ROOT'].'/archive/newsletters/Dec03PostPress.pdf'; As my first posts states, I've tried that. And no, that doesn't work either. And on

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread Gryffyn, Trevor
$_SESSION sounds like a good way to go.. It just means that each user will pull the data for the menu at least once. I've done something similar except it was a rather slow database query, followed by a bunch of conditional data parsing. The end result wasn't very much data (maybe a page's worth

RE: [PHP] cgi error --- please help

2004-01-28 Thread Gryffyn, Trevor
Odd that it would work after you hit REFRESH, though. If it was the CLI version, wouldn't youg et the bad headers error every time you refreshed the browser? Could always try manually initiating the headers using the header() command. That may be your own course of action if, for some reason, yo

Re: [PHP] Ideas Kindly

2004-01-28 Thread Stuart
Stephen Craton wrote: Basically, what I'm asking is, what have you seen at big time websites that you want to host yourself but can't find a script for (or you've found a script but it could really use improvement or some competition, so we don't get a monopoly :-))? Any help would be very...helpfu

[PHP] Re: Why we love Microsoft (0t)

2004-01-28 Thread Alex King
Hey, Did you know that he has an older brother named "Mac"? He's a media consultant. Wonder why his site never got any trouble. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] path problems

2004-01-28 Thread Stuart
Scott Taylor wrote: $file_two = 'archive/newsletters/Dec03PostPress.pdf'; Try replacing this line with... $file_two = $_SERVER['DOCUMENT_ROOT'].'/archive/newsletters/Dec03PostPress.pdf'; -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] Job Opening: N Dallas

2004-01-28 Thread Birkholz, James
I expect to receive approval to hire a programmer next week, so I'm getting a jump on it, as matters have become quite urgent. This will be a position best suited to someone younger, with limited employment history as a programmer, without a degree, etc. because I'm not expecting "they" will be wi

Re: [PHP] PHP to Exim?

2004-01-28 Thread Jas
Brent Baisley wrote: Look at SquirrelMail. It's an open source PHP web front end to a mail system. You can look at the source code and see how they do things. On Jan 28, 2004, at 4:44 PM, Jas wrote: Not sure if anyone has run into this and I have only found methods of managing users for a exim

RE: [PHP] Using unset with $_SESSION

2004-01-28 Thread Gryffyn, Trevor
Then there's session_destroy() too. If I ever suggest something that seems correct on the surface, but there's a good reason to use something else, even in particular cases, feel free to let me know. I think I know PHP fairly well, but it's so flexible and there are usually a dozen ways to do thi

RE: [PHP] working with files

2004-01-28 Thread Gryffyn, Trevor
Depending on what system you're using, the EOL (end of line) character is going to be different. On a DOS/Windows system, you want to use "\r\n". I can't remember off the top of my head now, but some systems use just "\r" and some use just "\n".. DOS/Windows systems use both, and I believe they

Re: [PHP] PHP to Exim?

2004-01-28 Thread Brent Baisley
Look at SquirrelMail. It's an open source PHP web front end to a mail system. You can look at the source code and see how they do things. On Jan 28, 2004, at 4:44 PM, Jas wrote: Not sure if anyone has run into this and I have only found methods of managing users for a exim email service. What

[PHP] Re: Print All parameters

2004-01-28 Thread DvDmanDT
This is what I do, to get EVERYTHING: But this will also get all functions and constants.. use only the first command for only the variables.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Mike Mapsnac" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Is it

RE: [PHP] PHP EDITORS

2004-01-28 Thread Gryffyn, Trevor
Up until recently, I've used Crimson Editor (http://www.crimsoneditor.com) which does a great job with syntax highlighting and is a great all around editor I think. I'm surprised I don't see it mentioned more often when I see lists of PHP-happy editors. Right not I'm evaluating Zend Studio ($200-

Re: [PHP] cgi error --- please help

2004-01-28 Thread Len Borowski
I recently had this error. Turns out that my php binary was the CLI(command line interface only) version, not the cgi version and so it wasn't sending the headers before parsing the php file. You should look at getting the right php binary. Also, if you have a question, you don't make 2 seperate

[PHP] PHP to Exim?

2004-01-28 Thread Jas
Not sure if anyone has run into this and I have only found methods of managing users for a exim email service. What I am looking to do is to allow a web form to use exim vs. sendmail using PHP's mail() function. If anyone has accomplished this please let me know.. I have been scouring google,

[PHP] Print All parameters

2004-01-28 Thread Mike Mapsnac
Is it possible to print all values of all variables in php file? Including global, local... Thanks _ Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP Gen

[PHP] cgi error --- please help

2004-01-28 Thread Dale Hersh
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I am getting this error and I can't figure out what is causing the problem. If I hit refresh on the broswer, the page loads just fine. Any ideas??? Thanks, Dale RUNNING IIS 6.0 & MSSQL 2000 -- P

[PHP] CGI ERROR

2004-01-28 Thread Dale Hersh
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I am getting this error and I can't figure out what is causing the problem. If I hit refresh on the broswer, the page loads just fine. Any ideas??? Thanks, Dale RUNNING IIS6.0 & MSSQL 2000 -- PH

[PHP] Ideas Kindly

2004-01-28 Thread Stephen Craton
It's been a while since I posted here but here I am so yay...I guess.. Anyway, I came to ask for some ideas if you will. I'm interested in starting a new PHP project to distribute for free, just to spend my time doing something. I've been doing some research to find out what to do but I can't r

Re: [PHP] path problems

2004-01-28 Thread Scott Taylor
Yes, the error I get is a pop-up box saying "This is not a valid %PDF file" Here is my code: $file_two = 'archive/newsletters/Dec03PostPress.pdf'; //now view the PDF file header("Content-Type: application/pdf"); header("Accept-Ranges: bytes"); header("Content-Length: ".filesi

Re: [PHP] Still error messages!!

2004-01-28 Thread Radwan Aladdin
Thanks alot for your reply :) I really appreciate your help.. Upto now I made this script : It update everyting fine.. but the problem is that the "LoginTime" value is not imported from the database! So what is the problem? Regards.. - Original Message - From: "David OBrien"

Re: [PHP] Copyrighting PHP, MySql, Apache,perl etc...

2004-01-28 Thread John Nichel
Ryan A wrote: Hey, Was just going to the php.net site to reference the manual (always a good thing) when I absent mindedly typed in "php.com" insteadwhich brought up a nice site, worthy of our support, but not really what I had in mind coz its more focussed towards children, medical homes etc t

Re: [PHP] Re: working with files

2004-01-28 Thread John Nichel
tony wrote: I'm new to php, and i tried file() no luck $lines = file('$filename'); foreach ($lines as $line_num => $line) { print ("$line"); } $lines = file ( "$filename" ); $size = sizeof ( $lines ); for ( $i = 0; $i < $size; $i++ ) { echo ( '' . $lines[$i] . '"' ); } http://us2.php.net/m

[PHP] Copyrighting PHP, MySql, Apache,perl etc...

2004-01-28 Thread Ryan A
Hey, Was just going to the php.net site to reference the manual (always a good thing) when I absent mindedly typed in "php.com" insteadwhich brought up a nice site, worthy of our support, but not really what I had in mind coz its more focussed towards children, medical homes etc than the progra

[PHP] Re: working with files

2004-01-28 Thread DvDmanDT
I use to do this: $lines=file($filename); $num_lines=count($lines); for($i=0;$i<$num_lines;$i++)echo ''.$lines[$i].''; -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Tony" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I'm new to php, > and i tried file() no

[PHP] SOLVED:- (WEIRD problem) Not following directories!!! (0t)

2004-01-28 Thread Ryan A
Hey All, Thanks to everyone who replied, the problem was indexes were not defined as Andrew pointed out (and solved my problem). *Main* problem I think was, that I never installed apache totally from the start, I always depended on the "big bangs" where you just run one .exe file and it installs a

[PHP] Re: Performance of multidimensional arrays vs many variables

2004-01-28 Thread Eric Bolikowski
Hi John If you have a large number of Users using this system, your save map for sessions will grow in space, using some resources If it's very large pieces of information, i would advise you to store this info in a database. That's doomed to be more effective. Eric "John Schulz" <[EMAIL PROTEC

RE: [PHP] sending a hex string as it is?

2004-01-28 Thread David OBrien
At 02:17 PM 1/28/2004, Khoa Nguyen wrote: Thanks for the info Dave, but I still can't make it work: $var = "0x" . dechex(strval($var)); is about the only way I could get it to show 0x10 instead of 16 -Dave ?> In both cases, I see 3136 (ASCII encoded of string "16") on the wire :-( Any ideas?

[PHP] Re: working with files

2004-01-28 Thread tony
I'm new to php, and i tried file() no luck $lines = file('$filename'); foreach ($lines as $line_num => $line) { print ("$line"); } thanx for the help "Dvdmandt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Did you try file(); ? > > -- > // DvDmanDT > MSN: dvdmandt¤hotmail.co

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
At 02:45 PM 1/28/2004, Radwan Aladdin wrote: Now I fixed the error message.. but the problem is in "Distance = 0" always.. because the LoginTime is a string.. I fetch it but the same thing!! This is the new script : phpinfo(); include("Config.php"); $link = mysql_connect("$user_hostname", "$user

Re: [PHP] sending a hex string as it is?

2004-01-28 Thread DvDmanDT
Did you consider following? $var="\x10"; ? Or dechex();? -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Khoa Nguyen" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] Thanks for the info Dave, but I still can't make it work: In both cases, I see 3136 (ASCII enc

[PHP] Re: working with files

2004-01-28 Thread DvDmanDT
Did you try file(); ? -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Tony" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > hi, > > i have problem with writing a reading to file > i want to write emails in files. like this > [EMAIL PROTECTED] > [EMAIL PROTECTED

Re: [PHP] working with files

2004-01-28 Thread Matt Matijevich
replace "); } while (true); fclose($handle); ?> with this \n"); } while (true); fclose($handle); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] working with files

2004-01-28 Thread tony
hi, i have problem with writing a reading to file i want to write emails in files. like this [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] etc.. this is how I write to the file $handle = fopen($filename, "a"); fwrite($handle,"$email\n",128); fclose($handle); ok it writes everything

Re: [PHP] Still error messages!!

2004-01-28 Thread Radwan Aladdin
Now I fixed the error message.. but the problem is in "Distance = 0" always.. because the LoginTime is a string.. I fetch it but the same thing!! This is the new script : So why it is making the Distance value = 0 and it doen't update the value in the database. (Because it must update t

[PHP] Performance of multidimensional arrays vs many variables

2004-01-28 Thread John Schulz
I'm planning to use a very large multidimensional array to store data for grouping quantities of Products. This information needs to be carried from page to page in a session. Here's a part of the array's hierarchy for an example: grouping (array) - owner => 'name' - message => 'text' - packa

Re: [PHP] Still error messages!!

2004-01-28 Thread John Nichel
David OBrien wrote: I believe I'd start here http://www.php.net/manual/en/function.mssql-fetch-row.php Or here even http://www.php.net/manual/en/function.mysql-fetch-row.php ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Still error messages!!

2004-01-28 Thread John Nichel
Radwan Aladdin wrote: So where are the errors? Waiting your help please.. Regards.. What's the error message??? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Making Graph / Chart

2004-01-28 Thread unkno me
--- Ralph Guzman <[EMAIL PROTECTED]> wrote: > Take a look at jpgraph: > > http://www.aditus.nu/jpgraph/ > Great! That's exactly what I want. Now, after I read the installation instruction for JPGraph, I notice I must have built PHP with GD support to use the functionality. The problem is that my

php-general@lists.php.net

2004-01-28 Thread Gerard Samuel
On Wednesday 28 January 2004 01:35 pm, John W. Holmes wrote: > Depends how you define "mess them up"... If you want to display   > literally on a web page, then you need to write   in the source. > So this may not be messing things up but rather preparing them to be shown > on a web page, lite

RE: [PHP] sending a hex string as it is?

2004-01-28 Thread Khoa Nguyen
Thanks for the info Dave, but I still can't make it work: In both cases, I see 3136 (ASCII encoded of string "16") on the wire :-( Any ideas? Khoa -Original Message- From: David OBrien [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 2:08 PM To: Khoa Nguyen; [EMAIL PROTEC

Re: [PHP] Still error messages!!

2004-01-28 Thread John W. Holmes
From: "Radwan Aladdin" <[EMAIL PROTECTED]> > But I mean by $RightLoginTime = 'LoginTime'; > the selected field from the database (LoginTime).. First I selected the > LoginTime from the database and now I'm trying to name a variable for it to > use it.. > > So what is the correct code? You end up

Re: [PHP] sending a hex string as it is?

2004-01-28 Thread David OBrien
At 02:03 PM 1/28/2004, Khoa Nguyen wrote: $var = 0x8180; How do I send $var to the browser as it is? In other words, if sniffing on the wire, I should see 8180, not 38 31 38 30. I think http://www.php.net/manual/en/function.strval.php would work here -Dave Thanks for your help. Khoa -- PHP Gene

[PHP] sending a hex string as it is?

2004-01-28 Thread Khoa Nguyen
$var = 0x8180; How do I send $var to the browser as it is? In other words, if sniffing on the wire, I should see 8180, not 38 31 38 30. Thanks for your help. Khoa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
I believe I'd start here http://www.php.net/manual/en/function.mssql-fetch-row.php You get the db result from your script but you do nothing with it in your script A whole lot more reading and coding you need to accomplish. Good Luck -Dave At 01:54 PM 1/28/2004, Radwan Aladdin wrote: But I mea

Re: [PHP] Still error messages!!

2004-01-28 Thread Radwan Aladdin
But I mean by $RightLoginTime = 'LoginTime'; the selected field from the database (LoginTime).. First I selected the LoginTime from the database and now I'm trying to name a variable for it to use it.. So what is the correct code? Regards.. -- SASSI

Re: [PHP] Help: arrays in a class

2004-01-28 Thread jazzman
On Wed, 28 Jan 2004 [EMAIL PROTECTED] wrote: > in php you have to access a member variable (or methods) with: > $this->varname (without the "$") > > e.g.: $this->includedFile = array(); > > hope this helps AHA! I think that's it. The comment someone sent to me (Sorry, i'm awful with names) abo

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
In your script you have $RightLoginTime = 'LoginTime'; $Distance = 'Distance'; $LessonNumber = 'LessonNumber'; $LessonsTimeLimit = "30"; So $Distance is a string equaling "Distance" and $LessonNumber = "LessonNumber" How are you performing math on a string? -Dave At 01:42 PM 1/28/2004, Radwan Alad

Re: [PHP] Still error messages!!

2004-01-28 Thread John W. Holmes
From: "Radwan Aladdin" <[EMAIL PROTECTED]> > I made that.. but there is something strange!! It's strange you can't follow instructions... > I SELECTED field from the database.. but it is not showing what it contains!! > > This is what is shown on the screen : > > UPDATE accounts SET LogoutTime=

Re: [PHP] Still error messages!!

2004-01-28 Thread Radwan Aladdin
I'm using the GET method.. And it is right.. it shows the correct GET method.. the problem in is in the Destance value.. it is not updating this value to the database.. or it is wrong.. every time = 0 So what is the error? Regards.. - Original Message - From: "David OBrien" <[EMAIL PRO

php-general@lists.php.net

2004-01-28 Thread John W. Holmes
From: "Gerard Samuel" <[EMAIL PROTECTED]> > You're absolutely correct. I jumped the gun way too early. > My experience with replacing & with & is that if the content already > contains entity content, for example   > Running str_replace will mess them up. Depends how you define "mess them up"...

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
I assume you are using another page with a form to enter the username and password? If so: add as the first line of your script right after the phpinfo(); Run your application, scroll to the bottom and look at the "php variables" and make sure that your are asking for $_GET["Username"] and $

Re: [PHP] (WEIRD problem) Not following directories!!! (0t)

2004-01-28 Thread Ryan A
Hey Andrew, > First, note that that is an apache problem, not PHP. Yep, thats why I put the "Ot" in the subject line but since you cant have PHP without a webserver and apache is the most popular on the list or the net...I was hopeing someone else had this problem and could guide me > In htt

Re: [PHP] Session time-out value

2004-01-28 Thread Pushpinder Singh
Yes, I have used a .htaccess file in a Web Directory to prevent http access to its contents. Thanks again !! -Pushpinder Singh On Saturday, January 24, 2004, at 12:59 AM, Jason Wong wrote: On Saturday 24 January 2004 05:46, Pushpinder Singh wrote: I tried to keep a .htaccess file in the D

[PHP] (WEIRD problem) Not following directories!!! (0t)

2004-01-28 Thread Ryan A
Hi, Heres a totally weird problem, I created some folders on our server (which we are accessing only via ip as the domain has not been resolved) but I get an error when i try to access the folder(s)! eg: (I created this folder) ryan and i try to access it like this: http://208.234.29.220/ryan/ a

Re: [PHP] Still error messages!!

2004-01-28 Thread Radwan Aladdin
I made that.. but there is something strange!! I SELECTED field from the database.. but it is not showing what it contains!! This is what is shown on the screen : UPDATE accounts SET LogoutTime=1075313199SELECT LoginTime,Distance,LessonNumber FROM accounts WHERE UserName='' AND Password=''UPDA

Re: [PHP] Variables not working!

2004-01-28 Thread Alvaro Zuniga
Try this for a generic fix if it is the globals issue: Place this somewhere to set to TRUE or FALSE when needed $GLOBAL_FIX = TRUE; use an include on every script: if($GLOBAL_VARS_FIX) { if( phpversion() >= '4.2.0' ) { extract($_POST); extract($_GET); extract($_SERVER);

RE: [PHP] Still error messages!!

2004-01-28 Thread Damon Hill
Correct Radwan, you are NOT trying to echo the queries to the screen. However, what David is trying to teach you is simply debugging techniques. By echoing the actual query that the PHP pareser is using, you can see if it is indeed what you want it to be. This way, you can debug the code yourself,

php-general@lists.php.net

2004-01-28 Thread Gerard Samuel
On Wednesday 28 January 2004 10:23 am, Stuart wrote: > Not from where I'm sitting [PHP 4.3.3RC1 (cli) (built: Jun 21 2003 > 23:40:27) on FreeBSD built from ports]. Code... > Hey, as least we can agree with something. FreeBSD :) > print str_replace('&', '&', 'Here is one & and here is another

Re: [PHP] Still error messages!!

2004-01-28 Thread Radwan Aladdin
Thank for your reply.. But I'm not trying to echo these queries.. What I'm trying to do is : To UPDATE a value in the database (Login_Time and Logout_Time) and then caculate the distance between them and put it in (Distance) field.. then after that program the PHP file and put in it a LessonLimi

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
At 12:08 PM 1/28/2004, Radwan Aladdin wrote: Hello all.. This is the PHP code : include("Config.php"); $link = mysql_connect("$user_hostname", "$user_username", "$user_password"); mysql_select_db("$user_database", $link); $UserName = $_GET['UserName']; $Password = $_GET['Password']; $LogoutTim

Re: [PHP] Still error messages!!

2004-01-28 Thread Radwan Aladdin
Hehehehehe :) sorry I forgot that :) "Query error: You have an error in your SQL syntax near '0') WHERE UserName= AND Password=)' at line 1" Also when I put the right UserName and Password.. the same error!! So also there are sme other errors.. please see the whole script.. What I'm trying to d

Re: [PHP] Still error messages!!

2004-01-28 Thread John W. Holmes
From: "Radwan Aladdin" <[EMAIL PROTECTED]> > So where are the errors? In your code or database, I'm sure of it. In other words, why don't you tell us what error message your getting, the line number, etc. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] chunk_split();

2004-01-28 Thread John W. Holmes
chunk_split();From: Benjamin Trépanier > I am using the chunk_split(); function to separe a > long long text on differents pages. > At this time, I can split the string into x sections of > 2000 characters. > > Now I need to show only the first 2000 . > when user click on page #2, it's reloading

[PHP] Re: Problem with mcrypt_encrypt and mcrypt_decrypt.

2004-01-28 Thread Jas
[EMAIL PROTECTED] wrote: Hi all, i'm trying to crypt and decrypt password with the code below but i get many warnings Warning: mcrypt_get_iv_size(): Module initialization failed in /web/htdocs/www.automationsoft.biz/home/invio_mail.php on line 36 Warning: mcrypt_create_iv(): Can not create an IV w

RE: [PHP] Still error messages!!

2004-01-28 Thread Jay Blanchard
[snip] So where are the errors? [/snip] Good question. You have not shown us the error message. Please show us and we can help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Still error messages!!

2004-01-28 Thread Radwan Aladdin
Hello all.. This is the PHP code : And this is the mySQL structure : # phpMyAdmin MySQL-Dump # version 2.2.3 # http://phpwizard.net/phpMyAdmin/ # http://phpmyadmin.sourceforge.net/ (download page) # # Host: localhost # Generation Time: Jan 28, 2004 at 08:27 PM # Server version: 3.23.47 # PHP V

Re: [PHP] Googlebot

2004-01-28 Thread Mat Harris
On Wed, Jan 28, 2004 at 11:51:06 -0500, Michael Mulligan wrote: > Googlebot visits my site occasionally and follows a lot of my PHP links > with long query strings... same here, google has been indexing my php site for over 3 years now :) -- A Pope has a Water Cannon.

Re: [PHP] chunk_split();

2004-01-28 Thread Martin Luethi
Wed, 28 Jan 2004 11:41:56 -0500 Benjamin Trépanier <[EMAIL PROTECTED]>: On 28/01/04 11:29, "Martin Luethi" <[EMAIL PROTECTED]> wrote: maybe its better to use fread() and fseek() 2000 bytes should be 2000 characters in a textfile g. tinu Wed, 28 Jan 2004 11:20:32 -0500 Benjamin Trépanier <[EMA

RE: [PHP] Tip For The Day

2004-01-28 Thread Ford, Mike [LSS]
On 28 January 2004 15:52, Cesar Cordovez wrote: > Jay Blanchard wrote: > > I think that you meant to "its already been broughten!", didn't > > you? Did you know that you will find that bracing style has been > > debated since the days of FORTRAN? > > > Oh! Fortran 77! I remember those times! =)

Re: [PHP] Googlebot

2004-01-28 Thread Michael Mulligan
Googlebot visits my site occasionally and follows a lot of my PHP links with long query strings... -Mike __ Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread! __ On Jan 28, 2004, at 8:34 AM, Jon Bennett wrote: Does that go

Re: [PHP] chunk_split();

2004-01-28 Thread Martin Luethi
maybe its better to use fread() and fseek() 2000 bytes should be 2000 characters in a textfile g. tinu Wed, 28 Jan 2004 11:20:32 -0500 Benjamin TrÃpanier <[EMAIL PROTECTED]>: Hi, I am using the chunk_split(); function to separe a long long text on differents pages. At this time, I can split th

[PHP] Zend Studio ESC key issue?

2004-01-28 Thread Gryffyn, Trevor
First, let me apologize for this not being a specific PHP question, but I can't find the answer and I'm hoping someone else here has run into this. Maybe I'm just blind, blond or stupid today. :) In Zend Studio (Zend Development Environment) for Windows (on Windows 2000 fyi), when I hit the ESC k

Re: [PHP] Help: arrays in a class

2004-01-28 Thread John Nichel
John W. Holmes wrote: You have an extra $ sign in your variables names. $this->fName instead of $this->$fName Not sure if that'll solve all your problems, but it's a start. ---John Holmes... Oh, sure. Point out what I missed in my eval. ;) -- By-Tor.com It's all about the Rush http://www.b

[PHP] chunk_split();

2004-01-28 Thread Benjamin Trépanier
Title: chunk_split(); Hi, I am using the chunk_split(); function to separe a long long text on differents pages. At this time, I can split the string into x sections of 2000 characters. Now I need to show only the first 2000 . when user click on page #2, it’s reloading and show the next 200

  1   2   >