[PHP] Search Engines and PHP

2001-01-22 Thread Jamie
Ideas Jamie Slightly confused and possibly mislead

[PHP] Outputting a 2 digit number 10

2001-01-25 Thread Jamie
f ($i == $day) { echo("option SELECTED value=\"$i\"$i/option\n"); } else { echo("option value=\"$i\"$i/option\n"); } } echo"/select" ? Any help will be apreciated Jamie

[PHP] Passing HTTP_COOKIE_VARS to functions

2001-01-29 Thread Jamie
Can anyone tell me why this piece of code is not working - I'm finding that if I pass values rather then the HTTP_COOKIE_VARS["cookiename"] to the function it seems to work but I want to have this value a variable cookie (for obvious reasons). I cannot seem to find any more information on this

[PHP] Arrays from forms

2001-02-04 Thread Jamie
Can someone please help me with this code I'm having major problems with arrays. This code is part of a function I'm writing to deal with an array returned from a HTML form of check boxes so if anyone has an example of this sort of thing I'd appreciate a look at it. Anyway Code follows :

[PHP] Arrays through URL

2001-02-09 Thread Jamie
I'm trying to pass a multi dimensional array through a url link but I'm having a hard time doing this. Is it actually possible? from what I can tell the url just shows ...$form_options_array=Array Is there a better way to do this? thanks jamie -- PHP General Mailing List (http

[PHP] OT - news.php.net server problems?

2005-05-15 Thread Jamie
Hi, i know its a little off topic, and its probably just me. But has anyone else been having problems with the nntp ervers news.php,net? more precisely connections being closed unespectedly? just checking to see :) Thanks Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Some help on using regex

2005-03-26 Thread Jamie
anyone have any advice or help? Or have any sites that has a decent reference guide? Thanks Jamie -==- Output from socket -==- project master_urlhttp://climateprediction.net//master_url project_nameclimateprediction.net/project_name user_nameBob/user_name team_name/team_name

[PHP] syntax to reference $_POST within function

2002-12-19 Thread Jamie
is appreciated! Thanks, Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax to reference $_POST within function

2002-12-20 Thread Jamie
could also point me to the lesson that needs to be learned here. Is it that it is an array? or syntax? Thanks for the assistance! Jamie Sullivan Philip Olson wrote: First, read this: http://www.php.net/variables.external Second, assuming you have a PHP version equal to or greater than

[PHP] Sorting through an array

2004-04-09 Thread Jamie
need to store the artists that i have already passed and havent been matched so i can check the next artist. I know it sounds confusing, but i hope you understand what i mean! Any help would be appreciated. Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Storing binary data within a php script.

2004-12-18 Thread Jamie
suggest me to do this. Im trying to this for two reasons first is to make the application usable by anyone and the second reason is to try to push the boundarys of the langage. I would like anyones comments and views on this please. Any views might help me come to a result. Thanks Jamie -- PHP

[PHP] Re: Storing binary data within a php script.

2004-12-19 Thread Jamie
Thanks Jed, Im just trying your method. If i have any problems ill reply to this post Jamie Jed Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is done in a few examples using base64_encode() and base64_decode(). A particular OpenGL example I can recall encoded a small

[PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
Is there a way to detect if a browser is using a HTTPS or HTTP. As i can get the scripts self and the host its running off but i cannot seem to find a way to grab if the connection is secure or not. Thanks for any help in advance Jamie -- PHP General Mailing List (http://www.php.net

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
. Thanks Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
phpinfo there is not a SCRIPT_URI This is weird and confusing... why does it only work on a few operating systems :S Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
HTTPS what means the statement is evaluating as false. When it should be true (as im currently viewing the page off a HTTP connection) Any ideas? Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
Try $_ENV['HTTPS'] That prints nothing at all on windows and linux. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
You want to specifically check for $_SERVER[HTTPS] == on because if you're not using HTTPS then $_SERVER[HTTPS] does not exist. If this is the case why does it work ok on my windows box? Shouldnt it have same output accross all platforms? -- PHP General Mailing List

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-14 Thread Jamie
that defects on different operating system. Now someones explained i can work arround it. Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Configuring php.ini path

2004-09-21 Thread Jamie
to the command line. And when i add a variable using set PHPRC=e:/php. it does not seem to work. Any help or idea's would be helpfull. Thanks Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session Help (transparent sid's)

2001-01-11 Thread Jamie Burns
places) ! Is there a way to override this behaviour in the ini file, or even in the code? One of my customers sites is down because of this, and i can find nothing through searching 8( Thanks guys, Jamie Burns.

[PHP] how do i hide my .inc files in apache??

2001-01-17 Thread Jamie Burns
hi.. can anyone tell me how i get apache to never send out the contents of my include files (*.inc) to users? i dont want my source sode to be visible to browsers. thanks, jamie.

[PHP] regular expression help

2001-01-24 Thread Jamie Burns
)[ |\"|].*" ... thanks for your help - regular expressions are not my best area! jamie.

[PHP] Cobalt Raq Servers PHP

2001-01-31 Thread Jamie Thompson
Has anyone had any experience using php on a Cobalt Raq4 server? any bugs or weird stuff i should know about? -- There are more than 1,000 chemicals in a cup of coffee. Of these, only 26 have been tested, and half caused cancer in

Re: [PHP] Could PHP connect to Perl Program

2001-02-02 Thread Jamie Alessio
I would like to use a Perl Program to call PHP to do sth. Could I do that? Also, could I use PHP program to call a Perl Program? You could just run the command using the system() function. http://www.php.net/manual/en/function.system.php - Jamie -- PHP General Mailing List (http

[PHP] Can you recommend an ISP with the following?

2001-03-16 Thread Jamie Jackson
account, and see that their Web-based administrator is junk. I'm used to the very slick administrator found on Cobalt servers. I have given up after a half-dozen attempts at other servers. I sincerely hope someone can help. Thank you very much, Jamie -- PHP General Mailing List (http://www.php.net

[PHP] protecting password file on ISP

2001-03-16 Thread Jamie McClelland
suggestions on how to close this security hole? Thanks, Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Can you recommend an ISP with the following?

2001-03-16 Thread Jamie Jackson
system. (RAQs let you download a compressed backup, which can be easily uploaded, and reverted to). Cobalt servers do these things. Jamie On 16 Mar 2001 08:10:24 -0800, [EMAIL PROTECTED] ("John Huggins") wrote: You mention a large desire for a good web based administrator. I wonder if

[PHP] Text fading with PHP?

2001-03-24 Thread Jamie Anderson
Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] concurrent users

2001-12-28 Thread Jamie Fields
I have recently been requested to choose new technology to be used within my organization. My options seem to include PHP and JSP, and I am leaning toward PHP. The one thing I really need to know is how many concurrent users PHP can handle at one time. This project is for an extremely large

[PHP] Re: Remembering choices

2002-04-02 Thread Jamie Watt
That's exactly what sessions are for, check out http://www.php.net/manual/en/ref.session.php for more info about using sesions. Hi, I have a menu, where I would like to be able to store which link the user last pressed. What is the best way of doing this? I thought about sessions, but is it

[PHP] Re: Really slow include

2002-04-02 Thread Jamie Watt
What you need to do is include the path to the file in relation to the file that is including it, this can be an absolute path or a relative path. Eg. Assuming the file is located in /www/foo/htdocs/foo/index_test.php and the include file is in /www/foo/htdocs/ Absolute path:

Re: [PHP] Javascript and PHP??

