Jump to content

neugi

Members
  • Posts

    63
  • Joined

  • Last visited

    Never

Posts posted by neugi

  1. Hi,

     

    could it be that apache is adding a newline?

     

    i'm shure that there is no newline char in front of my code and there is also no other include in the thest files. in the test file there are only 3 lines (see top, nothing else)

     

    best

  2. Hi,

     

    i've got a strange problem:

     

    i get this errors:

     

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at e:\Internet\pmtopagents\test.php:1) in e:\Internet\pmtopagents\test.php on line 3

     

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at e:\Internet\pmtopagents\test.php:1) in e:\Internet\pmtopagents\test.php on line 3

     

    but in my test.php is nothing else than:

     

    <?php
    session_start();
    ?>
    

     

    there is no space in front of <?php

     

    where could be the error?

     

    best

  3. Hi,

     

    i'm working on a method to merge 2 pngs with alpha chanel.

     

    the problem is if i merge the 2 images (attached) the result ist noch okay.

    one solution makes the eg 50% alpha to 0%alpha and the other method make the parts that are 50% to 100% and i cant see the part of the image below

     

    maybe somebody knows a solution.

     

    thx

     

     

  4. hi,

     

    if i replace @imagecopy($stoerer, $letter, $left,$top,0,0,$letterWidth,$letterHeight); widht @imagecopymerge($stoerer, $letter, $left,$top,0,0,$letterWidth,$letterHeight,100);

     

    the transparent part disapear but the letters look bad.

     

    is there a way to render the letters on the image so that the brackground is beeing shown behind the transparent parts of the letters?

     

    best

  5. Hi,

     

    i've got 2 png 8 with alpha.

     

    i want to merge this 2 images. everything seems to be okay.

     

    i got the background with some parts transparent and the numbers i want to render on it. but if i take a close look i can see that at the boundary of the numbers there is no background, even no background form the image below.

     

    how can i fix this.

     

    attached is the image that has been renderd.

     

    my code is :

     

    $stoerer = imagecreatefrompng('image/neu/1er.png');
    $letter = imagecreatefrompng($norm[$this->vorWert[$i]]);
    @imagecopy($stoerer, $letter, $left,$top,0,0,$letterWidth,$letterHeight);
    

     

    maybe somebody can give me a hint how to get this working.

     

    best

     

     

  6. my problem is, i got an url with an id, an this url will be redirected to some new url with some unkonwn id.

     

    is there a way to get the new url with the new id?

     

    i need a script where i can enter a url and the script returns me the new url where this page will be redirected

     

    best

  7. Hi,

     

    in the mysql database there are many sleep processes for the same user. Problem is that it is slowing the database.

     

    is there a way to fix this?

     

    currently if set the timeout to 600 sec, but is this the only way to close the processes?

     

    version of mysql is 4.0.24 on Debian

     

    best

  8. Hi,

     

    i've a little problem

     

    i've written a little script that should make my urls "search friendly".

     

    the only problem now it how i can handle the session without cookies?

     

    old url index.php?page=1&newsID=2&PHPSID=2384234...

    new url index/1/2/???

     

    how can i handle the session_id in such urls i've tried to attache them in de last part but after every call of a page a new SID is calculated.

     

    maybes somebody has an idea

     

    thx

     

     

  9. Hi,

    i got a db where a entry is a serialized array: the entry looks like this:
    a:1:{s:6:"banner";s:9:"r7_c3.jpg";}

    i try now to fetch the data and  unserialize it, but i only get the string array back from the data base.

    here is my code:
    $querySonstiges = mysql_query("SELECT sonstiges FROM pages WHERE id = 5",$link);
    $data =  mysql_fetch_assoc($querySonstiges);

    if i echo the $data it returns me "Array" but not the string to unserialize.

    What i'm doing wrong?

    thx for help
  10. Hi,

    i found out that there are 2 ways:

    in the mysql Tool type: SORUCE file.sql
    or
    mysql -u USER -p PASWWORD DATABASE < file.sql

    my problem is now that after a few secounds i get this error:
    [code]ERROR 2006 (HY000): MySQL server has gone away
    No connection. Trying to reconnect...
    Connection id:    155
    Current database: cd1_gmunden[/code]

    only the structure of the table is created, but no data in it.
    sql file is generated with phpmyadmin

    best
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.