I have done this (below) already. I suppose. I will have to explode by \n.
One of my problems is that with ":QUESTION:{H|T}", the question is on the next line.
Exploding by \n puts my question text into the next line_field[]. "Note: Multiple
lines of text are permitted."
Getting that variabnle c
This function doesn't work for me following the
API, but I solve partially my problem using this:
$tablelist=odbc_result_all(odbc_tables($conn));
instead of :
$tablelist=odbc_tables($conn);
$tablelist=odbc_result_all($tablelist);
but I need to put the table names in a
field; so I need to get o
Can someone help me get started?
Anyone ever use WebCT? It uses quizzes, field types described here.
https://online.csus.edu/web-ct/help/en/designer/quiz/quiz_transfer.html#formats
Can someone help me parse them out please? I don't want to pay for WebCT. It was a GNU
project gone commercial. It
Not to offend anyone BUT
What the is DHTML and JS (and VB for that matter) meant to do, we can
use PHP instead who needs onLoad="Gimmethedampopups()" - not me anyway i
Perfer not to have popups :)
_
Nigel Jones
[EMAIL PROTECTED]
>> -Original Message-
>> From: Joh
>> $date_$counter = $value[1]; <-- this is line 33
>> $dest_$counter = $value[3];
>> $dep_$counter = $value[4];
you can't do that
you'd have to do something like $mydate[$counter] = $value[1];
_
Nigel Jones
[EMAIL PROTECTED]
>> -Original Message-
>> Fro
Nigel Jones wrote:
How I take it is the fact that most is not all, it's best if possible to do
for all hence why I try to keep away from DHTML and Javascript
I agree totally. Besides, I leave all that DHTML and JS to the 'Web
Designers' ;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.
How I take it is the fact that most is not all, it's best if possible to do
for all hence why I try to keep away from DHTML and Javascript
_
Nigel Jones
[EMAIL PROTECTED]
>> -Original Message-
>> From: John Nichel [mailto:[EMAIL PROTECTED]
>> Sent: Monday, November 24,
Is this possible? I've been messing with this for about an hour now,
searching on google for about half hour. Here is what I want to do:
foreach ($array as $key => $value)
{
$value = explode("|", $value);
$counter = 0;
if ($value[7] == "Yes")
{
$counter++;
$date_$counter = $value[
Nigel Jones wrote:
No Diff, Plus i think that HTML is wrong
Use:
cat
dog
rat
Just for that HTML standards sake :P
Most (if not all) browsers of today with handle it fine without the
closing tag, but you're right for the standards sake.
--
By-Tor.com
It
No Diff, Plus i think that HTML is wrong
Use:
cat
dog
rat
Just for that HTML standards sake :P
_
Nigel Jones
[EMAIL PROTECTED]
>> -Original Message-
>> From: Joffrey Leevy [mailto:[EMAIL PROTECTED]
>> Sent: Monday, November 24,
Joffrey Leevy wrote:
Hi:
Can someone shed some light on this please? To me
when doing a form in php using \n or not using \n
makes no difference. I still get the form in my
browser to work.
For instance,
echo"
method='post'>\n
\n
cat\n
dog\n
rat\
Erin wrote:
Hi All,
Please give me a hand with this, ive been trying to do this for the best
part of today but i have got no where!
I have two arrays both have 161 elements, each has a list of filenames on my
server (images) now the idea here is to take the image name from array 1
copy it and r
php-general Digest 24 Nov 2003 03:41:07 - Issue 2433
Topics (messages 170719 through 170756):
Re: is it safe to store username and password for mysql connection in session
variables?
170719 by: Comex
170752 by: Justin French
A Tricky Time Calculation
170720 by: Shau
Hi:
Can someone shed some light on this please? To me
when doing a form in php using \n or not using \n
makes no difference. I still get the form in my
browser to work.
For instance,
\n
\n
cat\n
dog\n
rat\n
etc.
and
\n
Hi All,
Please give me a hand with this, ive been trying to do this for the best
part of today but i have got no where!
I have two arrays both have 161 elements, each has a list of filenames on my
server (images) now the idea here is to take the image name from array 1
copy it and re-name it t
"Scott St. John" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> A search did not yield much in what I am trying to do:
> 1)Open the mailbox and extract the Received, From and Subject headers.
> 2)Drop those into a database that I can manage from the browser.
There are two PEAR packa
On Sun, 23 Nov 2003, David Otton wrote:
> >How about something like this:
> >$hstart = 7; $hend = 19; $interval = 15;
> >for($h=$hstart; $h < $hend; $h++) {
> > for($m=0; $m < 60; $m += $interval) {
> >echo sprintf("%d:%02d",$h,$m); } }
>
> Couple of suggestions on top:
> replace "echo sprintf
On Monday, November 24, 2003, at 01:54 AM, anders thoresson wrote:
Is it safe to load these two into session variables when a user logs
in to my application? Or is it better to access the ini-file each time
a mysql-connection is needed?
I include the file with unames and passwords as needed.
On Monday, November 24, 2003, at 02:34 AM, Shaun wrote:
Hi,
I need a loop that will print the hours in a day separated by every
fifteen
minutes between 0700 and 1900 e.g.
07:00
07:15
07:30
07:45
08:00
08:15
...
19:00
How could I do this?
There's plenty of ways, this is just one to get your he
I'm trying to receive data from a mysql database through php.
Using the command line at mysql listed below gives me a result set.
I am able to connect to the database through php, however, when using the
following script, I receive no data when the data is in the table called
pictures in the db c
I run a small ISP and am looking at ways to automate grabbing the headers
from email. I currently copy all email to a BSD box, then use Pine in
header mode to get the IP addresses from which I build my spam filters.
A search did not yield much in what I am trying to do:
1)Open the mailbox and
On Sun, 2003-11-23 at 20:02, Al wrote:
> >From the PHP Manual notes (http://us2.php.net/manual/en/function.chop.php):
>
> $string = substr("$string", 0, -1);
You'd be better off with:
$string = substr( $string, 0, -1 );
to avoid unnecessary interpolation overhead.
Cheers,
Rob.
--
.---
1)
function filter() {
if($this->post['a'] == "savenews") {
$this->post['summary'] = preg_replace("!\[url\](.*)\[/url\]!","\\1", $this->post['summary']);
}
---
2)
global $nwedst;
$nwedst = str_replace("\n", '', $dat->summary);
nwedst = preg_replace("!\(.*)\!","[url]htt
"Schechter, Ricky" <[EMAIL PROTECTED]> wrote:
Do I use ldap_search to authenticate users in LDAP?
I can successfully search the LDAP and retrieve user's data based on a
search criteria like (cn=something).
If I use (password=somepass) or (userPassword=somepass) in the search
criteria it comes bac
>From the PHP Manual notes (http://us2.php.net/manual/en/function.chop.php):
$string = substr("$string", 0, -1);
Al
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does PHP have an equivalent to PERL's chop - that is, a way to get rid of
> the last character in a
Jed R. Brubaker wrote:
Does PHP have an equivalent to PERL's chop - that is, a way to get rid of
the last character in a string?
"Hello World" to "Hello Worl"
Thanks in advance.
this might work, haven't tested it...
second param is optional
function chop($strSubject, $intWastage = 1) {
$strRes
Does PHP have an equivalent to PERL's chop - that is, a way to get rid of
the last character in a string?
"Hello World" to "Hello Worl"
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
There are a number of open-source PEAR packages that can help you manage
usernames, passwords, and user preferences.
Check out: http://pear.php.net/packages.php?catpid=1&catname=Authentication
Hope it helps,
Al
"Jonathan Rosenberg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> F
Friends,
I'm interesting in finding a PHP package that implements functions for
managing user names & passwords & controlling access to specific parts of a
site.
Of course, free is best. But cheap is good. And, even not-so-cheap is
fine, as long as it provides good functionality.
Any pointers
Please CC me, I am on digest
--
If I have a directory like:
$HOME/www/ (document root)
It has a auth section in the .htaccess file
$HOME/www/.htaccess
another directory like:
$HOME/www/want_to_be_public/
How can I defeat the auth section in the
$HOME/www/.ht
Please CC me, I am on digest
--
If I have a directory like:
$HOME/www/ (document root)
It has a auth section in the .htaccess file
$HOME/www/.htaccess
another directory like:
$HOME/www/want_to_be_public/
How can I defeat the auth section in the
$HOME/www/.ht
On Sun, 23 Nov 2003 15:19:23 -0700, you wrote:
>When the 'New Mexico' gets to phpinfo, it says the string is 'New+Mexico'
>and that's not what I need. I used htmlspecialchars to add the %20 to the
>string but didn't get it. What am I doing wrong or missing??
That sounds like the behaviour of urle
Good afternoon.
I'm having a problem handling strings with spaces being passed from a form
by HREF to a PHP program.
Example:
button code
When the 'New Mexico' gets to phpinfo, it says the string is 'New+Mexico'
and that's not what I need. I used htmlspecialchars to add the %20 to the
string bu
Please CC me, I am on digest
--
If I have a directory like:
$HOME/www/ (document root)
It has a auth section in the .htaccess file
$HOME/www/.htaccess
another directory like:
$HOME/www/want_to_be_public/
How can I defeat the auth section in the
$HOME/www/.ht
How are you parsing the XML? If you read the values into a PHP variable, and
you're confident in the contents of the string, you could use eval()... Also,
preg_replace_callback() may be useful.
If you provide a bit more example, it may be more easy to help. In any case, I
think your variable va
On Sun, Nov 23, 2003 at 03:42:58PM -, Shaun wrote:
:
: Given the time range: 09:15 - 17:30 how can I tell how many 15 minute
: intervals occur between these two times? Obviously here I can work it out,
: but I need a calculation that will perform the maths for any two time
: ranges...
Hi,
I'm working on a database class of my own. I've got the following method:
/**
* query() performs a query on the selected database
*/
function query($dbQuery)
{
if (is_string($dbQuery))
$this->dbQuery = $dbQuery
Hello, I am completely new to PHP and due to some
disparate components in our system I am trying to
integrate PHP with Java. I have followed the
instructions in the README file (under the ext/java
folder in the PHP bundle) but I have hit a snag two
days now.
I have done several changes in my p
"Jerry" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have always been a little bit reluctant to use obfuscators since the
> source code does not actually disappear and it should not be too
> difficult to find the correct patterns and algorythms to map and
> restore the scrambled
On Sun, 23 Nov 2003 10:49:58 -0800 (PST), you wrote:
>That works, but it's a little unweildy.. especially if you want to change
>the range later (changing the array may not be so bad, but then you've
>got to figure out how many iterations your loops must do, etc).
>
>How about something like thi
On Sun, 2003-11-23 at 14:27, Jed R. Brubaker wrote:
> I was hoping that some of you would be able to give me some advice.
>
> I have started creating a web application that makes heavy use of URL GET
> variables in order to solve a problem that I have had with POST in the
> past - namely, having
I was hoping that some of you would be able to give me some advice.
I have started creating a web application that makes heavy use of URL GET
variables in order to solve a problem that I have had with POST in the
past - namely, having to refresh the document and repost the variables when
you use
Please, see:
http://www.php.net/manual/en/function.localeconv.php
and
http://www.php.net/manual/en/function.setlocale.php
-
zerof
-
"Joffrey Leevy" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> The money_format function does not do it for me. Is there a simple php fu
On Sat, 22 Nov 2003, Schechter, Ricky wrote:
> Do I use ldap_search to authenticate users in LDAP? I can successfully
> search the LDAP and retrieve user's data based on a search criteria like
> (cn=something). If I use (password=somepass) or (userPassword=somepass)
> in the search criteria it com
On Sun, 23 Nov 2003, Shaun wrote:
> Sorry, worked it out, here it is if anyone needs it :)
> $minutes = array("00", "15", "30", "45");
> $hours = array("07", "08", "09", "10", "11", "12", "13", "14", "15", "16",
> "17", "18", "19");
> for ($x = 0; $x < 13; $x++ ) {
>for ($y = 0; $y < 4; $y++ )
Hallo zusammen,
ich möchte gerne meine bestehende app in mehreren Sprachen anbieten.
Dazu habe ich mir ein xml parser package installiert welches in der Lage
ist aus xml dateien inhalte einzufügen.
Zum Bsp sieht das xml file so aus:
example
beispiel
Das funktioniert so weit. Das PROBLEM allerdi
I have just been trying to work out the behaviour of running a php programm
from BASH.
If i execute
./my_program.php >> /var/log/mylog 2>&1 &
and then terminate the controlling terminal I get a background process which
has no controlling terminal, a parent process id of 1 and the process
becomes a
* Thus wrote Bronislav Kluèka ([EMAIL PROTECTED]):
> Hi, I've got questions:
>
> I've got sqlite like PHP module (under windows). I tried this:
> a)execute script 1 (selecting from some table), it tooks 2 minutes
> b)execute script 2 , it tooks 3 minutes
> c)execute them both at
Sorry,
worked it out, here it is if anyone needs it :)
$minutes = array("00", "15", "30", "45");
$hours = array("07", "08", "09", "10", "11", "12", "13", "14", "15", "16",
"17", "18", "19");
for ($x = 0; $x < 13; $x++ ) {
for ($y = 0; $y < 4; $y++ ) {
echo "
".$hours[$x].'.'.$min
Hi,
Given the time range: 09:15 - 17:30 how can I tell how many 15 minute
intervals occur between these two times? Obviously here I can work it out,
but I need a calculation that will perform the maths for any two time
ranges...
Thanks for your help
--
PHP General Mailing List (http://www.php.n
<[EMAIL PROTECTED]>
Anders Thoresson:
> Hi,
>
> In the ini-files for my php-projects, I store various settings. Two
> of them is username and password for my mysql-connections.
>
> Is it safe to load these two into session variables when a user
> logs in to my application? Or is it better to ac
php-general Digest 23 Nov 2003 15:34:15 - Issue 2432
Topics (messages 170697 through 170718):
Re: Execute programs
170697 by: Eric Wood
Re: $_GET String Edit
170698 by: Chris Shiflett
170699 by: Jed R. Brubaker
170701 by: Chris Shiflett
ldap_search() questi
Hi,
I need a loop that will print the hours in a day separated by every fifteen
minutes between 0700 and 1900 e.g.
07:00
07:15
07:30
07:45
08:00
08:15
...
19:00
How could I do this?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
Hi,
In the ini-files for my php-projects, I store various settings. Two of
them is username and password for my mysql-connections.
Is it safe to load these two into session variables when a user logs in
to my application? Or is it better to access the ini-file each time a
mysql-connection is
Greetings all,
I'm looking for a tutorial or some assistance in explaning how store and
then open and read a binary file using php/mysql.
I've got a few tutorials about storing the binary data _within_ a mysql
table from Kevin Yank, phpbuilder, etc. but I've heard that it's sometime
better to keep
Hi all,
is there a way to tell at runtime if PHP is running as an Apache module or
through CGI?
phpinfo() shows this piece of information ("Server API" on the first page).
But is it available as a server variable or a constant or whatever?
I want to know this because I want to set the HTTP statu
Dear Jason,
I try your advise which is imap open sample like follows and I get;
Warning: imap_open(): Couldn't open stream {mail.smsavantaj.com:110/pop3
$mbox = imap_open ("{mail.test.com:110}", "[EMAIL PROTECTED]", "1234");
echo "Mailboxes\n";
$folders = imap_listmailbox ($mbox, "{mail.smsav
OPTIMIZE TABLE tbl_name
M wrote:
Hello, sorry this mysql question here, but I cant't answer this one.
I have database with BLOB fields to hold pictures (60-90 kb each).
Actually I am erasing these BLOB fields (move '' into and update rcord)
to free some space from my DB, but space is not released
Dear Jason,
I am using following code;
require "classes.php";
$u = $_GET['u'];
$p = $_GET['p'];
$uex = explode("@", $u);
$u = $uex[0];
$domain = $uex[1];
require "vars.php";
$MainSettings = new GlobalInit();
$TransIDEnabled = $MainSettings->INIGet('session.use_trans_sid');
session_start();
if
I would like to know how to run a PHP Program as a Daemon on my Linux Box.
What I am planing to make is a Server that will make use of the Wonderful
sockets
_
Nigel Jones
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
60 matches
Mail list logo