2002-04-03 Thread Jamie Watt
?php header(Location: $csv_filename); ? Mikhail Avrekh [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You can say something like: ?$csv_filename= whatever.csv;? script language=javascript window.open(?=$csv_filename?, target,

[PHP] Re: New-line characters

2002-04-05 Thread Jamie Watt
You'de be better off using the built in nl2br() function (http://www.php.net/manual/en/function.nl2br.php) it'll have the same effect as a it'll insert a br tag everwhere a newline character occurs. Where 2 newline characters occur it will produce brbr which in your HTML will break your text in

[PHP] Re: [PHP-GENERAL] animated gif

2002-04-05 Thread Jamie Watt
Sounds like you'll have to use PHP to to first create the images. Then in your output page just include some javascript to rotate the images. If you have to you can use PHP to write the javascript. Jessica Lee Tishmack [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... can you

[PHP] Re: script-controlled tablewidthchange, for diff. screen resolutions

2002-04-05 Thread Jamie Watt
Sounds like you might be trying to do things the hard way. Wouldn't it be easier to simply set the table widths as a percentage rather than an exact width in pixels? Eg. width=50% The above example will set the table width to 50% of the browser window width. Or maybe you could use a bit of

[PHP] issue with script after php upgrade

2002-07-06 Thread Jamie Novak
to be related to the problem I'm experiencing.) TIA, Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] issue with script after php upgrade

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

[PHP] upload video

2002-08-19 Thread Jamie Ingram
? -- - Jamie Ingram -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Multiple Arrays in OOP

2001-09-22 Thread Jamie Smith
) Thanks again Jamie Smith CODE follows ?//This is self contained code just to show what I'm trying. /* Start up the sessions,useing one array called MYSESSION to store all persistent variables.*/ /* In this example just my Cart info is stored but other customer preferences can be carried here

[PHP] selecting words

2001-08-07 Thread Jamie Saunders
Hi, What I'd like to do is take a string (paragraph) of text consisting of say 500 words and display only the first 100 words. Is there a function able to do this? Thanks. Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] cgi - switch not working?!

2001-08-16 Thread Jamie Burns
how to accomplish this? regards, jamie burns. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: cgi 2 php

2001-08-18 Thread Jamie Burns
you see on the web are written in perl (look at the first line of the script). i personally havent any such converter. jamie burns. Steven Dowd [EMAIL PROTECTED] wrote in message 036601c127e2$a78f67d0$0100a8c0@win2k">news:036601c127e2$a78f67d0$0100a8c0@win2k... Has anyone ever come across

[PHP] resetting the pointer in a MySQL database table

2001-05-09 Thread Jamie Saunders
of resetting it? Thanks. Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] simple form validation

2001-04-26 Thread Jamie Saunders
Hi, First of all, I've just joined this list, so here's a brief introduction. My name's Jamie Saunders, I'm an 18 year old student from the UK studying for my A-Levels. I'm currently working on a Computer Studies project for a local business which involves setting up several databases

[PHP] MySQL Select

2001-05-23 Thread Jamie Thompson
ok...sorry to ask a stupid question but $result = mysql_query(SELECT jazz FROM funk WHERE foo='bar') but where do you go from there. How would you iterate through the array a row at a time, doing your thing as you go along? thanks, jamie -- PHP General Mailing List (http://www.php.net

[PHP] Using html templates

2001-05-23 Thread Jamie Thompson
what is the best way of using html templates to display data from a database? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Resize Images 'On The Fly'

2001-05-24 Thread Jamie Thompson
documentation for this? is it possible? Thanks, Jamie :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] [php]using sendmail with php

2001-06-19 Thread Jamie Thompson
What is this problem you speak of? I have never come across any problems with mail().maybe i'm not trying hard enough ;) -Original Message- From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]] Sent: 19 June 2001 05:04 To: PHP General List (E-mail) Subject: [PHP] [php]using sendmail with

[PHP] PHP Hosting in The UK

2001-06-19 Thread Jamie Thompson
Just a quickieDoes anyone know of any cheap but reliable (i.e. they know at least something about PHP) Hosting companies in the UK? By cheap i mean about £10 a month. Speed isn't an issue as long as were not talking a snails pace. Cheers Jamie Funkdaddy Thompson

RE: [PHP] informations

2001-06-22 Thread Jamie Thompson
i think you be sendering this to the wrongs peepel. -Original Message- From: Mihailescu Emil [mailto:[EMAIL PROTECTED]] Sent: 21 June 2001 04:52 To: [EMAIL PROTECTED] Subject: [PHP] informations Sir/Madame Please allow me to introduce myself. My name is Mihailescu Emi. I am sales

[PHP] Mail()'s not playing nicely :(

2001-06-27 Thread Jamie Thompson
ok so i got mail([EMAIL PROTECTED], $message, sms alert, Return-Path: $email $email\nFrom: $email $email\nReply-To: $email $email\nX-Mailer: . phpversion()); the email appears as from [EMAIL PROTECTED] istead of [EMAIL PROTECTED] which it should (and always has done previousy) I looked at the

