Re: [PHP] XML

2003-07-16 Thread Ray Hunter
> 1. How efficient is to use XML+XSLT solution? Does it > add processing overhead to the system? The efficientcy is relative to many factors, however I can stress this. The style sheets can be cached client side and then only xml data can be sent to the user. This reduces bandwidth and allows the

Re: [PHP] Anyone for cookies and milk? :-)

2003-07-16 Thread Curt Zirzow
Nomadeous <[EMAIL PROTECTED]> wrote: > From the official doc: > http://www.php.net/manual/en/function.setcookie.php > All the arguments except the name argument are optional. You may also > replace an argument with an empty string ("") in order to skip that > argument. Because the expire and secure

Re: [PHP] imagecreate() error

2003-07-16 Thread Michelle Bernard
no errors have come up yet, still getting the same problem too, I am pulling out my hair :) everything else works nice and smoothly just this whole gd thing... "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do you get any error at apache start up or in error logs?

Re: [PHP] Display HTML/PHP code on a web page

2003-07-16 Thread Curt Zirzow
Jason Paschal <[EMAIL PROTECTED]> wrote: > I've googled for it, but nothing came up. How do I display code on a page > without it being executed? This has to do with how your webserver is set up, because it see's that its a php file it runs it thruough php. > i want the page to display HTML cod

[PHP] Recomposed per instructions??? jpeg photo file upload problem

2003-07-16 Thread John T. Beresford
Hi All, I have a system that allows a person to upload photos to the server via an admin web form. I have been using the code for about a year with no problem. I designed it specifically for a client of mine that has just started cruising on a sailboat for a few years. They tryed uploading a

Re: [PHP] fwrite not working in php3

2003-07-16 Thread daniel
sorry guys the server was full again , doesnt return any error at all funny hey > On Thursday 17 July 2003 09:46, [EMAIL PROTECTED] wrote: >> hi there i have a little problem writing files on a php3 server this >> code worked yesterday but isnt >> >> $handle = >> fopen("/www_tools/apache/htdocs/ph

Re: [PHP] Code and Good Design Methods

2003-07-16 Thread Ray Hunter
Actually, MVC works really well with XML technologies, however, there needs alot of work in php's core to fully utilize the benefits of an mvc paradigm. -- BigDog On Wed, 2003-07-16 at 04:12, Joel Rees wrote: > > Hi Joel, > > > > Thanks for nice comments on the XML, XSL. > > > > I want to know

Re: [PHP] Anyone for cookies and milk? :-)

2003-07-16 Thread Nomadeous
>From the official doc: http://www.php.net/manual/en/function.setcookie.php All the arguments except the name argument are optional. You may also replace an argument with an empty string ("") in order to skip that argument. Because the expire and secure arguments are integers, they cannot be skippe

Re: [PHP] STRING FORMATTING QUESTION

2003-07-16 Thread Curt Zirzow
Dale Hersh <[EMAIL PROTECTED]> wrote: > My question is regarding strings in php. I have this form in which the user > fills in a description. The problem is that if the user uses any > aprostrophe's or any other unusual characters in the form, the string can > not be inserted into my ms sql databas

Re: [PHP] How unsafe is register_globals?

2003-07-16 Thread Curt Zirzow
Paul Chvostek <[EMAIL PROTECTED]> wrote: > > I've got this new server running with folks from all over uploading PHP > code. I don't know all the folks, so I've turned on safe_mode, set an > open_basedir to each user's documentroot, and left register_globals at > its default. > > And now I'm get

Re: [PHP] state (Field Problem)

2003-07-16 Thread Louie Miranda
got it working.. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 17, 2003 1:49 PM Subject: Re: [PHP] state (Field Problem) > On Thursday 17 July 2003 12:56, Louie Miranda wrote: > >

Re: [PHP] reading from dir and displaying thumbs

2003-07-16 Thread Jason Wong
On Thursday 17 July 2003 02:44, Ryan A wrote: > I want to convert my old java greetings programs into php scripts but am > stuck on one little thing. > I have a bunch of thumbnails in a 3 directories, the problem is the number > of thumbnails in each directory is differient...how do i first make t

