[PHP] regex to change ' to ?

2004-03-04 Thread Adam Williams
What would be the PHP expression to change any and all ' to ? in a variable? I want to change any and all ' in $_POST[data] to ? what would be the statement? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regex to change ' to ?

2004-03-04 Thread Adam Williams
Thank you, that works great! On Thu, 4 Mar 2004, Richard Davey wrote: Hello Adam, Thursday, March 4, 2004, 3:36:06 PM, you wrote: AW What would be the PHP expression to change any and all ' to ? in a AW variable? AW I want to change any and all ' in $_POST[data] to ? $output_array

[PHP] using mail() for multiple email address...

2004-03-08 Thread Adam Reiswig
a lot!! -Adam Reiswig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using mail() for multiple email address...

2004-03-08 Thread Adam Reiswig
a lot!! -Adam Reiswig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using mail() for multiple email address...

2004-03-08 Thread Adam Reiswig
!! -Adam Reiswig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: using mail() for multiple email address...

2004-03-09 Thread Adam Reiswig
yes, my webhost is on Unix. Thanks, that must be it because I sent a regular email to both address's at the same time and I only received one. -Adam Reiswig [EMAIL PROTECTED] wrote: On 8 Mar 2004 Adam Reiswig wrote: Normally, the two emails would end up in the same pop account but don't seem

[PHP] object oriented php game... how classes interact question

2004-03-11 Thread Adam Reiswig
if anyone knows of any good articles online that you could point me to, I'd be most grateful. -Adam R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how classes interact question clarification question

2004-03-11 Thread Adam Reiswig
To clarify my question, can one class directly call a function or change a variable of another class or is the main php file the only way to interact between the two or more classes? Thanks again!! -Adam R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Adam Voigt
-- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] memory_limit doesn't work (4.3.3, Mac OS X)

2004-03-14 Thread Adam Nohejl
-- Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Adam Voigt
)) { $correct = 0; } else { $correct = $correct++; } Seems like it should work? Thanks! Shane -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Adam Voigt
that can prohibit this from working? Thanks, Jake -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDF Creating

2004-03-17 Thread Adam Voigt
the generation of the PDF files work automagically? The first page will always have a header set of information, and then the quote following it, all other pages will just have the quoted items. Thoughts? TIA!! Robert -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Adam Voigt
in php.ini that can prohibit this from working? Thanks, Jake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
server on '192.168.1.44' From the webserver error log: php4_execute reports: PHP Warning: mysql_connect(): Can't connect to MySQL server on '192.168.1.44' (2) Thanks, Cameron -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
So what error prints out when you try and connect from PHP? On Wed, 2004-03-17 at 15:03, Cameron B. Prince wrote: Hi Adam, What happens when you try to use the mysql client on the web machine, to connect to the production database server? It works: bash-2.05# pwd /usr/local/mysql

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
ideas? Cameron -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
); Could not connect : Can't connect to MySQL server on '192.168.1.44' (2) Same thing... What could be wrong here... Geez, this is starting to worry me. Thanks for your help, Cameron -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] MySQL Connect Problem - Client Lib / Server Version Skew

2004-03-17 Thread Adam Voigt
something. The MySQL on the webserver is: mysql-standard-4.0.16-sun-solaris2.9-sparc The MySQL on the dbserver is: mysql-3.23.54a-sun-solaris2.8-sparc Do you think the version skew could cause this? Thanks, Cameron -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Replace space from form field using preg_replace

2004-03-17 Thread Adam Voigt
http://www.php.net/str-replace On Wed, 2004-03-17 at 15:48, Vernon wrote: I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] How to keep a timestamp from updating?

2004-03-18 Thread Adam Voigt
that to happen - I want it to remain as the original creation timestamp. How do I prevent this from happening? Thanks, - Brian -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php code to connect to MS-SQL SERVER

2004-03-18 Thread Adam Voigt
received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Thank you, Microsoft! Now I need an alternate login method

2004-03-18 Thread Adam Voigt
/idal GNU/Linux is free freedom. -- Me -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] str_replace or regex

2004-03-18 Thread Adam Williams
Hi, I was wondering if I can get some help with either a str_replace or a regex. I have some data and it always begins with $$ but it can end with any letter of the alphabet. so sometimes its $$a and sometimes its $$b and sometimes $$c all the way to $$z. $$a all the way to $$z needs to be