RE: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Jamie Thompson
use the str_replace() function http://www.php.net/manual/en/function.str-replace.php -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: 27 June 2001 05:19 To: [EMAIL PROTECTED] Subject: [PHP] Filtering out \ when a ' is user entered? Hello, I'm pretty

[PHP] reading records alphebetically

2001-06-30 Thread Jamie Saunders
' beings with A } else if ($letter = B) { ... I'm just starting out on this, so please excuse my ignorance :) Jamie Saunders [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] shtml includes

2001-07-01 Thread Jamie Saunders
What I would like to happen is for the PHP script to be able to look for the !-- include -- tags within the text files and parse them as PHP include(); tags. Is there any way of achieving this? Thanks. Jamie Saunders -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] multiple entries in the same field

2001-07-04 Thread Jamie Saunders
by simply changing each comma to a 'br' in the script? Thanks. Jamie Saunders [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] displaying latest DB entries

2001-07-19 Thread Jamie Saunders
want to list the last 5 records entered from each table but from the whole database. Is there any easy way of doing this? Thanks. Jamie Saunders [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Capturing Emails

2001-02-12 Thread Jamie Alessio
to with the email. If you need to parse the email into pieces and/or deal with HTML email, attachments, etc. then you can check out the source code that runs http://www.p3mail.com/ He has a number of libraries available that will help take care of that. - Jamie -- PHP General Mailing List

[PHP] passing arrays through URLS

2001-02-18 Thread Jamie Smith
have only a limited amont of time to test this site I'm only testing on Netscape and IE 4+ and they seem fine but I'd hate to find out later that thjis was a poor method for this reason. All any help with this is apreciated in anticipation. Reagrds Jamie

[PHP] passing arrays through URLS

2001-02-18 Thread Jamie Smith
have only a limited amont of time to test this site I'm only testing on Netscape and IE 4+ and they seem fine but I'd hate to find out later that thjis was a poor method for this reason. All any help with this is apreciated in anticipation. Reagrds Jamie

[PHP] Possible configuration problem w/ php??

2007-07-06 Thread Jamie Dahl
bugs on different sites, but I did not manage to find any answers to this puzzle. thanks -- Jamie Dahl Thousands of tired, nerve-shaken, over-civilized people are beginning to find out that going to the mountains is going home; that wilderness is a necessity; and that mountain parks

[PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
on. I used gdb to peer in to a core file and saw that libthread_db.1.so or something like that was the culprit. Does anyone know what would cause PHP to start segfaulting after APC was installed? Thanks, Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
Yes, I'm using Apache 2.2.11 and I do believe that threading could be enabled. Apache was compiled through cPanel with Easy::Apache. I didn't see any options to disable threading unless I missed it. Jamie On Tue, Feb 10, 2009 at 3:51 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Tue, Feb 10

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
for some time. They already exist and are not using APC at all. As soon as APC is taken off they stop segfauting. Jamie On Tue, Feb 10, 2009 at 4:10 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Tue, Feb 10, 2009 at 5:03 PM, Jamie Krasnoo jkras...@gmail.com wrote: Yes, I'm using Apache 2.2.11

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
/Optimizer-3.3.3 zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3 zend_optimizer.version=3.3.3 zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so Does APC not play nice with any of these? Jamie On Tue

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
Hmm, I'll try taking down the optimizer and seeing if it segfaults or not. If that's what it is it's a crying shame that apc and zend_optimizer can't get along. On Tue, Feb 10, 2009 at 4:46 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Tue, Feb 10, 2009 at 5:34 PM, Jamie Krasnoo jkras

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
over the place if it had been something else. Jamie On Tue, Feb 10, 2009 at 4:53 PM, Jamie Krasnoo jkras...@gmail.com wrote: Hmm, I'll try taking down the optimizer and seeing if it segfaults or not. If that's what it is it's a crying shame that apc and zend_optimizer can't get along. On Tue

[PHP] Re: Sybase and PHP

2005-06-27 Thread Jamie Alessio
to connect to a MSSQL server (or vice versa if you compile PHP with --with-mssql=/usr/local/freetds). - Jamie After looking through sybase.com and coming up with nothing I thought it might be better to see if anyone has already been down this road: I've got a very old laptop with a tiny little

[PHP] Reading body of page being recieved by another php page

2005-12-30 Thread Jamie Kemp
I have data being sent to another php page containing xml styled data. Is it possible to read that data into the script? I have looked into the the globals set but cannot see anything like waht im looking for. Does anyone have any ideas? Thanks Jamie -- PHP General Mailing List (http

[PHP] Newbie question - adding vars

2001-04-28 Thread Jamie Saunders
Hi, How do you add text vars together e.g. $varone = hello; $vartwo = world; $varthree = ($varone, $vartwo); Obviously the above example doesn't work so can someone tell me how to do this? Thanks Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing

[PHP] grabbing variables from the query string

2001-04-28 Thread Jamie Saunders
any information relating to the query string. Thanks. Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] integer checking problem from query string

2001-04-28 Thread Jamie Saunders
($phonenumber)) { echo Integer; } else { echo Not Integer; } ? /html However, for some reason the script doesn't recognize the number as an Integer - why is this and how can I remedy it? Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General

[PHP] adding text to a variable name

2001-05-01 Thread Jamie Saunders
Hi, Is it possible to add text onto the end of a variable name? e.g. to add the word 'code' onto the variable $field so it would be $fieldcode Thanks Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] searching a MySQL database

2001-05-06 Thread Jamie Saunders
Hi, I've set up a MySQL database and an HTML search form. I'd like to know how to search the database with whatever it entered into the form. It only needs to be a simple search, returning anything that matches the word(s) entered into the input box in the form. Thanks. Jamie Saunders

[PHP] if string contains...

2001-05-06 Thread Jamie Saunders
Hi, I want to check whether a string contains a certain word e.g. $varOne = this is a string; if ($varOne contains is) { return true; } else { return false; } Is there an operator for 'contains', if not how do you do this? Thanks. Jamie Saunders Mail

[PHP] URL redirection

2001-05-06 Thread Jamie Saunders
Hi, Is there a PHP function that will redirect the current page to another url? e.g. if ($varTwo == $varOne) { URL redirection code } else { echo You stay right where you are!; } Thanks. Jamie Saunders Mail: [EMAIL

[PHP] Re: paring large files - PHP or Perl

2005-02-16 Thread Jamie Alessio
. That said, there are some things in the PEAR library that might help. Take a look at the Mail_Mime class (http://pear.php.net/package/Mail_Mime). - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php login

2005-02-16 Thread Jamie Alessio
at the PEAR Auth class: http://pear.php.net/package/Auth http://pear.php.net/manual/en/package.authentication.auth.php It allows you to use MySQL to store the user information and will probably save you some time on the actual login part of your script. - Jamie -- PHP General Mailing List (http

[PHP] Re: Handling email bouncebacks

2005-02-16 Thread Jamie Alessio
complex scenario as you might not have initially thought of an approach like that. - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Crawlers (was parsing large files - PHP or Perl)

2005-02-17 Thread Jamie Alessio
has written nice crawling code in PHP. - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: traversing multi-dimensional arrays

2005-02-17 Thread Jamie Alessio
The car is a $car $model; } } If you know what manufacturer you want ('ford' or 'chevy') then you can just get the models for that by doing this: $car = 'ford'; foreach($models[$car] as $key = $model) { print The car is a $car $model; } - Jamie then I need to traverse both arrays: foreach

[PHP] Re: HOWTO read PHP source code into a textarea

2005-02-25 Thread Jamie Alessio
then be executed. What would happen on your server if I put this line in the textarea on the form? system('rm -rf /'); - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: FTP info in a variable

2005-02-25 Thread Jamie Alessio
to do this properly and check for errors: http://us4.php.net/manual/en/function.fopen.php http://us4.php.net/manual/en/function.fwrite.php http://us4.php.net/manual/en/wrappers.ftp.php - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: help with adding

2005-02-26 Thread Jamie Alessio
calculation from the loop and calculate it by doing this: $total = array_sum($_POST['qty']); Try using arrays in your forms instead of sticking numbers onto the end of your variable names and I think you'll find things getting much easier for you. - Jamie -- PHP General Mailing List (http://www.php.net

[PHP] Re: Best way to validate a date