Re: [PHP] fwrite not working in php3

2003-07-16 Thread Curt Zirzow
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > hi there i have a little problem writing files on a php3 server this code > worked yesterday but isnt > > $handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a'); Test your $handle to see if you successfully opened the file. if (!

Re: [PHP] fwrite not working in php3

2003-07-16 Thread Jason Wong
On Thursday 17 July 2003 09:46, [EMAIL PROTECTED] wrote: > hi there i have a little problem writing files on a php3 server this code > worked yesterday but isnt > > $handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a'); > $buffer = "test"; > echo fwrite($handle,$buffer,4000); >

Re: [PHP] How unsafe is register_globals?

2003-07-16 Thread Jason Wong
On Thursday 17 July 2003 13:06, Paul Chvostek wrote: > Perhaps that's where I need advice. Currently, a .htaccess file with: > > php_flag register_globals on > > gets the error "php_flag not allowed here". I see from the comments at > http://www.php.net/register_globals that I need AllowOver

Re: [PHP] bcc on php

2003-07-16 Thread Curt Zirzow
Louie Miranda <[EMAIL PROTECTED]> wrote: > hello, > > how do you make a bcc on php on a form 2 email settings.. I would suggest: http://phpmailer.sourceforge.net/ Curt -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bcc on php

2003-07-16 Thread Curt Zirzow
Ralph Guzman <[EMAIL PROTECTED]> wrote: > Just include Bcc in the extra headers. Take a look at > > Example 4. Sending complex email > http://www.php.net/manual/en/function.mail.php > um.. don't use that example, it is the incorrect way to send a bcc. for one it wont work and two the people will

Re: [PHP] state (Field Problem)

2003-07-16 Thread Jason Wong
On Thursday 17 July 2003 12:56, Louie Miranda wrote: > Given this problem.. > I have this html form that has a "State" option and it list all the US > states. And i also have a "State/Province" field if ever he does not live > in the US. > > My problem is how will i recognize both? I Mean, i will

Re: [PHP] Display HTML/PHP code on a web page

2003-07-16 Thread Justin French
Don't really understand the problem but htmlspecialchars() will convert: Justin & Co into Justin & Co ... which will solve half your problem... not sure what to do with php code... perhaps the same thing... Or, you may want to look at show_source() and highlight_file() as well... Jus

Re: [PHP] Anyone for cookies and milk? :-)