Re: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-18 Thread Adam Voigt
request gets b0rked, if this is the case, I'm not sure there's much that can be done about it. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-19 Thread Adam Voigt
, but if there is, I would use that instead. On Thu, 2004-03-18 at 14:38, Chris de Vidal wrote: Adam Voigt said: If I ran XP I might be able to do that. From reading the security release my MS, it sounds like some times the POST request gets b0rked, Yep. if this is the case, I'm not sure there's much

[PHP] CMS Templating with Standards Based HTML Delima...

2004-03-20 Thread Adam Reiswig
possible with out conflicting with existing css styles and as long as it didn't insert font tags and tables all over. Is there a good open source php based cms system out there that can do the above? I'd sure like to know about it. Thanks for any pointers! -Adam R. -- PHP General Mailing List

Re: [PHP] question

2004-03-25 Thread Adam Voigt
Brazil, and sorry about my ignorance writing in English. I'd like to know if exists any function in php that identifies a string as a-z, like is_num() to the numbers. Thanks, Lourenzo -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] question

2004-03-25 Thread Adam Voigt
; The denotes a string and without quotes it denotes a value HTH, Roger -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_fetch_array

2004-03-26 Thread Adam Voigt
How do I know what name mysql_fetch_array assigned to the date_format ? -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] transactions

2004-03-29 Thread Adam Voigt
the last inserted row id and perform an sql delete but is there a more elegant way? Cheers Matt -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: why won't mssql work?

2004-03-29 Thread Adam Voigt
that is running PHP. Then, restart IIS. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Adam Voigt [EMAIL PROTECTED] -- PHP

[PHP] ocilogon

2004-03-30 Thread Adam Williams
Hi, what is the syntax for using ocilogon() to connect to a remote server? The remote server's name is zed.mdah.state.ms.us (ip is 10.8.5.4) and the database is zed.aleph0. Locally on zed I can do ociogon(user,pw,zed.alpeh0) and connect fine, but on a remote server I try

Re: [PHP] ocilogon

2004-03-30 Thread Adam Williams
connection to Oracle using sqlplus: User: scott pass: tiger dbstring: test this in PHP would be: $conn = OCILogon(scott, tiger, test); -William El mar, 30-03-2004 a las 15:52, Adam Williams escribió: Hi, what is the syntax for using ocilogon() to connect to a remote server

Re: [PHP] ocilogon

2004-03-30 Thread Adam Williams
Hi, I figured out what was wrong, I had php_oci8.dll uncommented in php.ini but not php_oracle.dll. Fixed that and now I get an ORA-12705 error, which looking on google has something to do with NLS. Going to do more reading, thanks :) -- PHP General Mailing List (http://www.php.net/) To

[PHP] $this variable reference question

2004-04-02 Thread Adam Reiswig
the line $myref = $this;. The author states that this is a reference to the class/object itself. Isn't this like saying outside the class $myref = new test;? What would be the point of referring to itself inside the class in this manner? Thanks for your help in advance! -Adam Reiswig -- PHP

Re: [PHP] Re: $this variable reference question

2004-04-02 Thread Adam Reiswig
of an object inside an object? I guess my problem in understanding this is not so much where this sort of coding should be used but rather what is really going on here. Thanks again! -Adam Reiswig Jason Barnett wrote: It's not the same thing. When an variable references an object then you can change

[PHP] PDF Page Pulling

2004-04-07 Thread Adam Voigt
I need to be able to pull a certain page out of a multi-page PDF, and then be able to save that single page to it's own PDF file. Anyone know how to do this with free tools? Thanks. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] PHP Web Hosting

2004-04-19 Thread Adam Voigt
away. Stanley G. Martin System Administrator Sprint - EAS Business Intelligence [EMAIL PROTECTED] -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] adding -'s to a numeric string

2004-04-21 Thread Adam Williams
Hi, I have a form where I have a user entering in the date in a numeric string. For today they would enter 04212004 and so on...I'm working on this date within mysql server, and mssql server handles dates as 04-21-2004 when you use convert(varchar,field,110). So how in PHP can I change a

Re: [PHP] system command?

2004-05-10 Thread Adam Voigt
://us2.php.net/manual/en/ref.exec.php and none seem to have the desired effect. ?php $tailed = shell_exec('tail -f /path/to/log'); //$tailed = exec('tail -f /path/to/log'); //$tailed = system('tail -f /path/to/log'); print = textarea$tailed/textarea; ? Thanks in advance, Jas -- Adam