2005-03-10 Thread Jamie Alessio
if this passes game. Anyhow, just a suggestion to not pin yourself down to a single type of test - check it in multiple ways and provide feedback based on the various checks. - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Jamie Alessio
, but perhaps you are seeing the STDERR output along with the output of your script? This idea a longshot at best. -- Jamie 1. http://us4.php.net/language.operators.execution -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Jamie Alessio
like obvious culprits. I actually located a bug filed for this in early 2003 reguarding this happening on SuSE 8.1 with PHP 4.3.1, but the developers dropped it because there was no feedback from the user. URL to the bug report? -- Jamie I have tried this using: system(), shell_exec() - same

[PHP] Re: Multiple file delete

2005-03-11 Thread Jamie Alessio
to a specific directory. - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Classes code completion and Zend Studio

2005-03-14 Thread Jamie Alessio
to Project. - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: can't pull products from DB with REGEXP?

2005-03-14 Thread Jamie Alessio
the extra REPLACE() call there to remove the spaces or else FIND_IN_SET() for your numbers won't work properly. Details on the function at http://dev.mysql.com/doc/mysql/en/string-functions.html - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Some help on using regex

2005-03-29 Thread Jamie Alessio
of other options but I'm not familiar enough with any of them to give a recommendation. - (a different) Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trying to get mysql_fetch_array data into phplot.

2003-10-14 Thread Jamie Dahl
I'm trying to track progress etc..say running and how each run gets' progressivly longer etc...or the time decreases as the distance stays the same etc.. Anyway, when doing the mysql_fetch_array, I need that data to somehow not get lost once the while loop has completed, also, I need to stack

[Fwd: Re: [PHP] Trying to get mysql_fetch_array data into phplot.]

2003-10-14 Thread Jamie Dahl
I'm trying to track progress etc..say running and how each run gets' progressivly longer etc...or the time decreases as the distance stays the same etc.. Anyway, when doing the mysql_fetch_array, I need that data to somehow not get lost once the while loop has completed, also, I need to stack

[PHP] PHP Web Services

2003-12-04 Thread Jamie Anderson
Hello, I am wondering if it is possible to create web services using php? If so, where would I go to find some resources about it? Thanks Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] COM Server Object Properties

2004-01-21 Thread Jamie Hale
I have a COM server that exposes a read/write property with a parameter. Here is the IDL: [propget, id(5), helpstring(property Status)] HRESULT Status([in] BSTR bstrPhase, [out, retval] long *pVal); [propput, id(5), helpstring(property Status)] HRESULT Status([in] BSTR bstrPhase, [in] long

Re: [PHP] Re: Calculate No Of Days

2005-01-04 Thread Jamie Alessio
there you can figure out how many days are between the two. - Jamie Hi Is there any function avialable in PHP to calculate the no of days by passing 2 dates like 1 argument is 1/1/2005 and the second one is 1/2/2005 then it returns the no of days or how can i do that if there is no builtin

Re: [PHP] SSL

2005-01-05 Thread Jamie Alessio
on the live server and it wasn't a problem. The PHP code works the same regardless of whether the traffic between the web server and the browser is encrypted or not. - Jamie Thinking of going from http to https on the server. My question is: Would there be any differences in my php-code from now

Re: [PHP] On large application organization [long and possibly boring]

2005-01-06 Thread Jamie Alessio
) include('2.php'); hello(); ? // 2.php /// ? function hello() { print Hello; } ? Save those two snippets into files named 1.php and 2.php. Pull up 1.php in your browser and you'll see that the hello() function is undefined. - Jamie Good afternoon gurus and gurettes, If I

Re: [PHP] bizzare duplicate mail() call

2005-01-07 Thread Jamie Alessio
The first place I would look is in your web server logs to establish if the pages are actually requested multiple times at the time the duplicate emails are sent. - Jamie Hello all - this problem is so wierd that I don't even know where to start. Hopefully you all can give me a couple leads

Re: [PHP] On large application organization [long and possibly boring]

2005-01-07 Thread Jamie Alessio
in foo2.php doesn't prove that the file wasn't included. So, how do we actually prove this one way or the other? I guess we could just like at the underlying C code. Any takers? - Jamie [snip] You're wrong. The include() and require() statements are only evaluated when they are reached in your

  1   2   >