Hi,
Im working on a site where the user logs in , if username and password
matches with uname and pword in database then he is a valid user.
I then start a session with session_onstart() and have a variable for his
username and for his permissions ! (these variables are stored on server)
Once he
hi there , is there any way to possibly get the list via email ? i can only
access it via the newsgroup viewer in outlook and my firewall guy at work
persists not to let me have access and you guys are very important to have
in the community while i am @ work, not saying i cant do anything my self
Yes. http://www.php.net/mailing-lists.php
electroteque wrote:
hi there , is there any way to possibly get the list via email ? i can only
access it via the newsgroup viewer in outlook and my firewall guy at work
persists not to let me have access and you guys are very important to have
in the co
I'm looking through some existing code for a project I'm working on, but
I keep running into this syntax that I really don't understand. Here's
an example:
$a=strpos($a,'-')?explode('-',$a,2):array($a);
What do the ? and the : do here? I'm seeing this sort of thing all over
and just have no idea
It's fairly simple. The code you posted could also be written:
if(strpos($a,'-')){
$a = explode('-',$a,2);
}else{
$a = array($a);
}
It's called the ternary conditional operator. Unfortunatley, it's
buried in the PHP manual.
http://us2.php.net/manual/en/language.expressions.php
Jimmy wrote:
I'
"and do my language support according to that."
ok thats the next thing i'm going to ask how do you do your language support
and how accurate is it ?
we run a service for multi-cultures and a dynamic translation from english
content would be excellent, i have noticed most of the language moudles
do i add my email in the subsription box for the ezlm ? if so i have tried
it before and never got an email, the others are links to archives and
newsservers
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Yes. http://www.php.net/mailing-lists.php
>
> electroteque wro
Leif, et al --
...and then Leif K-Brooks said...
%
% print "$i :: {$manilist[$i][0]}\n";
Aha! Perfect. Here I'd been trying such things with the leading $ on
the *outside* of the braces.
Thanks, all, for the help!
Back on the 'net after a great all-night storm (which in fact hasn't
stopped
Daniel --
...and then electroteque said...
%
% hi there , is there any way to possibly get the list via email ? i can only
...
Um, yeah. Look at the bottom of every post, including the very one you
just made:
% --
% PHP General Mailing List (http://www.php.net/)
% To unsubscribe, visit: http:
add this check
John Taylor-Johnston wrote:
http://www.php.net/manual/en/function.fread.php
What about error checking if the file contains something as I include below? Is that enough? Is this the right way?
if(!$handle) die('could not open file for reading');
$contents = fread ($handle, files
Everything you need is here:
http://www.php.net/manual/en/features.file-upload.php#features.file-upload.post-method
John Taylor-Johnston wrote:
Instead of using fread, I want to upload a *.txt file using:
and display it in a textarea. Where do I go now? Specifically, how do I get $contents?
Th
If you mean making the client refresh the page after an amount of time, use
header('Refresh: 10');
it is in seconds
Michiel van Heusden wrote:
thanks for your replies
the other thing i was trying to ask :) is how to keep on looping and looking
for new messages
is just a plain loop ok
or should i
The session file will be deleted automatically by the garbage colector
after certain amount of time, specified in php.ini by session.gc_maxlifetime
Shaun van den Berg wrote:
Hi,
Im working on a site where the user logs in , if username and password
matches with uname and pword in database then
thanks heaps mate
http://electroteque.dyndns.org:1023/benchmark/preg.phps
here it is with email hyperlinking aswell
"Nik Makepeace" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 2003-03-06 at 05:49, electroteque wrote:
> > hi there i am trying tom preg_replace on a string
At 10:44 06.03.2003, David T-G said:
[snip]
>...and then Leif K-Brooks said...
>%
>% print "$i :: {$manilist[$i][0]}\n";
>Aha! Perfect. Here I'd been trying such things with the leading $ on
>the *outside* of the braces.
[snip]-
In my case the client's list is about 1500 addresses and they send every 2-3
weeks. The client wanted a way to recover if sending failed mid-list -- a
way to know where to pick up again. A post to the list described a queuing
system similar to the one I built, so check the archives if you end up
bu
You should understand the concept of php better. The browser request the
page, php script prints the messages and closes the conection, the page
is displayed. You cannot continue printing out after the conection is
closed. So you need to tell the browser to refresh after certain amount
of time
To keep those similiar column names apart and more readable, you might want
to use AS.
SELECT table1.data AS data1, table2.data AS data2 ... FROM table1, table2
...
Of course this is optional, you can always use table1.data, table2.data
instead. Hope that answers your actual question as to how yo
hi everybody,
i have a PHP script by name registration.php
in which i have a submit button at the bottom.
the form in this script is sent to p.php by "GET".
but on clicking the submit button, nothing happens
attaching registration.php.
p.php has only the following:
please help,
diksha.
--
PHP
I have created a simple template engine extension. It is published at
http://zhat.dk/template/
It is very simple to install and use, and a PHP alternative (an include
file) is also provided.
No documentation available yet (sorry!!!), so have a look at the example
scripts.
--
PHP General Mailin
I want to tahnk those that responded to my previous post, seems I was doing
this all the wrong way. I am still having an issue with the syntax:
if("$status=='active'"){
echo("active line\n");
}else{
echo("inactive line\n");
};
When I display an employee record that has the employment status
$Row
In theory yes, you can, but you cannot be sure browser will display the
content as it receives it. Also your script is affected by maximum
execution time.
Michiel van Heusden wrote:
i understand what you say
i was just wondering whether there's an option of just keeping the html open
and printi
Hi,
I´ve compiled php-4.2.3 in my Red Hat 8 box and everything is fine. But
When I took a look at horde´s test page, It tells me PEAR is OK, Recent PEAR
is OK, mail is OK, BD is OK but Log is not OK.
And I need that log feature for my webmail (horde + imp). what can I do
to fix this? What
The session files are removed by the php engine, this is what happens:
1. You load a page, its suffix is php, apache loads php engine to execute it
2. php engines decides if it is time to clean session cache - the
probability is taken from session.gc_probability (in %)
3. If yes, it checks each se
Hi,
Thursday, March 6, 2003, 10:31:58 PM, you wrote:
HJ> I want to tahnk those that responded to my previous post, seems I was doing
HJ> this all the wrong way. I am still having an issue with the syntax:
HJ> if("$status=='active'"){
HJ> echo("active line\n");
HJ> }else{
HJ> echo("inactive line\
That depends on the way you run PHP
If you run it a a server module, it may be more efficient.
If not, then it it less efficient than CGI, as the PHP script engine is a
CGI program itself, and has to compile and run your script after it gets
started itself.
"Spyproductions Support Team" <[EMAIL P
Ernest, et al --
...and then Ernest E Vogelsinger said...
%
% At 10:44 06.03.2003, David T-G said:
% [snip]
% >...and then Leif K-Brooks said...
% >%
% >% print "$i :: {$manilist[$i][0]}\n";
% >Aha! Perfect. Here I'd been trying such things with the leadi
> hi everybody,
>
> i have a PHP script by name registration.php
> in which i have a submit button at the bottom.
> the form in this script is sent to p.php by "GET".
> but on clicking the submit button, nothing happens
> attaching registration.php.
>
> p.php has only the following:
> echo "
Is there an easy way to scan through an array of values sent from a form to
see if any of them are empty?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
By the way, beware of possibly buggy code:
strpos() will return 0 if the string begins with '-', but it will return
FALSE if '-' is not found in the string.
Since both 0 and FALSE will evaluate to boolean false in your condition, you
may get weird results.
Use this instead: (strpos($a, '-') !==
Since input from a form are strings, you can check like this:
if ($_POST['your_input_name'] == '')
// field is empty
"Shaun" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there an easy way to scan through an array of values sent from a form
to
> see if any of them are empty?
thanks for your reply but I was wondering if there was a way to check
through all of the form entries with an easier way that
if ($_POST['your_input_name'] == '' || $_POST['your_input_name'] == '' ||
$_POST['your_input_name'] == '' || $_POST['your_input_name'] == '' ) //etc
// field is empty
th
foreach($HTTP_POST_VARS as $val)
if($val=="")
{
do something
}
- Original Message -
From: "shaun" <[EMAIL PROTECTED]>
To: <>
Sent: Thursday, March 06, 2003 7:45 AM
Subject: [PHP] Re: Checking for empty values sent from a form
thanks for your reply but I was wondering if there was
You can write a function and when using it in a script insert
$HTTP_POST_VARS as the argument:
function filled_out($form_vars) {
foreach ($form_vars as $key => $value) {
if (!isset($key) || ($value == "")) {
return false;
}
}
return true;
}
(I think this i
Been on this a couple of hours... anyone see what I'm doing wrong?
I get a result of 1 when I echo $result but it doesn't want to update at
all.
The action of this form index.php?action=update-account is just a switch
case
Which asks you to use the function update_subscriber_account() below...
You usually don't want spaces either
foreach($_POST as $val)
{
if(strlen(trim($val)) < 1)
// do what you want
}
"Rick Emery" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> foreach($HTTP_POST_VARS as $val)
> if($val=="")
> {
> do something
> }
> - Original M
Is this HTML in a print or echo statement? If not, then the variables will not
display. You can
View Source to verify this.
- Original Message -
From: "Steve Jackson" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 8:27 AM
Subject: [PHP] Problem u
Hi,
Friday, March 7, 2003, 12:27:27 AM, you wrote:
SJ> Been on this a couple of hours... anyone see what I'm doing wrong?
SJ> I get a result of 1 when I echo $result but it doesn't want to update at
SJ> all.
SJ> The action of this form index.php?action=update-account is just a switch
SJ> case
SJ>
Have you tried echoing out the $query just to ensure that all the expected values are
being passed to this?
If the old_email field is blank I think it will carry out the update but no rows will
be affected.
Michael
-Original Message-
From: Leendert [mailto:[EMAIL PROTECTED]
Sent: 06 Ma
Actually it didn't need the globals,
But I did need to pass the variables into the function!
Update_subscriber_account($var1, $var2 etc)
I feel a right plonker now!
Steve Jackson
Web Developer
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
> -
New to php and looking to by this book
PHP For the World Wide Web: A Visual QuickStart Guide
by Larry Ullman
Peachpit Press, April 2001, ISBN 0-201-72787-0, 278 pages
The book says it covers PHP version 4.04. I currently have
php-4.2.2-8.0.7 running on RH 8.0. Will this book be current en
Join the club.
I spent some time looking at your original post - submitted a response - but
associated it with the wrong thread!
Apologies to all!
Michael
-Original Message-
From: Steve Jackson [mailto:[EMAIL PROTECTED]
Sent: 06 March 2003 15:00
To: 'Tom Rogers'
Cc: 'PHP General'
Subje
> From: juan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 06, 2003 9:36 AM
> Subject: [PHP] new to PHP
>
> New to php and looking to by this book
> PHP For the World Wide Web: A Visual QuickStart Guide
>
> The book says it covers PHP version 4.04.
> Will this book be current enough for m
Maybe throw in the code where $status or $Row[status] get initialized.
but i would do it like this:
if( $status == 'active' ) {
echo "active line\n";
} else {
echo "inactive line\n";
}
or
if( $Row['status'] == 'active' ) {
echo "active line\n";
} else {
echo "in
You might want to jump on the horde mailing list seeing that it is an
issue with horde and not fully with PEAR. Horde uses PEAR for error and
logging capabilities.
And there are some really good people on the horde list.
--
Ray
On Thu, 2003-03-06 at 05:41, José Manuel Valente wrote:
> Hi,
>
I'm very new to PHP, so I hope no one is offended by reading my very basic
questions.
I have created a web form that saves some data to a database and uploads
three files, copies them to a new directory, and renames them. From my
work machine and home machine, it works great for me - there are ne
Hello
I have a script that after login gives the user access to one directory. The
directory depends on their login.
After login a list of files is displayed with a check box in front of each file.
Under the list of files there are several buttons, Copy, Delete, Rename, Upload, and
Download.
Jess,
In your statement;
if("$status=='active'"){
the conditional inside quotations is treated as a string and not evaluated,
remove the outer double quotes :->
hope this helps,
Warren Vail
[EMAIL PROTECTED]
-Original Message-
From: Ray Hunter [mailto:[EMAIL PROTECTED]
Sent: Thursday
hi
i need to set one directory on my server with global_variables turned on.
i'm running apache
i've read that by setting the environment variable PHPRC, I can point a
directory to a different php.ini file. however, i'm having trouble finding
out how to go about doing this. is this something i
I'm a new php studient.
I have downloaded a webmail example that's have a error.
When i attach a file in a newmessage, the browser send me
a error, On MSIE i receive "page not found" and on KDE
i receive "Connection Broken".
This occurs after this command:
fread($fd, filesize($path));
I have do ma
Hi!
Perhaps this is a little bit of topic, but if it's not possible to fix
directly when the result is returning from mysql I need some tips on an
intelligent solution...
This is the problem: I'm searching the database for files and i get
some results. In the sql I have a LIMIT to split the re
Thanks!
You might want to jump on the horde mailing list seeing that it is an
issue with horde and not fully with PEAR. Horde uses PEAR for error and
logging capabilities.
And there are some really good people on the horde list.
--
Ray
On Thu, 2003-03-06 at 05:41, José Manuel Valente wrote:
>
> I'm very new to PHP, so I hope no one is offended by reading my very basic
> questions.
>
> I have created a web form that saves some data to a database and uploads
> three files, copies them to a new directory, and renames them. From my
> work machine and home machine, it works great for me - t
I can answer my own #2 now.
It is because I was trying to start_session() from the same
machine/browser and it must require that only one user use a session at
a time (duh).
Works fine if I use two browsers that are logged in with different
account names/sessions.
Still working on #1, I am defin
Hello,
I've got a form here:
http://www.winnefox.org/ccbc.html
Which I have running this:
http://email.winnefox.org/wals/support/formmail.php";>
In that form, I also have it redirect the results to:
http://www.winnefox.org/form_results.php
What I get when I submit the form is this:
Notice: Unde
Hi,
I recently upgraded PHP to version 4.3.1, however I have some problems with
it. When I open some PHP files it shouts garbage at me + some html or just a
blank screen, when i look at the file on the server nothing has changed, I
already tried uploading the files to another location, keep gettin
The files go to different directories, but I checked the permissions on
all of the directories, and they are all '777'. I am able to upload
files, so I think the directory is ok.
The server is unix.
I am going to ask my boss to send me the files he is trying to upload to
see if the files are t
Its a rather strange thing. I tested all my pages on my Win2000-Apache
configuration and uploaded them to my clients RedHat server. There, on
submission, all pages just refresh themselves. All my forms are set to
submit to the same page and I check in the beginning for the submit button
variable. I
Jody,
on "frommail.php":
Depending on your version of PHP I would guess you are running PHP 4.2
or greater with register_globals = off.
That would create the errors that you are getting:
Notice: Undefined variable: Name
To get around this error Use this $_GET["Name"] this should return the
v
You wouldn't by chance be using $PHP_SELF as the action field of the form?
- Kevin
- Original Message -
From: "Arijit Chaudhuri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 10:56 AM
Subject: [PHP] Pages refresh on submission on RedHat Server - POST problem
have the file download in a popup window.
after the down load the window will be gone.
Then you don't have to worry about the refreshing of the main window.
Jim
- Original Message -
From: "David Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 8:30 AM
Su
Arijit,
Are you clicking on the button or pressing on a field to send the data?
AFAIK, if you click, it will set the var. If you just press , it will submit
the form, but won't set the var. I personally use a hidden var, and I check for that
one.
HTH.
--
Un gran saludo/Big regards...
Artur
I've searched all over for the answer to this problem.. but haven't
found anything..
I have a script that i use to upload files to a webserver and download
them via my phone..
problem is, the files end up being about twice the size of the original
file..
for example,i upload a midi that
Nifty. To share my finding ...
Thanks,
John
Upload File
C:\WINDOWS\Bureau\microweb\ERIC.TXT
Read this file:
Upload Results
Your file contained:
\n";
echo "$fileContents\n";
echo "\n";
#echo ($fileContents);
?>
file_uploads = 1
upload_max_filesize = 2M
upload_tm
$HTTP_POST_FILES as opposed to $_FILES is older syntax? $HTTP_POST_FILES is still
compliant?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes I did all what you suggested !
tried all value carrieres and none has a value
as well tried print_r($line); and it gives me the last random line number
from 10 random line numbers displayed already if I use $line
The sdcript dosn't grab the line only the random numbers are ready
Can somebody
What do you mean by "fails at the copy"? Have you verified that the
filename and path you're copying to is valid? Otherwise, if the filename
that is failing is consistently the same, and if it's attempting to
overwrite an existing file, it could be a permissions problem. Just a
couple of guesse
How to grab the last -n lines from a data file and display the stored data
Only the the last 10 line numbers coming back when I echo $i
How do I get the list($adnr, $user, $date, $listed to catch the datafields
datafile looks like
23|Werner|LastN|Street|etc|etc.|etc||
24|Veronika
/
How to grab the last -n lines from a data file and display the stored data
Only the the last 10 line numbers coming back when I echo $i
How do I get the list($adnr, $user, $date, $listed to catch the datafields
datafile looks like
23|Werner|LastN|Street|etc|etc.|etc||
24|Veronika
/
How to grab the last -n lines from a data file and display the stored data
Only the the last 10 line numbers coming back when I echo $i
How do I get the list($adnr, $user, $date, $listed to catch the datafields
datafile looks like
23|Werner|LastN|Street|etc|etc.|etc||
24|Veronika
/
How to grab the last -n lines from a data file and display the stored data
Only the the last 10 line numbers coming back when I echo $i
How do I get the list($adnr, $user, $date, $listed to catch the datafields
datafile looks like
23|Werner|LastN|Street|etc|etc.|etc||
24|Veronika
/
Well, I have a statement that says:
if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) {
echo an error
}else{
proceed with renaming the file
}
The error that is echoed after the copy is the one that pops up. So, it
could be some other problem, but
> Well, I have a statement that says:
>
> if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) {
> echo an error
> }else{
> proceed with renaming the file
> }
>
> The error that is echoed after the copy is the one that pops up. So, it
> could be some other problem,
You could do it reading back to front the way you propose but I think it
will work much better in a proper for loop.
// the number of elements in the array.
$num_lines = count($file);
// the line we want to start the loop at.
if ($num_lines > 10)
$start_line = $num_lines - 10;
else
$start
On Friday 07 March 2003 03:28, Amanda McComb wrote:
> Well, I have a statement that says:
>
> if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) {
> echo an error
> }else{
> proceed with renaming the file
> }
The copy() function allows you to specify a d
Yes, $HTTP_POST_FILES is depricated, but it still works in PHP 4.
"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> $HTTP_POST_FILES as opposed to $_FILES is older syntax? $HTTP_POST_FILES
is still compliant?
> John
>
--
PHP General Mailing List (http://www.p
Do You Know java mail list?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks!! I'll give that a try!
On Thu, 6 Mar 2003, 1LT John W. Holmes wrote:
> > Well, I have a statement that says:
> >
> > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) {
> > echo an error
> > }else{
> > proceed with renaming the file
> > }
> >
> > The er
$file = file('filename');
$line = end($file);
for ($i=0; $line && $i<10;$++)
{
list (. and so on...
$line = prev($file);
}
"Webdev" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
How to grab the last -n lines from a data file and display the stored data
Only the the last 1
> You wouldn't by chance be using $PHP_SELF as the action field of the form?
I am - though not by using $PHP_SELF but using the same file name in
action - holds for all my files. Any way to get around it? Have not got this
problem on any other server earlier.
Thanks,
Arijit
"Kevin Stone" <[EMA
On Friday 07 March 2003 06:25, WebDev wrote:
> How to grab the last -n lines from a data file and display the stored data
> Only the the last 10 line numbers coming back when I echo $i
>
> How do I get the list($adnr, $user, $date, $listed to catch the
> datafields
>
> datafile looks like
> 2
> You wouldn't by chance be using $PHP_SELF as the action field of the form?
I am - though not by using $PHP_SELF but using the same file name in
action - holds for all my files. Any way to get around it? Have not got this
problem on any other server earlier.
Thanks,
Arijit
"Kevin Stone" <[EMA
On Friday 07 March 2003 03:42, Cavallaro, Vito wrote:
> Do You Know java mail list?
I don't, but I bet google does.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
-
Hello All
My application is based on PHP / MySQL. I am using "Sessions" to
validate users before they can access the SIte.
I need to use the same login to allow the users to gain access to a
secret Dir.
This directory is within the webfolder. I have gone through many
previous threads and figu
I again have no values in my list names $adnr, $user, $date, $listed,
$hlong, $eins, $zwei, . themn are always emty no matter what I do with
your code my code
// code start
$file = file("data/ads.data");
$num_lines = count($file);
if ($num_lines > 10)
$start_line = $num_lines - 10;
els
shit i'm a dope this is the email address [EMAIL PROTECTED], as i
access the group via newsgroup i never knew :|, but what i am saying is , as
like mysql it is downloading all the messages to my inbox i cannot do this
with the php list i can only post, and can only read them in the newsgroup
viewer
On Friday 07 March 2003 07:09, WebDev wrote:
> I again have no values in my list names $adnr, $user, $date, $listed,
> $hlong, $eins, $zwei, . themn are always emty no matter what I do with
> your code my code
> $dreidrei, $dreivier, $dreifunf, $dreisechs ) = split ("\|", $buffer);
That's bec
Dan --
...and then Dan Rossi said...
%
% shit i'm a dope this is the email address [EMAIL PROTECTED], as i
No problem :-)
% access the group via newsgroup i never knew :|, but what i am saying is , as
No problem! So you don't see the footer at the bottom of everyone else's
list posts when th
Hello All
I am writing again with reference to my dir Protection PHP script.
The scenario is explained below.
Whenever a user clicks a particular URL, it triggers a php file which
first checks if the user's session exists or not. If the user's session
exists, it should fopen() the particular f
still empty
Got the code like you described:
// start
$file = file("data/ads.data");
$num_lines = count($file);
if ($num_lines > 10)
$start_line = $num_lines - 10;
else
$start_line = 0;
for ($i=$start_line; $i<$num_lines; $i++)
{
list($adnr, $user, $date, $listed, $hlong, $eins, $zwei,
My PHP-based pages "intially" work, but will not refresh when I go through Microsoft
IIS Web Server.
The identical PHP-based pages work and refresh correctly when I go through Apache.
My environment is . . .
Microsoft Windows XP Professional
Microsoft IIS Web Server
Apache Web Server (on a por
No you did not do it as I described.
Here's what I wrote:
split('|', $line[$i]);
Here's what you wrote:
split('\|', $line[$i]);
See the difference? Remember single quotes denote a literal. You do not
have to limit the pipe character when you use single quotes.
- Kevin
- Original Message
> Thanks!! I'll give that a try!
>
> On Thu, 6 Mar 2003, 1LT John W. Holmes wrote:
>
> > > Well, I have a statement that says:
> > >
> > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) {
> > > echo an error
> > > }else{
> > > proceed with renaming the file
> > >
If I remove the "/" then I get this error
Warning: bad regular expression for split() in
/home/virtual/browse/home/httpd/html/Classifieds/infobox2.php on line 14
- Original Message -
From: Kevin Stone <[EMAIL PROTECTED]>
To: WebDev <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday,
Sorry that should be $file[$i] not $line[$i]. I failed to see your other
mistake. Just trust me on the '|' thing.
- Kevin
- Original Message -
From: "WebDev" <[EMAIL PROTECTED]>
To: "Kevin Stone" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 4:44 PM
Subject: Re:
Holy crap looks like I was wrong! I just tested it and sure enough '|' does
return an error.. how do you like that. So use split("\|", $file[$i]).
- Kevin
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "WebDev" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, Ma
Hi,
i just tried the session_set_save_handler script from Sterling Hughes
"PHP Cookbook", which allows to save the session in a MySQL database.
However, i ran into a problem:
The script works just fine and also saves the session in the database,
but it doesn't update the value of the saved data.
I
Buitiful it works finaly thanks to your help
Could you be so nice and as well look what I am doing wrong with the random
array display I send it today to the list already again with the lates code
it uses the same data file but only random line numbers is all what I get
- Original Message
> Holy crap looks like I was wrong! I just tested it and sure enough '|'
does
> return an error.. how do you like that. So use split("\|", $file[$i]).
For a regular expression "|" means OR. You could use explode("|",$file[$i])
for the sam effect. Benchmark split() vs. explode() and see which is
I need to modify a string that contains image links like http://www.somedomain/directory/graphics/filename.jpg";> to
image links like
How can I do this?
Luis
1 - 100 of 156 matches
Mail list logo