RE: [PHP] system command?

2004-05-10 Thread Adam Voigt
lol On Mon, 2004-05-10 at 11:16, Jay Blanchard wrote: [snip] I didn't sent off list [/snip] I am in an relatively crappy mood this day, you may want to NOT refute something I have said and in essence call me a liar. You'll get little help that way. P.S. Stop top posting too. -- Adam

[PHP] rounding average to one decimal point

2004-05-10 Thread Adam Williams
Hi, I have a randon group of numbers I need the average of. When I add them up and divide by how many there are and print the result, I get a lot of decimal places. The number comes out to look like 29.3529411765, but I don't need that many decimal places. rounding to one decimal place will

Re: [PHP] rounding average to one decimal point

2004-05-10 Thread Adam Williams
On Mon, 10 May 2004, Richard Davey wrote: Hello Adam, Monday, May 10, 2004, 7:03:36 PM, you wrote: AW Hi, I have a randon group of numbers I need the average of. When I add AW them up and divide by how many there are and print the result, I get a AW lot of decimal places. The number

Re: [PHP] PHP graphing tool?

2004-05-10 Thread Adam Voigt
? Thanks! Amanda -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List() help

2004-05-09 Thread Adam Bregenzer
only want $d to be an array when there is more than one entry left do this instead: if (count($MyArray) == 1) { $d = array_shift($MyArray); } else { $d = $MyArray; } [1] http://www.php.net/array_shift -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List

RE: [PHP] LAMP

2004-05-07 Thread Adam Voigt
I've also heard the Perl Zealots claim the P could or does stand for Perl, but ignore there Jedi mind tricks. On Fri, 2004-05-07 at 11:00, Jay Blanchard wrote: [snip] Anyone know what LAMP stand for [/snip] All of us but you. Linux Apache MySQL PHP -- Adam Voigt [EMAIL PROTECTED

Re: [PHP] Re: form submission logic

2004-05-07 Thread Adam Voigt
: input type=button value=Whatever onclick=javascript:doit(); input type=button value=Whatever onclick=javascript:doit2(); -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class variable unexpected behavior

2004-05-15 Thread Adam Bregenzer
-- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Self Testing PHP Code... Is it possible or practical??

2004-05-27 Thread Adam Reiswig
there. Thanks for any pointers, ideas, advice or help you may have. -Adam R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] row colours

2004-06-05 Thread Adam Bregenzer
you could do: print tr bgcolor='#ff'td$item_1/tdtd$item_2/tdtd$item_4/tdtdcenter$item_5/center/td/tr\n; if ($i % 8 == 7) { print trtd colspan='4'/td/tr\n; } which would keep them the same color and add a blank row after every eighth; again adjust $i as necessary to fit. -- Adam Bregenzer [EMAIL

Re: [PHP] getting the line number

2004-06-07 Thread Adam Bregenzer
the parent script to the subroutine. I know that I can get the line number of the current script, but that doesn't tell me where the function was called from... debug_backtrace[1] should get you everything you want and then some. [1] http://www.php.net/debug_backtrace -- Adam Bregenzer [EMAIL

Re: [PHP] Can someone explain this?

2004-06-08 Thread Adam Voigt
), which I suppose is unsigned to a signed integer (3961595508) without having to convert it to hex, then back to decimal. Rene -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] converting a char variable to an int?

2004-06-14 Thread Adam Williams
Hi, I have a variable that is created using the date command: $date = date(Ymd); but its not working in my database this way (when I explicity enter 20040614 in my database, it works though). so I think PHP is making $date a character variable, so how can I force or change the caste of $date

Re: [PHP] converting a char variable to an int?

2004-06-14 Thread Adam Williams
eh nevermind, I found settype(); :) thanks On Mon, 14 Jun 2004, Adam Williams wrote: Hi, I have a variable that is created using the date command: $date = date(Ymd); but its not working in my database this way (when I explicity enter 20040614 in my database, it works though). so I

[PHP] fopen and http://

2004-10-08 Thread Adam Williams
Hi, I'm having a problem with fopen and http files. I keep getting the error: Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15

Re: [PHP] fopen and http://

2004-10-08 Thread Adam Williams
On Fri, 8 Oct 2004, Matt M. wrote: But I don't understand why I am getting that error about failed to open strem: HTTP request failed, when I can bring up the links fine in a browser on the server running the php script. So can anyone help me out? Thanks do you have allow_url_fopen

Re: [PHP] fopen and http://

2004-10-08 Thread Adam Williams
On Fri, 8 Oct 2004, Hendrik Schmieder wrote: What say phpinfo about Registered PHP Streams ? Hendrik Hi, I think I just figured out my problem...I had to use rtrim($line) because I think there was a \n or an invisible character at the end of the line that was being passed to the

[PHP] Good Class/API Design ?

2004-10-25 Thread Adam Reiswig
and SimpleTest to test your code as it is written. These along with some XP techniques I read about seem like good practices to follow. Does anyone have any other ideas/practices that it would be good for a new oop developer like myself to make a habit it of? Thanks!! -- Adam Reiswig

[PHP] stripping text from a string

2004-10-29 Thread Adam Williams
Hi, I use a piece of proprietary software at work that uses weird session ID strings in the URL. A sample URL looks like: http://zed2.mdah.state.ms.us/F/CC8V7H1JF4LNBVP5KARL4KGE8AHIKP1I72JSBG6AYQSMK8YF4Y-01471?func=find-b-0 The weird session ID string changes each time you login. Anyway, how

[PHP] simple mail() question

2004-11-13 Thread Adam Fleming
Hello All, I have a simple mail() question, and I hope a hero can shed some light. I can't understand why my messages are being encoded, and extra headers are being added, *before* the message is sent through sendmail. Infinite Thanks, Adam Input: $more test.php ? $header = Content-Type: text

[PHP] RE: [SOLVED][PHP] Re: simple mail() question

2004-11-13 Thread Adam Fleming
Hi Manuel, That was *exactly* the issue. I can't express my gratitude for the assistance enough -Adam Original Message Follows From: Manuel Lemos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: simple mail() question Date: Sat, 13 Nov 2004 19:21:18 -0200 Hello, On 11/13/2004

[PHP] grabbing source of a URL

2004-12-10 Thread Adam Williams
Hi, I don't know what functions to use so maybe someone can help me out. I want to grab a URL's source (all the code from a link) and then cut out a block of text from it, throw it away, and then show the page. For example, if I have page.html with 3 lines: htmlheadtitlehi/title/head body !--

[PHP] Preventing execution without inclusion

2005-01-13 Thread Adam Hubscher
From within the application, I use one page to include classes/variables and so on. Is there a way (I may have been missing it in the documentation for PHP, however I didnt see anything related) to prevent a user from directly accessing/executing *.php by the file making sure taht it was only

Re: [PHP] Preventing execution without inclusion

2005-01-14 Thread Adam Hubscher
Thomas Goyne wrote: On Thu, 13 Jan 2005 16:25:30 -0600, Adam Hubscher [EMAIL PROTECTED] wrote: 1 (the preferred way): user accesses http://www.example.org/index.php?function=Join, this loads the class NewUser and begins its implementation. Because of the __autoload, it includes

[PHP] socket_connect giving me weird error

2005-01-16 Thread Adam Hubscher
Warning: socket_connect() expects parameter 3 to be long, string given in testing.php on line 21 Couldn't Create Socket: Success It actually spits that across for every socket I'm trying to connect. I'm doing an online status for multiple servers, which I have tested to work when I simply do a

[PHP] Socket_Connect returning unusual error

2005-01-16 Thread Adam Hubscher
Warning: socket_connect() expects parameter 3 to be long, string given in testing.php on line 21 Couldn't Create Socket: Success It actually spits that across for every socket I'm trying to connect. I'm doing an online status for multiple servers, which I have tested to work when I simply do a

[PHP] socket_connect errors

2005-01-16 Thread Adam Hubscher
Ok, I had made a post earlier but bout 5min later I figured out the problem (I had spaces and returns that were in the array beside the ports). The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) 0){ print(Couldn't Create Socket: .

Re: [PHP] Socket_Connect returning unusual error

2005-01-16 Thread Adam Hubscher
Richard Lynch wrote: Adam Hubscher wrote: Warning: socket_connect() expects parameter 3 to be long, string given in testing.php on line 21 Couldn't Create Socket: Success PHP usually auto-converts data -- However it's possible that this EXPERIMENTAL function (?) doesn't have the magic code down

[PHP] Re: $_POST

2005-01-17 Thread Adam Hubscher
Andrew Maxwell wrote: When you submit something, and you want to make sure that the user inputs all of the info, is there an easier way to do it than this: if ((!$_POST[name]) || !$_POST[pass]) || (!$_POST[blah])) { etc. } is there an easy way to check if all of the varibles have data in them?

[PHP] Socket_connect producing errors that show no reason

2005-01-17 Thread Adam Hubscher
The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) 0){ print(Couldn't Create Socket: . socket_strerror(socket_last_error()). \n); } socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, array('sec' = 1, 'usec' = 0)); $output = ''; for($i = 0; $i count($file);

Re: [PHP] Socket_connect producing errors that show no reason

2005-01-17 Thread Adam Hubscher
Jochem Maas wrote: Adam Hubscher wrote: The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) 0){ print(Couldn't Create Socket: . socket_strerror(socket_last_error()). \n); } socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, array('sec' = 1, 'usec' = 0)); $output

Re: [PHP] PHP Hosting

2004-07-09 Thread Adam Voigt
Very good prices, very good support. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Adam Bregenzer
); //bool(true) var_dump(0 === 0);//bool(false) -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] single dimensional array questions

2004-08-04 Thread Adam Williams
Here is my snippet of code. It takes cardnum from the database, removes the duplicates for each individual date, and then counts how many discrete numbers there was. !-- snippet of code starts here -- //database connect and selection here, now my sql statement: $sql = select convert(

[PHP] opposite of array_unique()?

2004-08-04 Thread Adam Williams
array_unique() removes duplicate values from an array. Is there an opposite function or way of keeping all values in a single dimentional array that are duplicates and removing all that are duplicates? for example if I have an array: array( [0] = 'dog', [1] = 'cat', [2] = 'rabbit', [3] =

[PHP] Help: DOMXPath-Query, quotes and apostrophes

2007-03-15 Thread Adam Randall
XPath variables instead, but I don't understand how to do implement this. I would really appreciate any examples on what people have done to get around this issue, if any one has at all. Regards, Adam. -- Adam Randall [EMAIL PROTECTED] (206) 285-8080 100 West Harrison North Tower, Suite 300

[PHP] header() and passing sessions

2009-04-15 Thread Adam Williams
I need some help passing a session variable with a header() function. According to www.php.net/header, the documentation states: *Note*: Session ID is not passed with Location header even if session.use_trans_sid session.configuration.php#ini.session.use-trans-sid is enabled. It must by

Re: [PHP] header() and passing sessions

2009-04-15 Thread Adam Williams
abdulazeez alugo wrote: Hi, Well I'ld say the reason is quite obvious. You have simply not set $_session[username] . I'ld have done something like: -- option.php -- ?php session_start(); if ($_POST[option] == View Pending Requests) { $_session[username]= true; //sets the session

Re: [PHP] GIS with PHP tutorial

2009-04-15 Thread Adam Williams
have you looked into this? http://postgis.refractions.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Adam Williams
I have the code: $mysqli_get_support_types = Select types from support_types order by types; $mysqli_get_support_types_result = mysqli_query($mysqli,$mysqli_get_support_types) or die(mysqli_error($mysqli)); while (mysqli_fetch_array($mysqli_get_support_types_result)) { echo

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Adam Williams
Shawn McKenzie wrote: No. How about: while ($row = mysqli_fetch_array($mysqli_get_support_types_result)) { echo option.$row['types']; } thanks, now that you provided that, I see that I left out the $row variable! -- PHP General Mailing List (http://www.php.net/)

[PHP] how to determine if a mysql query returns an empty set?

2009-04-23 Thread Adam Williams
Is there a way to determine if a mysql query returns an empty set? I am selecting 10 results at a time with a limit statement and need to know when i've ran out of rows. I've only got 2 rows in the database, so when I start with row 10, it returns an empty set. I have the following code:

Re: [PHP] how to determine if a mysql query returns an empty set?

2009-04-23 Thread Adam Williams
Nitsan Bin-Nun wrote: mysql_num_rows() maybe? if not I probably haven't understood your question. Thanks, I never thought of trying that. This code works! $mysqli_get_requests = mysqli_query($mysqli,$get_requests); if (!mysqli_num_rows($mysqli_get_requests))

Re: [PHP] how to determine if a mysql query returns an empty set?

2009-04-23 Thread Adam Williams
Andrew Ballard wrote: It won't be any of those because the query is successful even if it returns no records. You could use http://us2.php.net/manual/en/mysqli-stmt.num-rows.php to determine how many rows were returned. Andrew Oh ok, thanks that makes sense. Thanks for the link also --

[PHP] help with explode()

2009-04-24 Thread Adam Williams
I have a form where users submit search terms and it explodes the terms into an array based upon spaces. But, how can I have explode() keep words in quotation marks together? For example, if someone enters on the form: John Jill Judy Smith and I run $termsarray = explode( , $_POST[terms]);

Re: [PHP] help with explode()

2009-04-24 Thread Adam Williams
Jan G.B. wrote: You could try it with regular expression matching.. for example: ?php preg_match_all('/([a-z]+|[a-z ]+)/i', $searchstring, $resultarray); ? Regards Thanks. That seems to create 2 duplicate arrays, though. Can it be narrowed down to just array [0]?

Re: [PHP] help with explode()

2009-04-24 Thread Adam Williams
Jan G.B. wrote: Yes, preg_match_all returns all matches and the subpattern matches (the stuff inside the brakes) You can ommit stop it by using (?:) instead of ().. So: preg_match_all('/(?:[a-z]+|[a-z ]+)/i', $_POST[terms], $termsarray) You might want to check out the regular expression

Re: [PHP] I need ideas for things to code

2009-04-24 Thread Adam Williams
Andrew Hucks wrote: I've been coding PHP for about a year, and I'm running out of things to code that force me to learn new things. If you have any suggestions, I'd greatly appreciate it. I'm currently writing an in-house PHP helpdesk ticket system. I looked at all the open source ones i

Re: [PHP] SMTP mail server

2009-04-24 Thread Adam Williams
Ron Piggott wrote: How do I specify an actual SMTP server? (Like mail.host.com) This is what I have so far: mail($email, $subject, $message, $headers); I was to http://ca2.php.net/manual/en/function.mail.php and saw this syntax: mail ( string $to , string $subject , string $message [,

[PHP] graphical integrated development environment recommendations?

2009-05-01 Thread Adam Williams
With the wide range of users on the list, I'm sure there are plenty of opinions on what are good graphical IDE's and which ones to avoid. I'd like to get away from using notepad.exe to code with due to its limitations. Something that supports syntax/code highlighting and has browser previews

[PHP] fixing new lines from textarea in an email?

2009-06-26 Thread Adam Williams
I have staff fill out a form that contains a textarea with their problem description and emailed to me when they click submit. Staff will press enter in the text area, but I'm having problems converting the \r\n into a new line in the email that is sent to me, here is the code: $subject =

Re: [PHP] fixing new lines from textarea in an email?

2009-06-26 Thread Adam Williams
Daniel Brown wrote: In a cursory glance, I've noticed the following code: htmlspecialchars(nl2br(str_replace('\r','',$_POST[problem]))) You are using a literal '\r' in your str_replace() function. This should instead be replaced with double quotes to translate the \r to its

Re: [PHP] Split up Date Range

2009-07-01 Thread Adam Shannon
that allows them to enter a range? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Adam Shannon
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] Re: RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-11 Thread Adam Shannon
found the list by the link on php.net (lists.php.net), I mainly joined to grow in my experience with PHP. -- - Adam Shannon ( http://ashannon.us )

[PHP] running php script as a user?

2009-07-15 Thread Adam Williams
I have a page where a user authenticates, fills in some information in an HTML form, and then when clicking on the submit button, will need to execute a php schell script as that user to write some data to their /home/username directory. Since apache web server runs as the user nobody, how

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Adam Shannon
On Sat, Jul 18, 2009 at 7:54 PM, Govinda govinda.webdnat...@gmail.comwrote: On Jul 18, 2009, at 6:36 PM, Adam Shannon wrote: On Sat, Jul 18, 2009 at 7:01 PM, Govinda govinda.webdnat...@gmail.comwrote: Hi all, ..sitting here thinking this is so easy, and I must have been over

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Adam Shannon
/ to treat .html files as .php Just add this to your root .htaccess AddType x-mapp-php5 .html Thank you -Govinda Govinda govinda.webdnat...@gmail.com -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] need to get .html files parsed by PHP. -- WAS: why does PHP parse *.html files in one subdir/ but not in another?

2009-07-19 Thread Adam Shannon
php.ini -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- - Adam Shannon ( http://ashannon.us )

<    5   6   7   8   9   10   11   12   13   14   >