they're usually used as includes, hence the INC part.
files that have certain functions/classes that another script requires
and people use them to split up the code.
I don't and have never created .inc files.. all my files end in .php --
but that's just me.
Martin Zvarik wrote:
Hi,
I
I'd like to know if it is possible to perform a search across multiple
mysql tables within a single query.
eg, i have two tables with different column names:
news: title | newstext
faqs: topic | faqstext
currently i am just searching the news table with a query as such:
SELECT *, MATCH
I am quite aware of a mysql mailing list. I don't feel like joining
another list,
anyway, move along,.. I've already solved the problem without your help,
but from others on this list.
John Nichel wrote:
Sebastian wrote:
I'd like to know if it is possible to perform a search across
I looking for a way to update certain parts of a site that is highly
dynamic. I've tried creating static files via cronjobs then including them,
but it is a pain to do. for instance, i have a news page that utilizes
mysql, rather than query the DB on each page load i would like to have it
update
very new to regex
i have a string with bbcode such as [img=XXX]
(XXX being numeric)
how do i search the string for the value of the bbcode and compare it to
another variable?
so i can take XXX and compare it to $image dynamically.
thanks for any help.
--
PHP General Mailing List
i partly solved the problem using this regex:
$tutorial['pagetext'] =
preg_replace_callback('#\[img\]\s*(\d+)\s*\[/img\]#siU',
'image_code_callback', $content['pagetext']);
except instead of using [img]foo[/img] i would like to do just [img=foo]
any help?
Sebastian wrote
i've created file upload scripts in the past that allows multi-upload inputs
using the bracket [] array in form.
so now i have to create the same type of script but each file input field
will also be followed by a text box for a file caption type thing.
what would i used for the input text box?
i've been doing some reading on optimizing php for fastest performance.
are there any benifts to configure php with:
--enable-inline-optimization
also running eAccelerator.
these are my current options:
--with-apache=../apache_1.3.33 \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-gd \
im looking for a small tutorial/cms script without all the fluff.
something to create pages (static preferably) doesn't even need an
admin/user interface.
i could write my own, but don't have the time at the moment.
if anyone knows of such a small script let me know.
cheers.
--
PHP General
does anyone know of a way to view the contents of a zip file and its
directory structure?
i know there are zip file functions in php but they require extra libs i
would rather not load right now.
i know its possible, at least by looking at this download manager that does
this:
No releases have been made yet.
Philip Hallstrom wrote:
does anyone know of a way to view the contents of a zip file and its
directory structure? i know there are zip file functions in php but they
require extra libs i would rather not load right now.
when the if statement is true how do i make it appear as the last record in
the loop?
$tabarray = array('/games' = 'Games', '/news' = 'News');
foreach ($tabarray AS $loc = $item)
{
if(strpos($loc, $_SERVER['REQUEST_URI']) !== false)
{
$tabmenulist .= 'td class=tabsela
$recipients = '[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],';
echo str_replace(',', ', ', substr($recipients, 0, -1));
- Original Message -
From: Ross [EMAIL PROTECTED]
I have a large group of email addesses serperated by commas. I need to
trim
off the very last comma
$string = '4:gaming,5:hardware,3:software,8:security';
what is the best way to explode then loop this string after its taken apart.
output should be something like:
$id = 4
$cat = gaming
etc..
im just looking for the best/fastest way to do this. the string can grow to
200 or so bytes, maybe
i am developing a comment/discussion board and i want to display the results
in a threaded style. so far i have it all working except this one issue:
each row has an ID and a parentid, say i have 5 rows:
id : 10 most oranges come from florida
id : 16 Re: most oranges come from florida
, Sebastian said:
i am developing a comment/discussion board and i want to display the
results
in a threaded style. so far i have it all working except this one issue:
each row has an ID and a parentid, say i have 5 rows:
id : 10 most oranges come from florida
id : 16 Re: most
i have an issue with site linking directly to my images.
the problem is these images are generated on the fly with php/gd -- they're
generated each time its viewed because i have done some watermarking
manipulation and didnt want to watermaker them in a static way. they're
including the images
i have a form with checkboxes which after POST it writes to a file.
i would like to allow the user to sort the selected checkbox filename in the
order they want it written to file.
so i was thinking creating an input text box where they can enter a number,
then have it written to file in that
it seems the xhtml validator is throwing an error with:
--
Line 530, column 12: value of attribute id invalid: 1 cannot start a
name
div id= 1 79 style=display: none;
--
Here is the code:
Hi,
it appears mail() stopped working on my server. i recall it worked
previously. since i haven't used mail() in a while i dont recall when it
stopped working. running php 4.3.10
php.ini is default path for send mail which is the correct path for the
server.. anything else i should be looking
i ran into this problem and i dont remember how i worked around it.
if($_REQUEST['value'] == 1)
{
// do something
}
else if($_REQUEST['value'] == 0)
{
// do something
}
even if i don't do ?value=0 its always prints something.. i want to make an
on/off value based on the value of the url.. 1
ok, so i made a file manager and i need to prevent people from linking
directly to files that do not come from another part of the site.
i know i can use http_referer, but i wonder how fool proof it is, i dont
want to spit out errors to a legit user that actually came from a valid page
before
i have some php forms which uploads files/images and i would like to know if
its possible to upload them to a remote server instead, if so, how?
cheers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
im working on an article system and looking to avoid running three queries.
example, i have this query:
SELECT id,title FROM articles WHERE id=$_GET[id]
now say $_GET[id] = 5
I would like to get the previous id 4 and the next id 6 (if there is one)
so i can do something like:
Previous
thanks Leif, not too many think like you :)
some people are on this list just because they think they are some genius in
php, then when someone with less experience asks for help they bitch and
basically tell you to find your own solution or read the manual, that is the
first place any REAL php
how do i delete keys from an array if it has no values?
eg, this:
[name] = Array
(
[0] = grape
[1] = apple
[2] =
[3] = orange
[4] =
[5] = cherry
)
to:
[name] = Array
(
[0] = grape
[1] = apple
[2] = orange
[3] = cherry
)
--
Hi,
im working on this mulitiple upload script to auto resize images. everything
works, except two problems.
1) for some odd reason if i attach all fields with an image it only submits
5. seems its skipping one.
2) if i attach an image to field 1, 3, 5 and skip the other fields only 1
file gets
well i found the problem to #1. i forgot an = on the for() loop.. so it
uploads all 6 instead of 5. still looking for a solution on #2
- Original Message -
From: Sebastian [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Tuesday, January 11, 2005 8:59 PM
Subject: [PHP] weird upload
Jason Wong wrote:
How did you ascertain this? What does print_r($_FILES) show? Unless you're
using a broken browser it *should* work.
i tried both IE6 and Firebox 1.0, both do the same.
does appear its being passed.. doesn't it? array:
Array
(
[image] = Array
(
[name]
I have a list of rows in the database and i would like to sort them in two
categories.
example,
echo $row['name'] . '-' . $row['type'];
// output:
row 1 - files
row 2 - files
row 3 - music
row 4 - files
I would like this output:
files
--
row 1 - files
row 2 - files
row 4 - files
hmm i never even knew you can put that in there.. i always used .htaccess or
in the php.ini
i've never seen anyone do it in the httpd.conf.
also you shouldn't quote the value.. you might also need to increase
post_max_size
- Original Message -
From: Steve Kieu [EMAIL PROTECTED]
To:
I am undecided whether to upgrade to apache 2 (currently running 1.3.33)
I've heard some bad stuff (some good maybe) about using apache 2 with php..
does anyone have an opinions?
I know everything has cons/pros but i am just looking for advice on whether
my site will benifit from the upgrade. I'm
i have this small function for a template system (if you want to call it
that ;)
my idea was having something simple to separate html code from php and i
think using something like smarty is too big for me and i really dont have
time to learn to use it. so i have this code here:
yea. all the files aren't 100MB though.. some are 2mb (even less) while some
files are over 300MB as well.
so, does this need to be adjusted depending on the filesize?
thanks.
- Original Message -
From: Rory Browne [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Sebastian [EMAIL PROTECTED
well, i really can't confirm what your seeing. but that is why i orginally
started this topic. i will do some tests..
are you setting headers before output? i just ran into another problem..
when downloading a .tar file it just returns an empty .tar file.. seems to
work fine with .exe, .zip,
not sure if its a typo but the array shows userfile and your variable
array shows user
it looks like the file isn't being passed at all, double check if you have
any typos.. type is blank which should at least show the mime type..
- Original Message -
From: Al [EMAIL PROTECTED]
To:
i'm working on a app which output files with readfile() and some headers..
i read a comment in the manual that says if your outputting a file php will
use the same amount of memory as the size of the file. so, if the file is
100MB php will use 100MB of memory.. is this true?
if it is, how can i
how do i get the path to my home directory..
eg, /usr/home/
$_SERVER['DOCUMENT_ROOT'] returns /usr/home/public_html
i remember doing this once with basename() though i can't remember how i did
it.
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
i made this function and want to know if i am doing the math correctly..
seems to be caculating ok.. $filesize is in bytes.. if the filesize is under
1MB i want to show KBs, if its under 1GB i want to show MB, if its over
1000MB i want to show GB, makes sense? ;)
function byte_format($filesize)
{
not sure if this is a stupid question,
but im looking for a person or a place that will check or try to break a
site.
not in a bad way of course.. just trying to see things from a security
point. you can be the best coder out there and still have a flaw that you
might not see, but another might.
try +one month
- Original Message -
From: PHP
To: php
Sent: Wednesday, December 22, 2004 6:38 PM
Subject: [PHP] Date problem?
echo date('F',strtotime(next month));
This is printing February right now. Does this sound right or is this a but
in strtotime()? is next month
if the script isn't that big you can probably use extract() in most cases..
is the script in its own directory? if so you can turn register globals on
just for that one directory..
create an .htaccess file and add:
php_value register_globals on
then place the .htaccess in the directory where the
i have an upload form which i would only like to allow compressed zip files
and rar files to be uploaded. currently i use
if ($_FILES['userfile']['type'] != 'application/x-zip-compressed')
which only seems to work in IE, doesn't work in mozila (haven't tried
others) what the best way to detect
$name = John;
echo $name{0};
you can also look into substr()
- Original Message -
From: Ahmed Abdel-Aliem [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 20, 2004 12:59 PM
Subject: [PHP] first letter
hi
if i have for example this variable
$name = John;
how can i
just a question, what is the best way to sanitize your scripts when you're
using $_GET or $_REQUEST in a query?
eg, i usually just do:
if(is_numeric($_REQUEST['id']))
{
mysql_query(SELECT id FROM table WHERE
id=.intval($_REQUEST['id']).);
}
what about when the GET is text? just use
strlen is not accurate unless its a raw string, meaning just alpha chars, or
numbers..
otherwise you should run trim, strip_tags and the likes first.
- Original Message -
From: M. Sokolewicz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 6:09 AM
Subject: [PHP]
3:39 PM
Subject: Re: [PHP] in_array w/statement
On Friday 17 December 2004 02:33, Sebastian wrote:
I cannot solve this problem,. sorry if this looks confusing,.
It is ...
i have a form and don't want to set the variable if the in_array is
true..
the code works, up until i add the last
Hi,
I cannot solve this problem,. sorry if this looks confusing,.
i have a form and don't want to set the variable if the in_array is true..
the code works, up until i add the last !$buddy in the statement, for some
reason it seems to always be true, ... something i'm doing wrong? btw, i
cannot
i used to use a small script that displayed the amount of bandwidth being
used, it parses netstats numbers.
@ http://www.kernel.org/pub/software/web/bwbar/
it only works for linux and was wondering if anyone knows of a php app that
parses netstats on freebsd to display live bandwidth usage?
Hi all,
I have created a download manger to handle files, when a user clicks a link
the file is sent though fopen() and fpassthru()
like this:
header(Content-type: application/octet-stream);
header(Content-disposition: attachment; filename= . $file['filename']);
header(Content-transfer-encoding:
for me and find any flaws
;)
thanks.
- Original Message -
From: Richard Davey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 12:27 PM
Subject: Re: [PHP] fopen/fpassthur
Hello Sebastian,
Tuesday, December 14, 2004, 4:19:31 PM, you wrote:
S header(Content
trim it then use an operator..eg
if(trim($Game_rating) == '')
{
// error ..
}
- Original Message -
From: Ahmed Abdel-Aliem [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 8:58 AM
Subject: [PHP] empty() problem
Hi Group Members
i have a problem with function
disregard this topic.. i slept on it and found out how to do it.
- Original Message -
From: Sebastian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 11, 2004 11:06 PM
Subject: [PHP] dynamic include() in while loop
this is a brain buster, at least for me.
i have
my simple way..
while()
{
$i += 1;
$alt = ($i % 2) ? 'alt1' : 'alt2';
}
then just use $alt in your td class..
- Original Message -
From: Graham Cossey [EMAIL PROTECTED]
To: Brad Ciszewski [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, December 11, 2004 8:33 AM
i apologize if its against the rules to post mysql questions here, though im
using php to query the db
so...
i have a table with three integers.
[table post]
postuserid | replyuserid | parentid
--
i do a left join on table user to get the username that postuserid
well $user['password'] has no double quotes around it.
- Original Message -
From: Jonathan Duncan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 11, 2004 8:09 PM
Subject: [PHP] php variables in a backtick command
I am trying to run a shell command with backticks.
this is a brain buster, at least for me.
i have a while loop (results from mysql) which display news articles. i want
to include() a file if there hasn't been a news article posted today
meaning after midnight 12am to 12pm midnight... but if there are articles
the articles would be echo'd before
variables variable?
http://us2.php.net/manual/en/language.variables.variable.php
- Original Message -
From: Song Ken Vern [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 11:02 PM
Subject: [PHP] assignment
Hi,
Tried searching for what this $$ operator means.
actually, what i mean is i need to get the animal name as well..
ie:
echo $animal . ' : ' . $total
would output:
animal name : total
animal name : total
etc. thanks.
- Original Message -
From: Sebastian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 10, 2004 12:24 PM
thanks for the help. i do have a question.. say instead of 2 keys in the
array there are 3 or 4.. how would that be done?
i do not know much about arrays so i am trying to learn.
thanks.
- Original Message -
From: Craig Slusher [EMAIL PROTECTED]
To: Sebastian [EMAIL PROTECTED]
Cc
Hi.
I am using this array_merge_recursive to merge two arrays, the array looks
like this:
Array
(
[0] = Array
(
[animal] = Dogs
[total] = 5
)
[1] = Array
(
[animal] = Cats
[total] = 3
)
[2] = Array
'] = $current_array_key; // f.e. 0 on the first page
echo $_SESSION['ses_csv_files'][$_SESSION['key']];
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net
of the base class would have been
called, printing 'I am the constructor of A.br /'.
Is this an error in the manual?
Or a bug in php 4.3.9?
Or just me being stupid?
as i understand it exactly as you, it must be a bug/error
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de
engine 1.3 compatiblity on ?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
and whats the problem? did you tried uksort() ?
what did you tried? post the code, and someone will take a look and give
a hint!
sorry, but if you want a complete solution, go hire a php-programmer!
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net
with javascript before sending and decode with
a decode-key when recieving!
just what you need is key who can encode but not decode! und the
appropriate decode key on the server, to decode it.
just try to look for some javascript in the web!
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de
to upload a large file is This
document contains no data
The specified log file is empty.
did you check $php_errormsg ?
track_errors boolean
If enabled, the last error message will always be present in the
variable $php_errormsg.
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de
!
f.e. with classes.php in /webroot/
/webroot/index.php:
require 'lang/en.php';
/webroot/lang/en.php:
//WRONG:
require '../classes.php';
//RIGHT:
require 'classes.php';
// or
require '/webroot/classes.php';
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de
Peter Lauri wrote:
If you use the Autority HTTP that pops up a login window by default, is that
safe against listeners?
IMHO, the login-data is sent as plain text also, and this with every
subsequent request! and not only with the first!
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de
Peter Lauri wrote:
Best groupmember,
What editor do you use when working with websites (php) connected directly
to the FTP?
I like Eclipse 3.0 with the PHP plugin, but it do not have the future to
connect to the FTP.
did you tried the FTP-WebDAV plugin?
--
Sebastian Mendel
www.sebastianmendel.de
( $element_2 ) ) {
return 1;
}
elseif ( max( $element_1 ) max( $element_2 ) ) {
return -1;
}
elseif ( max( $element_1 ) max( $element_2 ) ) {
return 1;
}
return 0;
}
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net
can easily do this by writing an function myself.
But are there any built in functions for this? I have looked at usort,
uksort and more, but they do not seem to solve my problem.
uksort() or array_multisort() should do fine
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de
/photos/.$_GET['page']./);
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[moduleStatus] = 1
)
)
So, the question, how resort the numeric values to 1,2,3,4?
which numeric values ?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General
.
Did anybody have this experience before?
quota?
free space?
try setting display_errors and startup_errors on
try track_errors with on
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
the project at last by today...
This is a javascript related problem!
Why not just take a look add any driver-section of a web-page from a
hardware-manufacturer?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net
instead of
if SELECT INSERT ELSE UPDATE
logs()
{
db( $defined[9], $defined[1], $defined[2], $defined[3] );
$sql = 'REPLACE INTO logs VALUES ( ... )';
mysql_query( $sql ) or die( '...' );
}
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
are
all mysql_passwords stored in the db, thats why you have to run
mysql_fix_privilege_tables
read carefully through all 4.1. changelogs!
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
because the
browser just thought it was accessing a direct link to a file.
But now download.php/30/file.torrent results in a 404.
Is this something I can change back?
this is an apache related thing
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
--
Sebastian Mendel
Mario Bittencourt wrote:
I could not compile php 5.0.2 with the latest mysql 4.1.7.
I've installed the rpms (server,max,client,devel,shared) from mysql.com.
./configure --with-mnogosearch --with-xml --with-mysql=/usr
--with-mysqli=/usr/bin/mysql_config --with-apxs2 --enable-soap
When I compile I
= password );
/* Database connection */
function db() {
global $defined;
if( connection_status() != 0 ) {
$db = @mysql_pconnect( $defined[9], $defined[1], $defined[2] ) or die();
is this a typo???
@mysql_pconnect( $defined[9]
shouldnt it be
@mysql_pconnect( $defined[0]
--
Sebastian Mendel
a certain input and
complains, or returns false, if it doesn't get it.
yes, and of course shouldnt every function check it parametres before
proceeding?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects
Segmentation fault.
try without modules
if it works try one module check again and so on...
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net
Jerry Swanson wrote:
What variable header use? If I send something in header, what GLOBAL
variable header use?
do you mean $_SERVER ?
$_SERVER holds some header-information sent by the client to the webserver
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de
and? is it a typo in the message or in your source and solves this typo
your problem?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net
']][$array['teacher']][$array['class']]++;
// or by whatever is relevant for you
}
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net
']) ) {
$where[] = 'Date_Sub(Curdate(), interval ' . (int) $_POST['Days'] .
' day) = PostStart';
}
$sql = '
SELECT ...
FROM vendorjobs
WHERE ' . implode( ' AND ', $where );
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects
'];
// is the same as:
global $my_var
echo $my_var;
// 'global' just creates a local reference to the global variable
// global $my_var; is the same as:
$my_var = $GLOBALS['my_var'];
echo $my_var;
}
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de
?
- what does var_dump( $_GET['getvar'] );
- do you tried urlencode();
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Dear list,
im running mysql 4.1 and php 4.3.8 and have the following problem with
charset. If i select a row from a table like
SELECT *
FROM ip
WHERE ip
LIKE '127.0.0.1'
LIMIT 0 , 30
i get the error:
#1267 - Illegal mix of collations (ascii_general_ci,IMPLICIT) and
Is there a possibility to convert a string like 10*500 (parsed from a
XML-File) to a float?
When i try to store this String in a float variable it only coverts the 10
but nothing after the *-sign, but i need the result of this expresison...
Is there a function to calculate such string expressions?
Hi,
I´m trying to give an empty reference as a parameter, in a function. Or
rather make a parameter that is a reference optional.
I have a function that should react differently if it is given an object
or not. It works, but it gives me a warning that the second argument is
not being given
Hi,
I´m trying to give an empty reference as a parameter of a function. Or
rather, make a parameter that is a reference optional.
I have a function that should react differently if it is given an object
or not. It works, but it gives me a warning that the second argument is
not being given
Mohsen Pahlevanzadeh wrote:
Hi dears.
Please post such questions to mailto:[EMAIL PROTECTED]
Your posting has no reference to PEAR whatsover.
Greetings,
Sebastian
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http
. but I didn't find anything
for that in dbx_query either.
Greetings,
-sebastian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all together,
does anyone know, how to parse Topic Maps with PHP ?
We have to parse the Topic Maps and visualisize them afterwords.
Anyone know a Tip ?
I dont search for an solution, just for a litte Tip.
Thanks,
yours sincerly
--
Sebastian Mangelkramer
IMAC - Information Management
with php,
without the use of any other languages like java, etc. ?
thanks !
yours sincerly
sebastian, imac.de
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi.
See if this helps you get started. I assume each user has an ID. If so all
you have to do is make a query above $userid that fetches the user ID of the
user that is auth to download.. Also, edit the $path to the location of the
files, you can download a file by file.php?file=a_file.zip --
it should not do that. Are you on *nix?
try not editing the script so much, try it like i gave it to you except
remove the array to test a file to download. Just to verify that the script
works for you.
cheers,
- Sebastian
- Original Message -
From: Mishari [EMAIL PROTECTED
Articles:
all rows that are posted on Tuesday ...
Etc, etc.. How would I group them like that. I want to echo the actual day
with all the rows of that day falling under it.
can i do this with one query? Or would i have to create multiple queries?
any examples?
Thanx for any help.
cheers,
- Sebastian
201 - 300 of 555 matches
Mail list logo