2003-07-16 Thread Curt Zirzow
Ryan A <[EMAIL PROTECTED]> wrote: > Hey, > Am just getting into PHP cookies and have gotten a problem...(surprise > surprise) > > Am trying to set a basic cookie to see exactly how things work before I > start using it in my apps, heres the code i am using: > (SetCookieEx.php) > setcookie("name1"

Re: [PHP] Interesting question re HTTP Ranges and PHP

2003-07-16 Thread Chris Shiflett
--- Dan Goodes <[EMAIL PROTECTED]> wrote: > What I want is for the PHP script to read ALL the headers for the > request (in particular, RANGE headers), and then return the relevant > portion of the file. Can this be done fairly simply? I think you will find all header in the $_SERVER array. It is

[PHP] Interesting question re HTTP Ranges and PHP

2003-07-16 Thread Dan Goodes
Hi folks, I currently have an interesting dilemma - any help is appreciated (if possible, CC directly to [EMAIL PROTECTED] as well as the list). What Ive got is a PHP wrapper script that performs authetication, and uses "readfile()" to return the requested file. So a user requests /path/to/fil

Re: [PHP] How unsafe is register_globals?

2003-07-16 Thread Paul Chvostek
On Wed, Jul 16, 2003 at 11:42:29PM -0500, Jonathan Villa wrote: > > This is only my stubborn opinion... > > I would turn it on for now with a warning that it will be turned off > soon... At least in my case, it's never been on in the past, and the queries are coming from folks who want me to ch

Re: [PHP] Display HTML/PHP code on a web page

2003-07-16 Thread Chris Shiflett
--- Jason Paschal <[EMAIL PROTECTED]> wrote: > I've googled for it, but nothing came up. How do I display code > on a page without it being executed? Try htmlentities() Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing

[PHP] Display HTML/PHP code on a web page

2003-07-16 Thread Jason Paschal
I've googled for it, but nothing came up. How do I display code on a page without it being executed? i want the page to display HTML code as it would look if you typed it into an editor (not encoded), and the code I want to display is being spit out by PHP. Which functions should i look at? i

[PHP] state (Field Problem)

2003-07-16 Thread Louie Miranda
Given this problem.. I have this html form that has a "State" option and it list all the US states. And i also have a "State/Province" field if ever he does not live in the US. My problem is how will i recognize both? I Mean, i will pass it over to a php program and ofcourse the php will parse the

[PHP] STRING FORMATTING QUESTION

2003-07-16 Thread Dale Hersh
My question is regarding strings in php. I have this form in which the user fills in a description. The problem is that if the user uses any aprostrophe's or any other unusual characters in the form, the string can not be inserted into my ms sql database. Any ideas? Thanks, Dale -- PHP Genera

RE: [PHP] How unsafe is register_globals?

2003-07-16 Thread Jonathan Villa
This is only my stubborn opinion... I would turn it on for now with a warning that it will be turned off soon... I work for a company which is strictly Microsoft/Domino Technology and until I arrived, many have not heard of PHP and for the few that did, well let's just say that sloppy, unstable,

Re: [PHP] How unsafe is register_globals?

2003-07-16 Thread Chris Shiflett
--- Paul Chvostek <[EMAIL PROTECTED]> wrote: > I've got this new server running with folks from all over > uploading PHP code. I don't know all the folks, so I've > turned on safe_mode, set an open_basedir to each user's > documentroot, and left register_globals at its default. > > And now I'm get

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread John Manko
why not build a GET QUERY_STRING, save it in a database along with the session_id, the read it on the second page, parsing the string. Jeff Harris wrote: |Valentin wrote: | |>Hi, is any way to pass a $Var from one to other php pages without using |> and Cookies? |> |>Thanks, |> On Jul 16, 2003,

[PHP] How unsafe is register_globals?

2003-07-16 Thread Paul Chvostek
I've got this new server running with folks from all over uploading PHP code. I don't know all the folks, so I've turned on safe_mode, set an open_basedir to each user's documentroot, and left register_globals at its default. And now I'm getting scads of requests to turn on register_globals from

Re: [PHP] pdf information..

2003-07-16 Thread daniel
hmtldoc rulez , i have tried fpdf and is tedious u have to draw the tables >> What's the problem with paying for something if > > nothing.. nothings wrong, but if the free GNU software can do it also, > i switch to free software. > > Like php is :) At first not that mature but look at it now.. > >

[PHP] jpeg photo file upload problem

2003-07-16 Thread John T. Beresford
Hi All, I have a system that allows a person to upload photos to the server via an admin web form. I have been using the code for about a year with no problem. I designed it specifically for a client of mine that has just started cruising on a sailboat for a few years. They tryed uploading a

Re: [PHP] pdf information..

2003-07-16 Thread Louie Miranda
> What's the problem with paying for something if nothing.. nothings wrong, but if the free GNU software can do it also, i switch to free software. Like php is :) At first not that mature but look at it now.. people have different opinions, and i respect yours. -- Thank you, Louie Miranda ([E

Re: [PHP] pdf information..

2003-07-16 Thread Stephen Rainey
I have used pdflib EXTENSIVELY for over a year. I develop products for a company who sells web based tools that allow medium/large corporations to automate the creation of advertising materials. These tools are used by the companies dealers and franchieses. We chose pdflib because of a few uni

Re: [PHP] pdf information..

2003-07-16 Thread Justin French
On Thursday, July 17, 2003, at 11:38 AM, Louie Miranda wrote: i never tried FPDF but just downloaded it. i'll try in a while.. have you tried making a business card using this? i've testing the pdflib it works great, but the sad thing is i have to pay for it. What's the problem with paying for

[PHP] fwrite not working in php3

2003-07-16 Thread daniel
hi there i have a little problem writing files on a php3 server this code worked yesterday but isnt $handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a'); $buffer = "test"; echo fwrite($handle,$buffer,4000); fclose($handle); i get a filesize of 0 and nothing writes to it what

Re: [PHP] XML

2003-07-16 Thread Hardik Doshi
Hi there, I read this interesting thread and come up with some questions. 1. How efficient is to use XML+XSLT solution? Does it add processing overhead to the system? 2. Do you have some examples which can describe the separation of layers using the XML+XSLT technology? 3. Currently i am stori

Re: [PHP] Re: socket programming

2003-07-16 Thread Michael P. Carel
> http://nanoweb.si.kz/ > thanks for this link, it will helps me alot. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf information..

2003-07-16 Thread Louie Miranda
i never tried FPDF but just downloaded it. i'll try in a while.. have you tried making a business card using this? i've testing the pdflib it works great, but the sad thing is i have to pay for it. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Enda Nagle

Re: [PHP] Need Help: Please click on Test Link

2003-07-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Thu, 17 Jul 2003 at 02:02, lines prefixed by '>' were originally written by you. > I need your help. > Can you please visit a site > http://sspsoft.com/test/ip2ll.php (in case if you cannot get it, > please > click on http://ns1.webhostdns.us a

Re: [PHP] Re: pdf information..

2003-07-16 Thread Miranda, Joel Louie M
Sven, thanks for the info! "sven" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > a pdf-page can have almost every format you want. > > originally you work with postscript-dots, where 72 dots are 1 inch. > it's easy from that point to calculate from metric system, where 1 >

[PHP] Need Help: Please click on Test Link

2003-07-16 Thread Suhas Pharkute
Hi I need your help. Can you please visit a site http://sspsoft.com/test/ip2ll.php (in case if you cannot get it, please click on http://ns1.webhostdns.us and then click on the website link.) which should identify your Country, State, City. Please click on one of the buttons to provide feedback

RE: [PHP] bcc on php

2003-07-16 Thread Ralph Guzman
Just include Bcc in the extra headers. Take a look at Example 4. Sending complex email http://www.php.net/manual/en/function.mail.php -Original Message- From: Louie Miranda [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 5:47 PM To: [EMAIL PROTECTED] Subject: [PHP] bcc on php

[PHP] bcc on php

2003-07-16 Thread Louie Miranda
hello, how do you make a bcc on php on a form 2 email settings.. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: MySQL query problems

2003-07-16 Thread Beauford.2005
Not sure what the problem was, but I dug up a similar script I used for something else and modifed it for this project, and voila. I then put the two side by side and I still can't see where the problem is. Thanks for the input. -Original Message- From: Nomadeous [mailto:[EMAIL PROTECTED

Re: [PHP] PROBLEMS WITH STRINGS & SQL DATABASE

2003-07-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Thu, 17 Jul 2003 at 01:13, lines prefixed by '>' were originally written by you. > This my problem: > I have this insert statement in my code that works fine for all > strings > except strings that include the following characters: > ' " Have

[PHP] PROBLEMS WITH STRINGS & SQL DATABASE

2003-07-16 Thread Dale Hersh
This my problem: I have this insert statement in my code that works fine for all strings except strings that include the following characters: ' " Any ideas? Thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Justin French
On Thursday, July 17, 2003, at 12:17 AM, Curt Zirzow wrote: Excellent point! I find my self using regex's a bit to often when there are other solutions available. btw, have you ever tested the difference between if(ereg('^[0-9]{6}$',$str)) if(preg_grep('^[0-9]{6}$',$str)) I've be

Re: [PHP] Re: Object can not be used after a session

2003-07-16 Thread Matt Silva
Hi Mike Yes your right about when the session data is updated. The problem then lies in when I try to read the object from the session var. I include at the top of the file the class definition. Not to get sidetracked but when you say you wrote another layer, are you talking about utilizing the

RE: [PHP] Re: correct session format?

2003-07-16 Thread Bill MacAllister
--On Monday, June 23, 2003 08:30:19 AM -0600 "Johnson, Kirk" <[EMAIL PROTECTED]> wrote: So what is the diffirent between : session_start (); $_SESSION['eventid'] = 'arma2'; and session_start (); session_register('arama2'); Use the first method to create session variables when register_global

RE: [PHP] Opening a Window with JavaScript

2003-07-16 Thread Brenton Dobell
I also know with the javascript open window, you can force the print window to popup, what do you have to add to this link below?? Thanks -Original Message- From: Aaron Gould [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 3:48 AM To: Curt Zirzow; [EMAIL PROTECTED] Subject: Re: [P

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Jeff Harris
|Valentin wrote: | |>Hi, is any way to pass a $Var from one to other php pages without using |> and Cookies? |> |>Thanks, |> On Jul 16, 2003, "John Manko" claimed that: |page1.php |$_SESSION['myvars_VARNAME'] = $varname; |the 'myvars_' is just for identification purposes, so avoid over-writing |a

[PHP] Re: include statement giving me hives! - help

2003-07-16 Thread DougD
yes, I should have mentioned: $point is defined in the URL string http://something.com/index.html?point=12 "Baroiller Pierre-Emmanuel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > when you call your script, is $point defined somewhere ? > if $point is empty, you'll get

Re: [PHP] How to store a file into MSSQL?

2003-07-16 Thread Javier
[EMAIL PROTECTED] (John Manko) wrote in news:[EMAIL PROTECTED]: Does it apply also to MSSQL = Microsoft SQL Server? > Look here > http://www.mysql.com/doc/en/BLOB.html > > Actually, if you don't care if the images can be view from outside the > DB, you can do what I do. > I simplely put the nam

[PHP] Re: really no way to get byte size of variable?

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi, did you try count($value) and strlen($value) ? count($value) will give size of an array, and strlen($value) size of a string ... Regards, P.E. Baroiller "Petre Agenbag" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > Hi List > Just want to make sure: > > Is there no w

[PHP] Re: include statement giving me hives! - help

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi, when you call your script, is $point defined somewhere ? if $point is empty, you'll get an empty string for $links_include and include $links_include will not work. Regards, P.E. Baroiller "Dougd" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > I am new to all this, bu

[PHP] Re: PHP & MS Exchange Server problem

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi... are your sure your Exchanger server has imap enabled and port 143 is open ? If you've got the message "connection refused", it can be : - not imap server is running - your login/password couple is wrong or - you can't connect to the port 143... regards, P.E. Baroiller "Charles Vos" <[EMAI

[PHP] Re: Using Extensions

2003-07-16 Thread Nomadeous
Of course on the official page ;-) http://www.php.net/manual/en/funcref.php Each extension defines functions which can easily be recognised by their prefix: example: xslt_create => xslt extension bzwrite => bzip2 extension "Brenton Dobell" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMA

Re: [PHP] Re: Object can not be used after a session

2003-07-16 Thread Mike Migurski
>Wow thats strange?? I am using PHP 4.3.2 as well and I don't see that >happening where it serializes the object when assigning it to the >$_SESSION. It doesn't do it when you assign it into the $_SESSION array, it does it when the script completes and updated session data is written to the sessi

Re: [PHP] Anyone for cookies and milk? :-)

2003-07-16 Thread Chris Shiflett
--- Ryan A <[EMAIL PROTECTED]> wrote: > Am just getting into PHP cookies and have gotten a problem...(surprise > surprise) > > Am trying to set a basic cookie to see exactly how things work before I > start using it in my apps, heres the code i am using: > (SetCookieEx.php) > setcookie("name1","1

[PHP] Re: Anyone for cookies and milk? :-)

2003-07-16 Thread Nomadeous
"Ryan A" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hey, > Am just getting into PHP cookies and have gotten a problem...(surprise > surprise) > > Am trying to set a basic cookie to see exactly how things work before I > start using it in my apps, heres the code i am us

[PHP] Re: MySQL query problems

2003-07-16 Thread Nomadeous
But what's your prob ? When you say the second one seems to never be executed ... Does the line: $row = mysql_fetch_array($result2); launches a Php Error ? And pay attention, because you're using mysql_fetch_array and mysql_fetch_row, be sure that you are not treating the result in the same way ;-

[PHP] Re: Regex help needed

2003-07-16 Thread Nomadeous
First, the prob you got : WARNING comes from the following error: (\s+face=\"Verdana, Arial, Helvetica, sans-serif\"|)> After the | (OR) sign, you must define another case, example: echo eregi_replace ("(\s*)\s*\s*purchasing power parity", '%POWER%', 'sdsdssPurchasing power parity'); Secondl

[PHP] Anyone for cookies and milk? :-)

2003-07-16 Thread Ryan A
Hey, Am just getting into PHP cookies and have gotten a problem...(surprise surprise) Am trying to set a basic cookie to see exactly how things work before I start using it in my apps, heres the code i am using: (SetCookieEx.php) This is the output I am getting: ** Warning: s

Re: [PHP] Regex and variable usage

2003-07-16 Thread Nomadeous
Gerard Samuel a écrit: Curt Zirzow wrote: Gerard Samuel <[EMAIL PROTECTED]> wrote: or even preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/', $some_string) I think, you Forgot, a \ before the $ at the end of the expression... that should work. Unfortunately it doesn'

[PHP] PHP & MS Exchange Server problem

2003-07-16 Thread Charles Vos
Hello All--- I'm having some trouble getting PHP to communicate with my Windows 2000 MS Exchange Server... I'm running PHP 4.3.2 on a Win2000 machine serving with Apache 1.3. The code I'm using is: $mbox = imap_open("{x.x.x.x:143}","admin","adminpass", OP_HALFOPEN); $err = imap_errors();

Re: [PHP] Regex help needed

2003-07-16 Thread Curt Zirzow
Sid <[EMAIL PROTECTED]> wrote: > Hello, > > Well I am doing by first reg ex operations and I am having problems which I just > cannot figure out. > > For example I tried > echo eregi_replace ("(\s*)\s* size=\"2\">\s*purchasing power parity", '%POWER%', 'sdsdss bgcolor="#f8f8f1">Purchasing power

[PHP] include statement giving me hives! - help

2003-07-16 Thread DougD
I am new to all this, but here is the basic code: $link_titles = file('links/master.txt'); $links_include = $link_titles[$point]; // path to directory include $links_include; If I echo the value of $links_include just prior to the include() function it contains what I would expect it to conta

Re: [PHP] Regex and variable usage

2003-07-16 Thread Gerard Samuel
Curt Zirzow wrote: Gerard Samuel <[EMAIL PROTECTED]> wrote: or even preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/', $some_string) that should work. Unfortunately it doesn't for some reason. Don't know why. but you could do this: $pattern = "/^[a-z0-9\-_\.]+\.[a-z

[PHP] really no way to get byte size of variable?

2003-07-16 Thread Petre Agenbag
Hi List Just want to make sure: Is there no way for me to easily determine the byte size occupied by a variable (regardless of type)? It might be trivial, or I'm missing the point (as per usual)... I would like to find the actual byte size that is transmitted when say a $_POST variable is sent,

Re: [PHP] Regex and variable usage

2003-07-16 Thread Curt Zirzow
Gerard Samuel <[EMAIL PROTECTED]> wrote: > Has anyone had any success with using variables in a regex shown below?? > > $foo = 3; > $bar = 4; > preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{$foo, $bar}$/', $some_string) You have single quotes, so php wont expand the variables inside. > > or even > pre

[PHP] Regex and variable usage

2003-07-16 Thread Gerard Samuel
Has anyone had any success with using variables in a regex shown below?? $foo = 3; $bar = 4; preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{$foo, $bar}$/', $some_string) or even preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/', $some_string) but this would work preg_match('/^[a-z0-9

Re: [PHP] Re: Object can not be used after a session

2003-07-16 Thread Matt Silva
Wow thats strange?? I am using PHP 4.3.2 as well and I don't see that happening where it serializes the object when assigning it to the $_SESSION. I am using the dbg debugger and nusphere PHP editor and I can step through the code and as I do it shows that the session var is not serialized. Howe

[PHP] Regex help needed

2003-07-16 Thread Sid
Hello, Well I am doing by first reg ex operations and I am having problems which I just cannot figure out. For example I tried echo eregi_replace ("(\s*)\s*\s*purchasing power parity", '%POWER%', 'sdsdssPurchasing power parity'); and this worked perfectly, but when I chnaged that to echo eregi_

[PHP] reading from dir and displaying thumbs

2003-07-16 Thread Ryan A
Hi guys, I want to convert my old java greetings programs into php scripts but am stuck on one little thing. I have a bunch of thumbnails in a 3 directories, the problem is the number of thumbnails in each directory is differient...how do i first make the script look into the directory, display (ma

RE: [PHP] MySQL query problems

2003-07-16 Thread Beauford.2005
I tried that, but there is no error to stop the script at this point. The script continues past this point and to the end of the script - there are just no values in the variables for the second query, which obviously gives me the wrong results. -Original Message- From: Marek Kilimajer [ma

Re: [PHP] Odd Error (PHP4 & IIS)

2003-07-16 Thread Shena Delian O'Brien
Tried. Didn't work then, isn't working now. Johnny Martinez wrote: I see this randomly on my little server. Just hit the refresh button :P J -Original Message- From: Shena Delian O'Brien [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] Odd Error (PHP4 & IIS)

2003-07-16 Thread Johnny Martinez
I see this randomly on my little server. Just hit the refresh button :P J -Original Message- From: Shena Delian O'Brien [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Odd Error (PHP4 & IIS) Hi - Got PHP4 running on IIS as a testin

Re: [PHP] Opening a Window with JavaScript

2003-07-16 Thread Aaron Gould
Try this (note the "return false;" addition at the end): -- Aaron Gould Web Developer Parts Canada - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 16, 2003 2:15 PM Subject: Re: [PHP] Opening a Window with JavaScript > Todd C

Re: [PHP] Opening a Window with JavaScript

2003-07-16 Thread Curt Zirzow
Todd Cary <[EMAIL PROTECTED]> wrote: > [...] > However, if I use an anchor, the form is submitted. Is there a way to > prevent this? Here is the code I tried: > > I believe you can put something like (not tested): > > Todd > -- Curt -- -- PHP General Mailing List (http://www.php.net/

[PHP] Odd Error (PHP4 & IIS)

2003-07-16 Thread Shena Delian O'Brien
Hi - Got PHP4 running on IIS as a testing server (only used internally for my own testing purposes). It suddenly just flurbed on pages it worked fine on minutes ago. Now suddenly it gives me this error (with popups telling me about the missing files): Security Alert! The PHP CGI cannot be acce

[PHP] Opening a Window with JavaScript

2003-07-16 Thread Todd Cary
I want to have a link on a php page that when opened, has to be closed in order to move on.  I have done this on pages using a button and _javascript_ as follows: When the button is clicked, the form is *NOT* submitted - this is what I want. However, if I use an anchor, the form is submitte

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
And I still don't see how your proposed method handles the problem you mentioned above with Image2... RDB Now, first, what would you prefer? Second, I hope you understand how the new feature would address the issue (and that you know what the issue is - if i explained it clearly, of course) As

[PHP] How to address __FILE__ constant in extensions?

2003-07-16 Thread Sam Baum
Hi there, i am not getting it. How can I read out the magical __FILE__ constant inside an _extension_ (a loadable module) ? Its not in symbol_table, so where is it? bg Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL query problems

2003-07-16 Thread Marek Kilimajer
Change $email_error to $mysqlerror and hopefully some error message will appear. Beauford.2005 wrote: if ($mysqlerror) { $error = "$d_base_error$email_error"; include("trades-input.php"); exit; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] PHP explodes without using isset()

2003-07-16 Thread Curt Zirzow
John Manko <[EMAIL PROTECTED]> wrote: > I've tried checking if $_POST and $_GET vars are set with just > > if($_POST['yuck']) > > When 'yuck' is not present my code always explodes with > *"Notice*: Undefined index: yuck" on the page output. You can use the @ error suppressor. if (@$_POST['yuck

Re: [PHP] PHP explodes without using isset()

2003-07-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 16 Jul 2003 at 17:37, lines prefixed by '>' were originally written by you. > I've tried checking if $_POST and $_GET vars are set with just > if($_POST['yuck']) > When 'yuck' is not present my code always explodes with > *"Notice*: Undefi

[PHP] PHP explodes without using isset()

2003-07-16 Thread John Manko
I've tried checking if $_POST and $_GET vars are set with just if($_POST['yuck']) When 'yuck' is not present my code always explodes with *"Notice*: Undefined index: yuck" on the page output. I never see any mention in the codes examples referencing a php function that instructs the preprocessor

Re: [PHP] get size of variable n bytes

2003-07-16 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 16 Jul 2003 at 16:35, lines prefixed by '>' were originally written by you. > Yes, well, that complicates things. > You see, I'm trying to determine the size that the $_POST variable > will be > in bytes, because there is a byte limit in t

[PHP] Test (ignore)

2003-07-16 Thread Robert Cummings
Some of my mail hasn't appeared on list for a while, just testing if connection is working. IGNORE THIS MESSAGE :) -- .-. | Worlds of Carnage - http://www.wocmud.org | :-: | Come visit a world of myth and l

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Curt Zirzow
Justin French <[EMAIL PROTECTED]> wrote: > If you care about performance at all, try and find away around the > problem without regular expressions... > > I tested > > if( (strlen($str) == 6) && (is_int($str)) ) > I did some more tests on this problem is that $str is still considered a st

[PHP] MySQL query problems

2003-07-16 Thread Beauford.2005
Hi, Not sure if the problem here is PHP or MySQL, but here we go. I am trying to do two queries on a database - one after the other, but the second one never seems to get executed. The two queries are identical except for two variables. I have checked my form and they are correct and are being sen

[PHP] Re: XML Array

2003-07-16 Thread Lee Doolan
> "Lee" == Lee Doolan <[EMAIL PROTECTED]> writes: > "Michael" == Michael Smith <[EMAIL PROTECTED]> writes: Michael> Hey, I'm looking for a function to take an XML file and Michael> turn it into a PHP array with the same structure. Lee> here's something that I found on the inter

RE: [PHP] HTTPS POST without user/client intervention

2003-07-16 Thread Jeff Harris
|-Original Message- |From: PHP List [mailto:[EMAIL PROTECTED] |Sent: Tuesday, July 15, 2003 1:02 PM |To: [EMAIL PROTECTED] |Subject: [PHP] HTTPS POST without user/client intervention | |I am writing a php script to accept an HTTPS POST of data from a remote |site, process the data, and send

Re: [PHP] Problem with Apache Web Server config file and PHP (pleasegive advice on what problem may be me)

2003-07-16 Thread Marek Kilimajer
Did you add these lines to http.conf?: LoadModule php4_module c:/php4/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php If you did, did you restart apache afterwards? karen santmyer wrote: HI: Can anyone refer me to someone that can help with the problem below.

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread Reuben D. Budiardja
On Wednesday 16 July 2003 09:46 am, John Manko wrote: > Ok, before you go responding with percentages, I should note this. > > consider this: > Image1 : 100x100 (Ratio = 1:1) > Image2 : 100x200 (Ratio = 1:2) > > Space available for display : 75x75 > > now, i can say "width=75% height=75%", but t

Re: [PHP] multi file multi colomn

2003-07-16 Thread John Manko
is there a max file handle pool in php? look at: http://us3.php.net/fopen http://us3.php.net/fwrite FB wrote: Hi, I have 40 text files.. each files have 1 colomn of a data. I want to write a script to merge them like datafrom1;datafrom2;datafrom3;datafrom40 how can I do that? TIA

[PHP] Re: XML Array

2003-07-16 Thread Lee Doolan
> "Michael" == Michael Smith <[EMAIL PROTECTED]> writes: Michael> Hey, I'm looking for a function to take an XML file and Michael> turn it into a PHP array with the same structure. here's something that I found on the internet a few months back. I've used it a number of times:

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Valentin
Thanks John! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >